Browse Source

Merge branch 'feature_20250722_金牌店档案收集' into uat(dev)

zhujindu 4 months ago
parent
commit
2d70d5c773
1 changed files with 8 additions and 3 deletions
  1. 8 3
      src/views/storeManagement/JPattributeEditor.vue

+ 8 - 3
src/views/storeManagement/JPattributeEditor.vue

@@ -112,6 +112,7 @@ export default {
       minDate: new Date(1945, 0, 1),
       maxDate: new Date(),
       currentDate: new Date(1945, 0, 1),
+      mobileStatus: '0',
     };
   },
   activated() {
@@ -146,7 +147,8 @@ export default {
             ? res.data.mainProductCategorys.split(',')
             : [];
           this.detail = res.data;
-          this.verificationPassedPhoneNum = this.detail.ownerMobile;
+          // mobileStatus 1是 是否验证通过
+          if (this.mobileStatus == '1') this.verificationPassedPhoneNum = this.detail.ownerMobile;
         }
       });
     },
@@ -200,7 +202,7 @@ export default {
           verification: val, //String	手机号验证码
         },
         (res) => {
-          this.verificationPassedPhoneNum = this.detail.ownerMobile;
+          if (res.data) this.verificationPassedPhoneNum = this.detail.ownerMobile;
           this.$toast(res.data ? '验证成功' : '验证码错误');
         }
       );
@@ -222,7 +224,10 @@ export default {
     },
     // 保存
     confirmShare() {
-      if (this.detail.ownerMobile != this.verificationPassedPhoneNum) {
+      if (
+        this.verificationPassedPhoneNum == '' ||
+        this.detail.ownerMobile != this.verificationPassedPhoneNum
+      ) {
         this.$toast('请验证手机号');
         return;
       }