Bladeren bron

监控弹框修改

master
wwp 6 maanden geleden
bovenliggende
commit
640fb11748
1 gewijzigde bestanden met toevoegingen van 62 en 17 verwijderingen
  1. +62
    -17
      monitorMobile/pages/monitor/index.vue

+ 62
- 17
monitorMobile/pages/monitor/index.vue Bestand weergeven

@@ -1,10 +1,24 @@
<template> <template>
<view class="inspectionCenter"> <view class="inspectionCenter">
<view v-show="showVideo" class="poupBox"> <view v-show="showVideo" class="poupBox">
<view class="videoHeader">

</view>
<view class="contentBox"> <view class="contentBox">
<view id="url-player-test"></view>
<view class="closeBox">
<view class="">
</view>
<view class="closes" @click="closeDialog">
<u-icon name="close-circle-fill" color="#ccc" size="24"></u-icon>
</view>
</view>
<view class="botbox">
<view id="url-player-test"></view>
</view>
</view> </view>
<view class="bottom-content" @click="closeDialog">
<view class="bottom-content">


</view> </view>
</view> </view>
@@ -125,8 +139,8 @@


</view> </view>
</u-modal> --> </u-modal> -->
<tki-tree ref="tkitree" title="摄像头分组" :showChild="showChild" :selectParent="selectParent" :multiple="multiple" :range="treelist" :foldAll="flod"
rangeKey="name" @confirm="treeConfirm" @cancel="treeCancel"></tki-tree>
<tki-tree ref="tkitree" title="摄像头分组" :showChild="showChild" :selectParent="selectParent" :multiple="multiple"
:range="treelist" :foldAll="flod" rangeKey="name" @confirm="treeConfirm" @cancel="treeCancel"></tki-tree>
</view> </view>
</template> </template>


@@ -185,7 +199,13 @@
// 获取列表数据 // 获取列表数据
this.loadmore() this.loadmore()
}, },
onPullDownRefresh(){
onUnload() {
if(this.showVideo) {
this.closeDialog()
}
},
onPullDownRefresh() {
uni.stopPullDownRefresh() uni.stopPullDownRefresh()
this.status = 'loadmore' this.status = 'loadmore'
this.searchForm.pageNum = 1; this.searchForm.pageNum = 1;
@@ -193,7 +213,7 @@
this.loadmore() this.loadmore()
}, },
methods: { methods: {
setVideo() { setVideo() {
let that = this; let that = this;
this.loadWebPlayerSDK().then(() => { this.loadWebPlayerSDK().then(() => {
@@ -208,7 +228,7 @@
rtsFallback: true, rtsFallback: true,
rtsFallbackType: 'HLS', rtsFallbackType: 'HLS',
}, function(player) { }, function(player) {
// player.mute()
player.mute()
}); });


this.player.one('canplay', function() { this.player.one('canplay', function() {
@@ -304,21 +324,25 @@
this.showVideo = false; this.showVideo = false;
}, },
getGroupList() { getGroupList() {
groupList({}).then((res) => {
if (res.code == 200) {
this.treelist = [...[{id: "",name: "全部",checked: true}], ...res.data];
}
});
groupList({}).then((res) => {
if (res.code == 200) {
this.treelist = [...[{
id: "",
name: "全部",
checked: true
}], ...res.data];
}
});
}, },
// 获取视频地址 // 获取视频地址
startClick(id) { startClick(id) {
this.sensorId = id; this.sensorId = id;
this.showVideo = true; this.showVideo = true;
startUrl({ startUrl({
sensorId: id sensorId: id
}).then(res => { }).then(res => {
let { let {
code, code,
data data
@@ -396,18 +420,39 @@
width: 100%; width: 100%;
z-index: 100000000000000; z-index: 100000000000000;
// background: red; // background: red;
background: rgba(0, 0, 0, 0.2);
background: rgba(0, 0, 0, 0.5);

.videoHeader {
height: 255rpx;
}


.contentBox { .contentBox {
// z-index: 1000000; // z-index: 1000000;
width: 100%; width: 100%;
height: 500rpx;
height: 590rpx;
background: #000; background: #000;

// margin: 50rpx auto; // margin: 50rpx auto;
.closeBox {
text-align: right;
height: 80rpx;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 25rpx;
background: #fff;
.closes {
// background: #ccc;
}
}
.botbox {
height:calc(100% - 80rpx);
}
} }


.bottom-content { .bottom-content {
height: calc(100% - 500rpx);
height: calc(100% - 590rpx -255rpx);
} }
} }
} }


Laden…
Annuleren
Opslaan