修改水滴密码验证规则

This commit is contained in:
“wanyongkang”
2026-04-22 14:01:33 +08:00
parent d1e4fb05b8
commit c7c3c038a8
2 changed files with 6 additions and 6 deletions

View File

@@ -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;
} }

View File

@@ -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;
} }