|
@@ -2,8 +2,11 @@
|
|
|
|
|
|
<view class="">
|
|
<view class="">
|
|
<view v-if="loadingStatus" class="loadingMask">Loading...</view>
|
|
<view v-if="loadingStatus" class="loadingMask">Loading...</view>
|
|
- <view class="cu-list menu-avatar">
|
|
|
|
- <view v-if="!this.openId&&!this.onLineVideoList.length" class="text-center margin-top-lg">加载中...</view>
|
|
|
|
|
|
+ <view class="cu-list menu-avatar">
|
|
|
|
+
|
|
|
|
+ <view v-if="!this.openId&&!this.onLineVideoList.length" class="text-center margin-top-lg">加载中...</view>
|
|
|
|
+ <view v-if="!this.matchedDeviceList.length&&this.onLineVideoList.length" class="text-center margin-top-lg">暂无数据</view>
|
|
|
|
+
|
|
<view class="cu-item" :class="modalName=='move-box-'+ index?'move-cur':''" v-for="(item,index) in matchedDeviceList"
|
|
<view class="cu-item" :class="modalName=='move-box-'+ index?'move-cur':''" v-for="(item,index) in matchedDeviceList"
|
|
:key="index" :data-target="'move-box-' + index">
|
|
:key="index" :data-target="'move-box-' + index">
|
|
<view v-if="item.ALIVEVALUE==3" class="cu-avatar round lg" style="background-image:url(../../static/video-icon-on.png);opacity:.7"></view>
|
|
<view v-if="item.ALIVEVALUE==3" class="cu-avatar round lg" style="background-image:url(../../static/video-icon-on.png);opacity:.7"></view>
|
|
@@ -84,13 +87,6 @@
|
|
methods: {
|
|
methods: {
|
|
|
|
|
|
chk_video() {
|
|
chk_video() {
|
|
- // if (!this.openId) {
|
|
|
|
- // uni.showLoading({
|
|
|
|
- // title: "加载中",
|
|
|
|
- // mask: true,
|
|
|
|
- // });
|
|
|
|
- // //添加loading
|
|
|
|
- // }
|
|
|
|
uni.request({
|
|
uni.request({
|
|
url: 'https://fire.usky.cn:8443/YtIoT/cgi-bin/demo2.cgi',
|
|
url: 'https://fire.usky.cn:8443/YtIoT/cgi-bin/demo2.cgi',
|
|
data: 'queryJson:' + JSON.stringify({
|
|
data: 'queryJson:' + JSON.stringify({
|
|
@@ -101,12 +97,9 @@
|
|
'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'
|
|
'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'
|
|
},
|
|
},
|
|
success: (res) => {
|
|
success: (res) => {
|
|
-
|
|
|
|
this.onLineVideoList = res.data.RESULT.LIST;
|
|
this.onLineVideoList = res.data.RESULT.LIST;
|
|
-
|
|
|
|
if (this.openId.length > 0) {
|
|
if (this.openId.length > 0) {
|
|
console.log('doododododododo')
|
|
console.log('doododododododo')
|
|
-
|
|
|
|
for (var n = 0; n < this.onLineVideoList.length; n++) {
|
|
for (var n = 0; n < this.onLineVideoList.length; n++) {
|
|
if (this.openId == this.onLineVideoList[n].DEVICE) {
|
|
if (this.openId == this.onLineVideoList[n].DEVICE) {
|
|
this.reCount++;
|
|
this.reCount++;
|