Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
杨炀
/
dance-pc
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
b6c72052
authored
2025-07-29 11:53:53 +0800
by
zhangmeng
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
邮箱正则
1 parent
8fdfc7b0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
src/viewsPc/match/components/affix-invitation.vue
src/viewsPc/match/components/affix-invitation.vue
View file @
b6c7205
...
...
@@ -544,8 +544,16 @@ function sendEmail() {
ElMessage
.
error
(
language
.
value
==
0
?
'请输入邮箱'
:
'Please enter contact Email'
)
return
}
if
(
!
/^
[
a-zA-Z0-9_-
]
+@
[
a-zA-Z0-9_-
]
+
(\.[
a-zA-Z0-9_-
]
+
)
+$/
.
test
(
form
.
value
.
email
))
{
ElMessage
.
error
(
language
.
value
==
0
?
'请输入正确的邮箱'
:
'Please enter the correct contact email'
)
// if (!/^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/.test(form.value.email)) {
// ElMessage.error(language.value == 0 ? '请输入正确的邮箱' : 'Please enter the correct contact email')
// return
// }
if
(
form
.
value
.
email
.
indexOf
(
'@'
)
==
-
1
)
{
if
(
language
.
value
==
0
)
{
ElMessage
.
warning
(
'请填写正确的邮箱'
)
}
else
{
ElMessage
.
warning
(
'Please fill in the correct email'
)
}
return
}
codeloading
.
value
=
true
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment