Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
folacin-front
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ynby
folacin-front
Commits
91fad3e5
Commit
91fad3e5
authored
Aug 02, 2021
by
罗成兵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分配记录
parent
ce61c15f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
common.js
src/views/utils/common.js
+3
-3
No files found.
src/views/utils/common.js
View file @
91fad3e5
...
...
@@ -133,9 +133,9 @@ export const checkPhone = (rule, value, callback) => {
if
(
value
==
''
||
value
==
undefined
)
{
callback
()
}
var
ckPhone
=
/^1
(?:
3
[
0-9
]
|4
[
5-9
]
|5
[
0-9
]
|6
[
12456
]
|7
[
0-8
]
|8
[
0-9
]
|9
[
0-9
])[
0-9
]{8}
$/
;
let
cktel
=
/^
[
0
][
1-9
]{2,3}
-
[
0-9
]{5,10
}
$/
;
if
(
ckPhone
.
test
(
value
)
||
ckte
l
.
test
(
value
))
{
let
ckPhone
=
/^1
(?:
3
[
0-9
]
|4
[
5-9
]
|5
[
0-9
]
|6
[
12456
]
|7
[
0-8
]
|8
[
0-9
]
|9
[
0-9
])[
0-9
]{8}
$/
;
let
tell
=
/^0
\d{2,3}
-
?\d{7,8
}
$/
;
if
(
ckPhone
.
test
(
value
)
||
tel
l
.
test
(
value
))
{
callback
()
}
else
{
callback
(
new
Error
(
'请输入正确的手机号或座机'
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment