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