Sfoglia il codice sorgente

提交告警事件

wangming 2 mesi fa
parent
commit
4d24145bd7

+ 1 - 1
src/components/component/alarModel.vue

@@ -376,8 +376,8 @@ export default {
             console.log(`call`, "走到了call方法");
             const { sn, idx, type: roomtype } = e;
             console.log(e, this.contactList, 888870);
-            console.log("走到了这里了。。。。1", target);
             const target = this.contactList.find((item) => item.id === sn);
+            console.log("走到了这里了。。。。1", target);
             // const target = this.contactList[idx];
             const apiTypeName = this.apiTypesValid[this.apiTypeIndex];
             const businessType = apiTypes.indexOf(apiTypeName);

+ 1 - 1
src/pagesA/deviceDetail/deviceDetail.vue

@@ -101,7 +101,7 @@
                     >{{ endArr.length == "" ? "0" : endArr.length }}次</view
                 >
             </view>
-            <view class="title" v-if="devInfo.installPosition == 'Toilet'">
+            <view class="title" v-if="devInfo.installPosition != 'Toilet'">
                 <view class="title-text" style="color: #22dea7"
                     >今日进出频次</view
                 >

+ 0 - 2
src/pagesA/linkShare/linkShare.vue

@@ -161,8 +161,6 @@ export default {
     },
     onLoad(options) {
         this.devInfo = JSON.parse(options.devInfo);
-    },
-    onShow() {
         setTimeout(() => {
             this.shareUserLink("分享链接创建成功");
         }, 500);

+ 4 - 4
src/pagesA/sharePages/sharePages.vue

@@ -94,7 +94,7 @@ export default {
                 // devId: this.devInfo.devId,
                 sharedUserId: uni.getStorageSync("userId"),
                 state: 1,
-                sharedPhone: this.sharePhone,
+                sharedPhone: uni.getStorageSync("phone"),
                 shareId: this.shareId,
             };
             console.log(shareConfirmParam, "shareConfirmParam");
@@ -107,13 +107,13 @@ export default {
                 .then((res) => {
                     if (res.data.code == 200) {
                         uni.showToast({
-                            title: "授权成功",
+                            title: "已接受改设备",
                             icon: "success",
                             duration: 1500,
                         });
                         setTimeout(() => {
                             uni.reLaunch({
-                                url: "/pages/devices/devices",
+                                url: "/pages/home/home",
                             });
                         }, 1500);
                     } else {
@@ -148,7 +148,7 @@ export default {
                         });
                         setTimeout(() => {
                             uni.reLaunch({
-                                url: "/pages/devices/devices",
+                                url: "/pages/home/home",
                             });
                         }, 1500);
                     } else {