|
|
|
@ -126,8 +126,7 @@ |
|
|
|
const app = this |
|
|
|
// 验证提交登录 |
|
|
|
if (!app.validteMobile(app.mobile) || !app.validtePass(app.vpass) || !app.validteRepass(app.repass) |
|
|
|
|| !app.chkpass() || !app.validteVerify( |
|
|
|
app.chkcode)) { |
|
|
|
|| !app.chkpass() || !app.validteVerify(app.chkcode)) { |
|
|
|
return false |
|
|
|
} |
|
|
|
return true |
|
|
|
@ -178,9 +177,11 @@ |
|
|
|
validteVerify(str) { |
|
|
|
if (Verify.isEmpty(str)) { |
|
|
|
this.$toast("请输入手机验证码") |
|
|
|
return false |
|
|
|
} |
|
|
|
if (str.length != 6) { |
|
|
|
this.$toast("请输入6位数的验证码") |
|
|
|
return false |
|
|
|
} |
|
|
|
return true |
|
|
|
}, |
|
|
|
|