Browse Source

处理缺失

master
453530270@qq.com 2 years ago
parent
commit
48073a63f2
  1. 16
      pages/reg/reg.vue

16
pages/reg/reg.vue

@ -162,7 +162,7 @@
formValidation() { formValidation() {
const app = this const app = this
// //
if (!app.validteMobile(app.mobile) ||!app.validtePass(app.vpass) || !app.chkpass()) { if (!app.validteMobile(app.mobile) ||!app.validtePass(app.vpass) || !app.chkpass() || !app.validteVerify(app.chkcode)) {
return false return false
} }
@ -206,6 +206,17 @@
} }
return true return true
}, },
//
validteVerify(str){
if(Verify.isEmpty(str)){
this.$toast("请输入手机验证码")
}
if(str.length!=6){
this.$toast("请输入6位数的验证码")
}
return true
},
// //
handleReg() { handleReg() {
@ -222,7 +233,7 @@
// //
const rdata = { const rdata = {
cellPhone: app.mobile, cellPhone: app.mobile,
verifyCode: app.verifyCode, verifyCode: app.chkcode,
password:app.$md5(app.vpass).toUpperCase(), password:app.$md5(app.vpass).toUpperCase(),
passMd5ed: true passMd5ed: true
} }
@ -235,7 +246,6 @@
setTimeout(() => app.onNavigateBack(1), 2000) setTimeout(() => app.onNavigateBack(1), 2000)
} }
}); });
}, },
/** /**

Loading…
Cancel
Save