diff --git a/pages/findpass/findpass.vue b/pages/findpass/findpass.vue index 4d3bd8f..eeade4c 100644 --- a/pages/findpass/findpass.vue +++ b/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 },