From 390df569c948225a0774a031dbae5338e53e94b6 Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Thu, 24 Jul 2025 09:45:36 +0800 Subject: [PATCH] =?UTF-8?q?=E9=82=AE=E7=AE=B1=E6=A0=A1=E9=AA=8C=E8=A7=84?= =?UTF-8?q?=E5=88=99=E4=BB=8E=E5=90=8E=E7=AB=AF=E8=8E=B7=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/trials/trials-myinfo/account.vue | 6 ++++++ src/views/user/myInfo.vue | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/src/views/trials/trials-myinfo/account.vue b/src/views/trials/trials-myinfo/account.vue index 14a1755f..e42bb512 100644 --- a/src/views/trials/trials-myinfo/account.vue +++ b/src/views/trials/trials-myinfo/account.vue @@ -290,6 +290,12 @@ export default { handleEmailChange() { var reg = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$/ + if (localStorage.getItem('CompanyInfo')) { + let CompanyInfo = JSON.parse(localStorage.getItem('CompanyInfo')); + if (CompanyInfo.EmailRegexStr) { + reg = CompanyInfo.EmailRegexStr + } + } if (this.userForm.EMail && reg.test(this.userForm.EMail)) { this.sendDisabled = false } else { diff --git a/src/views/user/myInfo.vue b/src/views/user/myInfo.vue index e73362ed..6676e5a2 100644 --- a/src/views/user/myInfo.vue +++ b/src/views/user/myInfo.vue @@ -438,6 +438,12 @@ export default { handleEmailChange() { var reg = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$/ + if (localStorage.getItem('CompanyInfo')) { + let CompanyInfo = JSON.parse(localStorage.getItem('CompanyInfo')); + if (CompanyInfo.EmailRegexStr) { + reg = CompanyInfo.EmailRegexStr + } + } if (this.userForm.EMail && reg.test(this.userForm.EMail)) { this.sendDisabled = false } else {