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 {