@@ -1,3 +1,10 @@
+<template>
+ <view>
+ <slot></slot>
+ <alarModel />
+ </view>
+</template>
+
<script>
import Vue from "vue";
@@ -131,7 +131,6 @@
</view>
<image src="../../static/arrFour.png" class="warmImage"></image>
- <alarModel v-if="isInitAlarm" />
<tenMinutes v-if="isIniTenMinutes" />
</template>
@@ -69,7 +69,6 @@
v-if="devsClientId.length > 0 && otaList.length > 0"
>更新OTA</view
>
- <!-- <alarModel ref="alarModel" /> -->
@@ -178,9 +177,7 @@ export default {
});
},
- onLoad() {
- // this.$refs.alarModel.connectMQTTwo();
- },
+ onLoad() {},
onShow() {
this.queryList();
this.queryOtaList();
@@ -88,7 +88,6 @@
<view style="height: 20rpx"></view>
@@ -221,7 +221,6 @@
@@ -603,7 +602,6 @@ export default {
} else {
console.log("没有参数");
}
onUnload(options) {
@@ -58,7 +58,6 @@
<view class="btn1" @click="goMoreSetting">更多设置</view>
@@ -68,7 +67,6 @@ export default {
devInfo: "",
devName: "",
position: "",
- isInitAlarm: "",
};
methods: {
@@ -145,18 +143,12 @@ export default {
onLoad(options) {
this.devInfo = JSON.parse(options.devInfo);
- this.isInitAlarm = true;
this.getPosition(this.devInfo.installPosition);
- onUnload() {
- this.isInitAlarm = false;
- onHide() {
+ onUnload() {},
+ onHide() {},
</script>
<style lang="less">
@@ -59,7 +59,6 @@
<image src="../../static/ln_small.png" mode="" />
@@ -72,7 +71,6 @@ export default {
option: ["全部", "离线", "在线", "报警"],
selectValue: 0,
devs: [],
- isInitAlarm: false,
@@ -180,12 +178,9 @@ export default {
onLoad() {},
onUnload() {
// this.isInitAlarm = false;
@@ -18,7 +18,6 @@
@@ -99,7 +98,6 @@ export default {
this.groupInfo = JSON.parse(options.groupInfo);
console.log(this.groupInfo, 99999);
@@ -82,7 +82,6 @@
@@ -206,7 +205,6 @@ export default {
this.getgroupList();
@@ -73,7 +73,6 @@
确认分享
</button>
<button class="btn1" v-else @click="unShare()">暂不可分享</button>
@@ -164,7 +163,6 @@ export default {
setTimeout(() => {
this.shareUserLink("分享链接创建成功");
}, 500);
@@ -35,7 +35,6 @@
></text
- <alarModel />
@@ -48,7 +48,6 @@
<view class="logoutBtn" @click="goLogout">退出登录</view>
@@ -58,7 +57,6 @@ export default {
return {
headerImg: "../../static/headerInfo.png",
phone: uni.getStorageSync("phone"),
@@ -133,15 +131,9 @@ export default {
@@ -243,7 +243,6 @@
@@ -717,7 +716,6 @@ export default {
this.devId = options.devId;
this.getdevInfo(this.devId);
this.getRoomInfo(this.devId);
onShow() {},
@@ -25,7 +25,6 @@
<button class="btn" @click="confirm">确认</button>
@@ -70,7 +69,6 @@ export default {
let selectedValue = uni.getStorageSync("sercviceChoice")
? uni.getStorageSync("sercviceChoice")
: "aloneServe";
@@ -157,7 +157,6 @@ export default {
this.getShareList();
@@ -54,7 +54,6 @@
<view class="meanRight" @click="refuseDevice(item)">拒绝</view>
@@ -165,7 +164,6 @@ export default {
this.sharePhone = options.phone;
this.shareId = options.shareId;
let userId = uni.getStorageSync("userId");