页面优化
This commit is contained in:
@@ -688,6 +688,15 @@
|
||||
return true;
|
||||
},
|
||||
checkOnePwd() {
|
||||
if (productId == 27 || productId == 6) {
|
||||
if (this.OneBuyModel.Pwd.length < 7 || this.OneBuyModel.Pwd.length > 10 || !this.hasNumAndChar(this.OneBuyModel.Pwd)) {
|
||||
alert("此产品密码必须大于6位");
|
||||
this.OneChecker.PwdOk = false;
|
||||
return false;
|
||||
}
|
||||
this.OneChecker.PwdOk = true;
|
||||
return true;
|
||||
}
|
||||
if (this.OneBuyModel.Pwd.length > 6 || this.OneBuyModel.Pwd.length <1 || !this.hasNumAndChar(this.OneBuyModel.Pwd)) {
|
||||
this.OneChecker.PwdOk = false;
|
||||
alert('密码长度必须在1-6位,且不能包含特殊字符');
|
||||
@@ -717,6 +726,15 @@
|
||||
return true;
|
||||
},
|
||||
checkMorePwd() {
|
||||
if (productId == 27 || productId == 6) {
|
||||
if (this.MoreBuyModel.Pwd.length < 7 || this.MoreBuyModel.Pwd.length > 10 || !this.hasNumAndChar(this.MoreBuyModel.Pwd)) {
|
||||
alert("此产品密码必须大于6位");
|
||||
this.MoreChecker.PwdOk = false;
|
||||
return false;
|
||||
}
|
||||
this.MoreChecker.PwdOk = true;
|
||||
return true;
|
||||
}
|
||||
if (this.MoreBuyModel.Pwd.length > 6 || this.MoreBuyModel.Pwd.length < 1 || !this.hasNumAndChar(this.MoreBuyModel.Pwd)) {
|
||||
this.MoreChecker.PwdOk = false;
|
||||
alert('密码长度必须在1-6位,且不能包含特殊字符');
|
||||
|
||||
Reference in New Issue
Block a user