499701bd by joe

短信验证码锁定6位长度,过滤空格

1 parent b49a9fb1
......@@ -320,7 +320,7 @@ export default {
}
let data = {
mobile: this.loginForm.userId,
lan : this.locale
lan: this.locale
}
this._startTimeClick();
httpPost({
......@@ -691,6 +691,10 @@ export default {
},
'loginForm.otp': function () {
this.errorTips.oe2 = "";
this.loginForm.otp = this.loginForm.otp.replace(/(^\s*)|(\s*$)/g, "");
if (this.loginForm.otp.length > 0) {
this.loginForm.otp = this.loginForm.otp.substring(0, 6);
}
},
'loginForm.imageValue': function () {
this.errorTips.oe3 = "";
......
......@@ -687,6 +687,11 @@ export default {
},
"registerForm.otp": function () {
this.errorTips.p2 = "";
this.registerForm.otp = this.registerForm.otp.replace(/(^\s*)|(\s*$)/g, "");
if (this.registerForm.otp.length > 0) {
this.registerForm.otp = this.registerForm.otp.substring(0, 6);
}
},
"registerForm.imageValue": function () {
this.errorTips.p3 = "";
......