|
@ -2,7 +2,7 @@
|
||||||
"version" : "1.0",
|
"version" : "1.0",
|
||||||
"configurations" : [
|
"configurations" : [
|
||||||
{
|
{
|
||||||
"playground" : "custom",
|
"playground" : "standard",
|
||||||
"type" : "uni-app:app-android"
|
"type" : "uni-app:app-android"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
32
App.vue
|
@ -1,37 +1,9 @@
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
onLaunch: function() {
|
onLaunch: function() {
|
||||||
let timer = null
|
|
||||||
|
|
||||||
uni.$on('close', function(data) {
|
|
||||||
|
|
||||||
timer = setTimeout(() => {
|
|
||||||
|
|
||||||
// uni.request({
|
|
||||||
// url: 'https://iot.lihaink.cn/close_stream', //仅为示例,并非真实接口地址。
|
|
||||||
|
|
||||||
// });
|
|
||||||
|
|
||||||
console.log("关闭定时器")
|
|
||||||
|
|
||||||
}, 60000)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
})
|
|
||||||
uni.$on('push', function(data) {
|
|
||||||
if (timer) {
|
|
||||||
clearTimeout(timer);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// uni.request({
|
|
||||||
// url: 'https://iot.lihaink.cn/push_stream',
|
|
||||||
|
|
||||||
// });
|
|
||||||
|
|
||||||
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
onShow: function() {
|
onShow: function() {
|
||||||
console.log('App Show')
|
console.log('App Show')
|
||||||
|
@ -40,10 +12,6 @@
|
||||||
onHide: function() {
|
onHide: function() {
|
||||||
console.log('App Hide')
|
console.log('App Hide')
|
||||||
|
|
||||||
// uni.request({
|
|
||||||
// url: 'https://iot.lihaink.cn/close_stream',
|
|
||||||
|
|
||||||
// });
|
|
||||||
},
|
},
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
126
manifest.json
|
@ -1,47 +1,47 @@
|
||||||
{
|
{
|
||||||
"name" : "种植溯源",
|
"name": "种植溯源",
|
||||||
"appid" : "__UNI__D087881",
|
"appid": "__UNI__D087881",
|
||||||
"description" : "",
|
"description": "",
|
||||||
"versionName" : "1.0.2",
|
"versionName": "1.0.2",
|
||||||
"versionCode" : 102,
|
"versionCode": 102,
|
||||||
"transformPx" : false,
|
"transformPx": false,
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
"app-plus" : {
|
"app-plus": {
|
||||||
"usingComponents" : true,
|
"usingComponents": true,
|
||||||
"nvueStyleCompiler" : "uni-app",
|
"nvueStyleCompiler": "uni-app",
|
||||||
"compilerVersion" : 3,
|
"compilerVersion": 3,
|
||||||
"compatible" : {
|
"compatible": {
|
||||||
"ignoreVersion" : true //true表示忽略版本检查提示框,HBuilderX1.9.0及以上版本支持
|
"ignoreVersion": true //true表示忽略版本检查提示框,HBuilderX1.9.0及以上版本支持
|
||||||
},
|
},
|
||||||
"screenOrientation" : [
|
"screenOrientation": [
|
||||||
"portrait-primary",
|
"portrait-primary",
|
||||||
"portrait-secondary",
|
"portrait-secondary",
|
||||||
"landscape-primary",
|
"landscape-primary",
|
||||||
"landscape-secondary"
|
"landscape-secondary"
|
||||||
],
|
],
|
||||||
"splashscreen" : {
|
"splashscreen": {
|
||||||
"alwaysShowBeforeRender" : true,
|
"alwaysShowBeforeRender": true,
|
||||||
"waiting" : true,
|
"waiting": true,
|
||||||
"autoclose" : true,
|
"autoclose": true,
|
||||||
"delay" : 0
|
"delay": 0
|
||||||
},
|
},
|
||||||
/* 模块配置 */
|
/* 模块配置 */
|
||||||
"modules" : {
|
"modules": {
|
||||||
"Geolocation" : {},
|
"Geolocation": {},
|
||||||
"Maps" : {},
|
"Maps": {},
|
||||||
"LivePusher" : {},
|
"LivePusher": {},
|
||||||
"VideoPlayer" : {},
|
"VideoPlayer": {},
|
||||||
"Barcode" : {},
|
"Barcode": {},
|
||||||
"Camera" : {},
|
"Camera": {},
|
||||||
"UniMP" : {
|
"UniMP": {
|
||||||
"description" : "uni小程序"
|
"description": "uni小程序"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
/* 应用发布信息 */
|
/* 应用发布信息 */
|
||||||
"distribute" : {
|
"distribute": {
|
||||||
/* android打包配置 */
|
/* android打包配置 */
|
||||||
"android" : {
|
"android": {
|
||||||
"permissions" : [
|
"permissions": [
|
||||||
"<uses-feature android:name=\"android.hardware.camera\"/>",
|
"<uses-feature android:name=\"android.hardware.camera\"/>",
|
||||||
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
|
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
|
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
|
||||||
|
@ -60,57 +60,57 @@
|
||||||
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
|
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
|
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
|
||||||
],
|
],
|
||||||
"minSdkVersion" : 21
|
"minSdkVersion": 21
|
||||||
},
|
},
|
||||||
/* ios打包配置 */
|
/* ios打包配置 */
|
||||||
"ios" : {
|
"ios": {
|
||||||
"dSYMs" : false
|
"dSYMs": false
|
||||||
},
|
},
|
||||||
/* SDK配置 */
|
/* SDK配置 */
|
||||||
"sdkConfigs" : {
|
"sdkConfigs": {
|
||||||
"ad" : {},
|
"ad": {},
|
||||||
"geolocation" : {
|
"geolocation": {
|
||||||
"amap" : {
|
"amap": {
|
||||||
"name" : "amapC2GgorTaY",
|
"name": "amapC2GgorTaY",
|
||||||
"__platform__" : [ "ios", "android" ],
|
"__platform__": ["ios", "android"],
|
||||||
"appkey_ios" : "a8c8821159c1781d4ea4651df856b872",
|
"appkey_ios": "a8c8821159c1781d4ea4651df856b872",
|
||||||
"appkey_android" : "a8c8821159c1781d4ea4651df856b872"
|
"appkey_android": "a8c8821159c1781d4ea4651df856b872"
|
||||||
},
|
},
|
||||||
"system" : {
|
"system": {
|
||||||
"__platform__" : [ "ios", "android" ]
|
"__platform__": ["ios", "android"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"maps" : {
|
"maps": {
|
||||||
"amap" : {
|
"amap": {
|
||||||
"name" : "amapC2GgorTaY",
|
"name": "amapC2GgorTaY",
|
||||||
"appkey_ios" : "a8c8821159c1781d4ea4651df856b872",
|
"appkey_ios": "a8c8821159c1781d4ea4651df856b872",
|
||||||
"appkey_android" : "a8c8821159c1781d4ea4651df856b872"
|
"appkey_android": "a8c8821159c1781d4ea4651df856b872"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
/* 快应用特有相关 */
|
/* 快应用特有相关 */
|
||||||
"quickapp" : {},
|
"quickapp": {},
|
||||||
/* 小程序特有相关 */
|
/* 小程序特有相关 */
|
||||||
"mp-weixin" : {
|
"mp-weixin": {
|
||||||
"appid" : "",
|
"appid": "",
|
||||||
"setting" : {
|
"setting": {
|
||||||
"urlCheck" : false
|
"urlCheck": false
|
||||||
},
|
},
|
||||||
"usingComponents" : true
|
"usingComponents": true
|
||||||
},
|
},
|
||||||
"mp-alipay" : {
|
"mp-alipay": {
|
||||||
"usingComponents" : true
|
"usingComponents": true
|
||||||
},
|
},
|
||||||
"mp-baidu" : {
|
"mp-baidu": {
|
||||||
"usingComponents" : true
|
"usingComponents": true
|
||||||
},
|
},
|
||||||
"mp-toutiao" : {
|
"mp-toutiao": {
|
||||||
"usingComponents" : true
|
"usingComponents": true
|
||||||
},
|
},
|
||||||
"uniStatistics" : {
|
"uniStatistics": {
|
||||||
"enable" : false
|
"enable": false
|
||||||
},
|
},
|
||||||
"vueVersion" : "3"
|
"vueVersion": "3"
|
||||||
}
|
}
|
29
pages.json
|
@ -198,32 +198,33 @@
|
||||||
"backgroundColor": "#F8F8F8"
|
"backgroundColor": "#F8F8F8"
|
||||||
},
|
},
|
||||||
"tabBar": {
|
"tabBar": {
|
||||||
"color": "#FFFFFF",
|
"color": "#282828",
|
||||||
"selectedColor": "#34D190",
|
"selectedColor": "#0122C7",
|
||||||
"borderStyle": "white",
|
"borderStyle": "white",
|
||||||
"backgroundColor": "#FFFFFF",
|
"backgroundColor": "#ffffff",
|
||||||
"iconWidth": "40px",
|
|
||||||
"list": [{
|
"list": [{
|
||||||
"pagePath": "pages/index/massif",
|
"pagePath": "pages/index/massif",
|
||||||
"text": "",
|
"text": "首45",
|
||||||
"iconPath": "static/main/index/sy.png",
|
"iconPath": "static/tabs-icon/home.png",
|
||||||
"selectedIconPath": "static/main/index/sydj.png"
|
"selectedIconPath": "static/tabs-icon/home-a.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"pagePath": "pages/index/index",
|
"pagePath": "pages/index/index",
|
||||||
"text": "",
|
"text": "审1批",
|
||||||
"iconPath": "static/main/index/dk.png",
|
"iconPath": "static/tabs-icon/Task.png",
|
||||||
"selectedIconPath": "static/main/index/dkdj.png"
|
"selectedIconPath": "static/tabs-icon/Task-a.png"
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"pagePath": "pages/index/personal",
|
"pagePath": "pages/index/personal",
|
||||||
"text": "",
|
"text": "任务",
|
||||||
"iconPath": "static/main/index/wd.png",
|
"iconPath": "static/tabs-icon/approval.png",
|
||||||
"selectedIconPath": "static/main/index/wddj.png"
|
"selectedIconPath": "static/tabs-icon/approval-a.png"
|
||||||
}
|
}
|
||||||
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
"uniIdRouter": {}
|
"uniIdRouter": {}
|
||||||
}
|
}
|
|
@ -7,6 +7,9 @@
|
||||||
|
|
||||||
<Myindex style="float: right;"></Myindex>
|
<Myindex style="float: right;"></Myindex>
|
||||||
|
|
||||||
|
<view class="" v-show="false">
|
||||||
|
<image src="/static/tabs-icon/dk.png"></image>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
|
||||||
<view class="content">
|
<view class="content">
|
||||||
|
@ -159,9 +162,6 @@
|
||||||
</view> -->
|
</view> -->
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
<view class="agreement">
|
<view class="agreement">
|
||||||
<text>登录代表您已经同意</text> <text style="color:#2D94FE ;">服务协议、隐私政策</text>
|
<text>登录代表您已经同意</text> <text style="color:#2D94FE ;">服务协议、隐私政策</text>
|
||||||
|
@ -193,6 +193,8 @@
|
||||||
.input-card {
|
.input-card {
|
||||||
width: 700rpx;
|
width: 700rpx;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
border-radius: 20rpx;
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
.card-head {
|
.card-head {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
|
|
|
@ -99,6 +99,10 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
|
@ -62,6 +62,8 @@
|
||||||
<view class="land-info">
|
<view class="land-info">
|
||||||
<view class="land-area">
|
<view class="land-area">
|
||||||
土地面积
|
土地面积
|
||||||
|
|
||||||
|
|
||||||
<view class="">
|
<view class="">
|
||||||
{{dataobj.total_area|| "--"}}亩
|
{{dataobj.total_area|| "--"}}亩
|
||||||
</view>
|
</view>
|
||||||
|
@ -97,7 +99,9 @@
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
<view class="live">
|
<view class="live">
|
||||||
<u--image src="/static/img/viedobg.png" v-if="video_url" width="100%"></u--image>
|
<u--image
|
||||||
|
src="https://ceshi-worker-task.lihaink.cn/uploads/images/20231223/20231223092144475437017.png"
|
||||||
|
v-if="video_url" width="100%"></u--image>
|
||||||
<u--image :src="u('K')" v-else width="100%"></u--image>
|
<u--image :src="u('K')" v-else width="100%"></u--image>
|
||||||
|
|
||||||
<view class=""
|
<view class=""
|
||||||
|
@ -497,7 +501,7 @@
|
||||||
const bgc = (icon) => {
|
const bgc = (icon) => {
|
||||||
return `/static/main/index/${icon}.png`
|
return `/static/main/index/${icon}.png`
|
||||||
}
|
}
|
||||||
const video_url = ref(5)
|
const video_url = ref()
|
||||||
//列表获取
|
//列表获取
|
||||||
const getlist = () => {
|
const getlist = () => {
|
||||||
lindexist({
|
lindexist({
|
||||||
|
@ -515,7 +519,7 @@
|
||||||
}
|
}
|
||||||
// video_url=res.data.
|
// video_url=res.data.
|
||||||
|
|
||||||
threshold = res.data.monitor.threshold
|
threshold = res.data?.monitor?.threshold || ""
|
||||||
if (Object.keys(res.data).length > 0) {
|
if (Object.keys(res.data).length > 0) {
|
||||||
getlist3(res.data.id)
|
getlist3(res.data.id)
|
||||||
Object.assign(dataobj, res.data);
|
Object.assign(dataobj, res.data);
|
||||||
|
@ -584,7 +588,7 @@
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
if (res.code == 1) {
|
if (res.code == 1) {
|
||||||
|
|
||||||
tdId.value = res.data[0].id
|
tdId.value = res.data[0]?.id || ''
|
||||||
getlist()
|
getlist()
|
||||||
if (res.data.length > 0) {
|
if (res.data.length > 0) {
|
||||||
columns.splice(0, columns.length, ...res.data.map((step, index) => {
|
columns.splice(0, columns.length, ...res.data.map((step, index) => {
|
||||||
|
|
|
@ -12,8 +12,8 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="video" style="position: relative;">
|
<view class="video" style="position: relative;">
|
||||||
<u--image src="/static/img/viedobg.png" width="100%" height="300rpx" @click="goLive"
|
<u--image src="https://ceshi-worker-task.lihaink.cn/uploads/images/20231223/20231223092144475437017.png"
|
||||||
v-if="videoUrl"></u--image>
|
width="100%" height="300rpx" @click="goLive" v-if="videoUrl"></u--image>
|
||||||
<u--image src="/static/main/index/k.png" width="100%" height="300rpx" v-else></u--image>
|
<u--image src="/static/main/index/k.png" width="100%" height="300rpx" v-else></u--image>
|
||||||
|
|
||||||
<view class=""
|
<view class=""
|
||||||
|
@ -144,7 +144,6 @@
|
||||||
onShow
|
onShow
|
||||||
} from "@dcloudio/uni-app"
|
} from "@dcloudio/uni-app"
|
||||||
const videoUrl = ref('')
|
const videoUrl = ref('')
|
||||||
console.log(videoUrl.value)
|
|
||||||
|
|
||||||
const goLive = () => {
|
const goLive = () => {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
|
@ -223,10 +222,9 @@
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
|
|
||||||
if (res.code == 1) {
|
if (res.code == 1) {
|
||||||
console.log(res.data)
|
|
||||||
if (res.data.user_id == 23) {
|
if (res.data.user_id == 23) {
|
||||||
videoUrl.value =
|
// videoUrl.value =
|
||||||
'http://rtsp.lihaink.cn/live/lihai_lot_walnutpi_dev_4.live.mp4?secret=YwDtp2llj80HA19JhMXL4Po99nsMAyNT'
|
// 'http://rtsp.lihaink.cn/live/lihai_lot_walnutpi_dev_4.live.mp4?secret=YwDtp2llj80HA19JhMXL4Po99nsMAyNT'
|
||||||
}
|
}
|
||||||
console.log(videoUrl.value)
|
console.log(videoUrl.value)
|
||||||
// videoUrl.value=res.data.
|
// videoUrl.value=res.data.
|
||||||
|
|
Before Width: | Height: | Size: 5.1 MiB |
Before Width: | Height: | Size: 772 B |
Before Width: | Height: | Size: 1016 B |
Before Width: | Height: | Size: 695 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 999 B |
Before Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 753 B |
After Width: | Height: | Size: 892 B |
After Width: | Height: | Size: 514 B |
After Width: | Height: | Size: 618 B |
Before Width: | Height: | Size: 1023 B After Width: | Height: | Size: 1023 B |
Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 5.6 KiB |
After Width: | Height: | Size: 645 B |
After Width: | Height: | Size: 779 B |
After Width: | Height: | Size: 911 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 673 B |
After Width: | Height: | Size: 864 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 5.5 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 5.9 KiB After Width: | Height: | Size: 5.9 KiB |
|
@ -123,7 +123,7 @@
|
||||||
},
|
},
|
||||||
"allowsInlineMediaPlayback": true,
|
"allowsInlineMediaPlayback": true,
|
||||||
"safearea": {
|
"safearea": {
|
||||||
"background": "#FFFFFF",
|
"background": "#ffffff",
|
||||||
"bottom": {
|
"bottom": {
|
||||||
"offset": "auto"
|
"offset": "auto"
|
||||||
}
|
}
|
||||||
|
@ -144,33 +144,33 @@
|
||||||
},
|
},
|
||||||
"tabBar": {
|
"tabBar": {
|
||||||
"position": "bottom",
|
"position": "bottom",
|
||||||
"color": "#FFFFFF",
|
"color": "#282828",
|
||||||
"selectedColor": "#34D190",
|
"selectedColor": "#0122C7",
|
||||||
"borderStyle": "rgba(255,255,255,0.4)",
|
"borderStyle": "rgba(255,255,255,0.4)",
|
||||||
"blurEffect": "none",
|
"blurEffect": "none",
|
||||||
"fontSize": "10px",
|
"fontSize": "10px",
|
||||||
"iconWidth": "40px",
|
"iconWidth": "24px",
|
||||||
"spacing": "3px",
|
"spacing": "3px",
|
||||||
"height": "50px",
|
"height": "50px",
|
||||||
"backgroundColor": "#FFFFFF",
|
"backgroundColor": "#ffffff",
|
||||||
"list": [
|
"list": [
|
||||||
{
|
{
|
||||||
"pagePath": "pages/index/massif",
|
"pagePath": "pages/index/massif",
|
||||||
"text": "",
|
"text": "首页",
|
||||||
"iconPath": "/static/main/index/sy.png",
|
"iconPath": "/static/tabs-icon/home.png",
|
||||||
"selectedIconPath": "/static/main/index/sydj.png"
|
"selectedIconPath": "/static/tabs-icon/home-a.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"pagePath": "pages/index/index",
|
"pagePath": "pages/index/index",
|
||||||
"text": "",
|
"text": "审批",
|
||||||
"iconPath": "/static/main/index/dk.png",
|
"iconPath": "/static/tabs-icon/Task.png",
|
||||||
"selectedIconPath": "/static/main/index/dkdj.png"
|
"selectedIconPath": "/static/tabs-icon/Task-a.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"pagePath": "pages/index/personal",
|
"pagePath": "pages/index/personal",
|
||||||
"text": "",
|
"text": "任务",
|
||||||
"iconPath": "/static/main/index/wd.png",
|
"iconPath": "/static/tabs-icon/approval.png",
|
||||||
"selectedIconPath": "/static/main/index/wddj.png"
|
"selectedIconPath": "/static/tabs-icon/approval-a.png"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"selectedIndex": 0,
|
"selectedIndex": 0,
|
||||||
|
|