Преглед на файлове

新增登录页面,不登录按钮

wangming преди 2 месеца
родител
ревизия
e5c7b2d51f
променени са 3 файла, в които са добавени 17 реда и са изтрити 3 реда
  1. 2 1
      src/components/component/alarModel.vue
  2. 1 1
      src/pages/home/home.vue
  3. 14 1
      src/pagesA/loginNew/loginNew.vue

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

@@ -347,7 +347,8 @@ export default {
         },
         async call(e) {
             const { sn, idx, type: roomtype } = e;
-            const target = this.contactList[idx];
+            const target = this.contactList.find((item) => item.id === sn);
+            // const target = this.contactList[idx];
             const apiTypeName = this.apiTypesValid[this.apiTypeIndex];
             const businessType = apiTypes.indexOf(apiTypeName);
             try {

+ 1 - 1
src/pages/home/home.vue

@@ -87,7 +87,7 @@
             <image src="../../static/ln_small.png" class="shareImage"></image>
             <text class="shareTitle"
                 >您有<text class="shareNum">{{ shareNum }}</text
-                >设备待授权</text
+                >设备待授权</text
             >
         </view>
 

+ 14 - 1
src/pagesA/loginNew/loginNew.vue

@@ -15,7 +15,7 @@
                 同意协议并手机号快捷登录
             </van-button>
         </view>
-
+        <view class="skip-login-btn" @click="noLogin()">暂不登录</view>
         <view class="funItem">
             <label class="simple-radio" @click="changeCheck()"
                 ><radio
@@ -119,6 +119,12 @@ export default {
 
             this.checked = false;
         },
+        noLogin() {
+            uni.clearStorage;
+            uni.reLaunch({
+                url: "/pages/home/home",
+            });
+        },
     },
     onLoad() {},
     onShow() {
@@ -226,4 +232,11 @@ export default {
     align-items: center;
     padding: 20rpx 0;
 }
+.skip-login-btn {
+    width: 200rpx;
+    margin: 20rpx auto;
+    color: #ccc;
+    font-size: 15px;
+    text-align: center;
+}
 </style>