|
@@ -22,7 +22,7 @@
|
|
|
最近上线时间:{{ detail.lastconnecttime || ' --' }}
|
|
|
</view>
|
|
|
</view>
|
|
|
- <preview-image :attinfos="detail.attinfos" />
|
|
|
+ <preview-image ref="轮播图" :attinfos="detail.attinfos" />
|
|
|
<view class="ceiling" :style="{ top: tovw(CustomBar) }">
|
|
|
<horizontal-direction ref="hd" />
|
|
|
</view>
|
|
@@ -71,12 +71,19 @@ export default {
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
this.w_deviceid = options.id;
|
|
|
- this.getDetail(true)
|
|
|
},
|
|
|
mounted() {
|
|
|
this.CustomBar = -10;
|
|
|
this.$refs.List.setHeight();
|
|
|
},
|
|
|
+ onShow() {
|
|
|
+ this.getDetail(true)
|
|
|
+ try {
|
|
|
+ this.$Http.openNetwork = this.$refs.轮播图.openNetwork;
|
|
|
+ } catch (error) {
|
|
|
+ setTimeout(() => { this.$Http.openNetwork = this.$refs.轮播图.openNetwork; }, 100)
|
|
|
+ };
|
|
|
+ },
|
|
|
methods: {
|
|
|
getDetail(init = false) {
|
|
|
this.$Http.basic({
|
|
@@ -88,7 +95,6 @@ export default {
|
|
|
}).then(res => {
|
|
|
console.log("设备详情", res)
|
|
|
if (this.cutoff(res.msg)) return;
|
|
|
-
|
|
|
if (!res.data.miniapppath) {
|
|
|
res.data.miniapppath = require("../../control/pages").getPageName(res.data.prodnum);
|
|
|
if (!res.data.miniapppath) {
|
|
@@ -97,9 +103,6 @@ export default {
|
|
|
this.tabs.shift()
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
- console.log(res.data.miniapppath)
|
|
|
-
|
|
|
switch (res.data.status) {
|
|
|
case '在线':
|
|
|
res.data.bgColor = "#007aff";
|
|
@@ -111,9 +114,7 @@ export default {
|
|
|
res.data.bgColor = "#F9AE3D";
|
|
|
break;
|
|
|
}
|
|
|
-
|
|
|
this.detail = res.data;
|
|
|
-
|
|
|
if (init) {
|
|
|
let prodnum = res.data.prodnum;
|
|
|
if (res.data.miniapppath) prodnum = res.data.miniapppath.split("-")[1];
|