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
//
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
},

Loading…
Cancel
Save