|
@ -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',
|
|
||||||
|
|
||||||
// });
|
|
||||||
},
|
},
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
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,
|
||||||
|
|