Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOOD
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
whb
9 years ago
Commit
274471001fd7853c436648405aaea84e42812797
1 parent
00db39fb
在线登记
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
res/js/yohood.js
res/js/yohood.js
View file @
2744710
...
...
@@ -767,7 +767,7 @@ define('yohood', function(require, exports) {
$
.
validator
.
addMethod
(
"isPhone"
,
function
(
value
,
element
)
{
var
length
=
value
.
length
;
var
mobile
=
/^
(((
13
[
0-9
]{1})
|
(
15
[
0-9
]{1}))
+
\d{8})
$/
;
var
tel
=
/^
\d{3,4}
-
?\d
{7,9}
$/
;
var
tel
=
/^
[
0-9
]{3,4}
-
?[
0-9
]
{7,9}
$/
;
return
this
.
optional
(
element
)
||
(
tel
.
test
(
value
)
||
mobile
.
test
(
value
));
},
"请正确填写您的联系电话"
);
...
...
Please
register
or
login
to post a comment