|
@@ -212,16 +212,16 @@
|
|
|
toast('手机号不能为空')
|
|
toast('手机号不能为空')
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
- if (this.bindObj.yzmNumber === '') {
|
|
|
|
|
- toast('验证码不能为空')
|
|
|
|
|
- return;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- if (this.bindObj.isDisabled) {
|
|
|
|
|
|
|
+ const phoneRegex = /^1[3-9]\d{9}$/;
|
|
|
|
|
+ if (!phoneRegex.test(this.bindObj.telNumber)) {
|
|
|
toast('请输入正确的手机号!')
|
|
toast('请输入正确的手机号!')
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ if (this.bindObj.yzmNumber === '') {
|
|
|
|
|
+ toast('验证码不能为空')
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
let req = {
|
|
let req = {
|
|
|
tel: this.bindObj.telNumber,
|
|
tel: this.bindObj.telNumber,
|
|
|
code: this.bindObj.yzmNumber,
|
|
code: this.bindObj.yzmNumber,
|