Ver código fonte

bugfix:处理用户协议无法正常跳转,安卓砍价记录不显示问题

leo 1 ano atrás
pai
commit
24f3436cf1

+ 7 - 3
pages/claimCloudPhone/agreement.vue

@@ -13,6 +13,10 @@ export default {
       html: '',
     };
   },
+  auth: false,
+  head: {
+    title: '相关协议',
+  },
   components: {
     layout,
   },
@@ -51,9 +55,9 @@ export default {
         });
     },
     goBack() {
-        sessionStorage.setItem('isAgreementBool', 1)
-        this.$router.go(-1)
-    }
+      sessionStorage.setItem('isAgreementBool', 1);
+      this.$router.go(-1);
+    },
   },
 };
 </script>

+ 3 - 4
pages/claimCloudPhone/components/bargainingAssistance.vue

@@ -215,6 +215,7 @@
         <van-field
           placeholder="验证码"
           v-model="laoginData.code"
+          maxLength="6"
           @input="
             laoginData.code = laoginData.code.replace(/[\u4e00-\u9fa5]/g, '')
           "
@@ -480,7 +481,6 @@ export default {
         });
       }
       const params = {};
-      console.log(this.inviteeData);
       if (Object.keys(this.inviteeData).length) {
         params.userLaunchId = this.inviteeData.userLaunchId;
       }
@@ -496,6 +496,7 @@ export default {
               'bargainingStatusInfo',
               JSON.stringify(this.info),
             );
+            // 如果是被邀请人就不需要走下面流程
             if (Object.keys(this.inviteeData).length) {
               return;
             }
@@ -519,7 +520,6 @@ export default {
                 window.appGoBackCallback = () => {
                   this.exitVisible = true;
                 };
-                return;
               }
               // 对微信做拦截
               if (this.$userAgent.isWx) {
@@ -527,15 +527,14 @@ export default {
                   history.pushState(null, null, document.URL);
                   this.exitVisible = true;
                 });
-                return;
               }
             }
-
             if (
               [1, 2].includes(this.info.bargainingStatus) &&
               this.$refs.assistRecodeList &&
               this.$refs.assistGetPhoneRecode
             ) {
+              console.log(123456)
               this.$refs.assistRecodeList.data = [];
               this.$refs.assistGetPhoneRecode.data = [];
               this.$refs.assistRecodeList.list();