Browse Source

验证码异常修复

master
453530270@qq.com 2 years ago
parent
commit
010d9234ab
  1. 5
      pages/findpass/findpass.vue

5
pages/findpass/findpass.vue

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

Loading…
Cancel
Save