|
|
@@ -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;
|
|
|
}
|