修改水滴密码验证规则
This commit is contained in:
@@ -845,7 +845,7 @@
|
||||
},
|
||||
created: function () {
|
||||
this.order_info.account = this.randomString(2) + (Math.floor(Math.random() * 10000) + 1);
|
||||
this.order_info.password = (Math.floor(Math.random() * 1000) + 1);
|
||||
this.order_info.password = (Math.floor(Math.random() * 1000000) + 1);
|
||||
},
|
||||
methods: {
|
||||
randomString(len) {
|
||||
@@ -1077,8 +1077,8 @@
|
||||
alert('账号长度至少5位!');
|
||||
return;
|
||||
}
|
||||
if (this.order_info.password.length < 3 && this.hasNumAndChar(this.order_info.password)) {
|
||||
alert('密码长度至少3位!');
|
||||
if (this.order_info.password.length < 6 && this.hasNumAndChar(this.order_info.password)) {
|
||||
alert('密码长度至少6位!');
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user