From b48a75b000ed7762fb5aa0018d091b243c780783 Mon Sep 17 00:00:00 2001 From: myTest383
Date: Thu, 17 Oct 2024 10:03:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E7=99=BB=E5=BD=95=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/login/login.vue | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/src/views/login/login.vue b/src/views/login/login.vue index afce4c0..8519dbd 100644 --- a/src/views/login/login.vue +++ b/src/views/login/login.vue @@ -76,7 +76,7 @@ 密码 - 验证码 @@ -123,9 +123,9 @@ {{item.orgName}} - + - + @@ -221,6 +221,7 @@ registerInfo: { mobile: '', userSid: "", + password: "", sourceSid: 'd936f1ba-03c3-11ec-bf08-48452053aa33', // wms 资源sid }, loginForm: { @@ -454,6 +455,16 @@ }, registerStep1() { + var passwordreg = /^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9]).{8,16}$/ + + if (!passwordreg.test(this.registerInfo.password)) { + this.$message({ + message: '密码格式错误,必须为8至16位大小写字母和数字的组合', + type: 'warning' + }) + return + } + if (!this.check) { this.$message({ message: '请阅读并同意《宇信通服务协议》与《隐私协议》', @@ -554,7 +565,8 @@ var params = { userSid: this.registerInfo.userSid, - orgSid: item.orgSid + orgSid: item.orgSid, + sourceSid: 'd936f1ba-03c3-11ec-bf08-48452053aa33', // wms 资源sid } selOrganization(params).then((response) => {