Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
biz.qingxiao.com
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
wangxuelai
biz.qingxiao.com
Commits
c2b662e1
Commit
c2b662e1
authored
Jun 04, 2020
by
baixian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
手机正则修改
parent
baacc4f6
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
12 additions
and
12 deletions
+12
-12
index.html
index.html
+1
-1
QxLogin.js
src/pages/login/QxLogin.js
+1
-1
SjdLogin.js
src/pages/login/SjdLogin.js
+1
-1
index.js
src/pages/login/index.js
+1
-1
index.js
src/pages/newregister/index.js
+1
-1
index.js
src/pages/register/index.js
+1
-1
user-info.js
src/pages/register/user-info.js
+1
-1
index.js
src/pages/resetpsd/index.js
+2
-2
index.js
src/pages/schooladd/index.js
+1
-1
index.js
src/pages/schooledit/index.js
+1
-1
webpack.config.js
webpack.config.js
+1
-1
No files found.
index.html
View file @
c2b662e1
...
...
@@ -18,5 +18,5 @@
</head>
<body>
<div
id=
"root"
></div>
<script
type=
"text/javascript"
src=
"https://cdn.s.shangjiadao.cn/qingxiao/biz/dist/main.
1a3e1b
.js"
></script></body>
<script
type=
"text/javascript"
src=
"https://cdn.s.shangjiadao.cn/qingxiao/biz/dist/main.
d6563c
.js"
></script></body>
</html>
src/pages/login/QxLogin.js
View file @
c2b662e1
...
...
@@ -68,7 +68,7 @@ class QxLoginForm extends React.Component {
message
.
error
(
'请输入手机号'
,
1
);
return
;
}
if
(
!
/^1
[
345789
]{1}[
0-9
]{9}
$/
.
test
(
mobile
))
{
if
(
!
/^1
[
345
6
789
]{1}[
0-9
]{9}
$/
.
test
(
mobile
))
{
message
.
error
(
'请输入正确的手机号'
,
1
);
return
;
}
...
...
src/pages/login/SjdLogin.js
View file @
c2b662e1
...
...
@@ -68,7 +68,7 @@ class SjdLoginForm extends React.Component {
message
.
error
(
'请输入手机号'
,
1
);
return
;
}
if
(
!
/^1
[
345789
]{1}[
0-9
]{9}
$/
.
test
(
mobile
))
{
if
(
!
/^1
[
345
6
789
]{1}[
0-9
]{9}
$/
.
test
(
mobile
))
{
message
.
error
(
'请输入正确的手机号'
,
1
);
return
;
}
...
...
src/pages/login/index.js
View file @
c2b662e1
...
...
@@ -72,7 +72,7 @@ class LoginForm extends React.Component {
message
.
error
(
'请输入手机号'
,
1
);
return
;
}
if
(
!
/^1
[
345789
]{1}[
0-9
]{9}
$/
.
test
(
mobile
))
{
if
(
!
/^1
[
345
6
789
]{1}[
0-9
]{9}
$/
.
test
(
mobile
))
{
message
.
error
(
'请输入正确的手机号'
,
1
);
return
;
}
...
...
src/pages/newregister/index.js
View file @
c2b662e1
...
...
@@ -74,7 +74,7 @@ class LoginForm extends React.Component {
message
.
error
(
'请输入手机号'
,
1
);
return
;
}
if
(
!
/^1
[
345789
]{1}[
0-9
]{9}
$/
.
test
(
mobile
))
{
if
(
!
/^1
[
345
6
789
]{1}[
0-9
]{9}
$/
.
test
(
mobile
))
{
message
.
error
(
'请输入正确的手机号'
,
1
);
return
;
}
...
...
src/pages/register/index.js
View file @
c2b662e1
...
...
@@ -67,7 +67,7 @@ class LoginForm extends React.Component {
message
.
error
(
'请输入手机号'
,
1
);
return
;
}
if
(
!
/^1
[
345789
]{1}[
0-9
]{9}
$/
.
test
(
mobile
))
{
if
(
!
/^1
[
345
6
789
]{1}[
0-9
]{9}
$/
.
test
(
mobile
))
{
message
.
error
(
'请输入正确的手机号'
,
1
);
return
;
}
...
...
src/pages/register/user-info.js
View file @
c2b662e1
...
...
@@ -70,7 +70,7 @@ class LoginForm extends React.Component {
message
.
error
(
'请输入手机号'
,
1
);
return
;
}
if
(
!
/^1
[
345789
]{1}[
0-9
]{9}
$/
.
test
(
mobile
))
{
if
(
!
/^1
[
345
6
789
]{1}[
0-9
]{9}
$/
.
test
(
mobile
))
{
message
.
error
(
'请输入正确的手机号'
,
1
);
return
;
}
...
...
src/pages/resetpsd/index.js
View file @
c2b662e1
...
...
@@ -56,7 +56,7 @@ class LoginForm extends React.Component {
message
.
error
(
'请输入手机号'
,
1
);
return
;
}
if
(
!
/^1
[
345789
]{1}[
0-9
]{9}
$/
.
test
(
mobile
))
{
if
(
!
/^1
[
345
6
789
]{1}[
0-9
]{9}
$/
.
test
(
mobile
))
{
message
.
error
(
'请输入正确的手机号'
,
1
);
return
;
}
...
...
@@ -125,7 +125,7 @@ class LoginForm extends React.Component {
{
getFieldDecorator
(
'mobile'
,
{
rules
:
[
{
required
:
true
,
message
:
'请输入您的手机号!'
},
{
pattern
:
/^1
[
345789
]{1}[
0-9
]{9}
$/
,
message
:
'请输入正确的手机号码!'
},
{
pattern
:
/^1
[
345
6
789
]{1}[
0-9
]{9}
$/
,
message
:
'请输入正确的手机号码!'
},
{
max
:
11
,
message
:
'手机号长度为11位!'
},
],
})(
...
...
src/pages/schooladd/index.js
View file @
c2b662e1
...
...
@@ -67,7 +67,7 @@ class SchoolAddForm extends React.Component {
message
.
error
(
'请输入手机号'
,
1
);
return
;
}
if
(
!
/^1
[
345789
]{1}[
0-9
]{9}
$/
.
test
(
mobile
))
{
if
(
!
/^1
[
345
6
789
]{1}[
0-9
]{9}
$/
.
test
(
mobile
))
{
message
.
error
(
'请输入正确的手机号'
,
1
);
return
;
}
...
...
src/pages/schooledit/index.js
View file @
c2b662e1
...
...
@@ -74,7 +74,7 @@ class SchoolAddForm extends React.Component {
message
.
error
(
'请输入手机号'
,
1
);
return
;
}
if
(
!
/^1
[
345789
]{1}[
0-9
]{9}
$/
.
test
(
mobile
))
{
if
(
!
/^1
[
345
6
789
]{1}[
0-9
]{9}
$/
.
test
(
mobile
))
{
message
.
error
(
'请输入正确的手机号'
,
1
);
return
;
}
...
...
webpack.config.js
View file @
c2b662e1
...
...
@@ -36,4 +36,4 @@ module.exports = webpackMerge(baseconfig, {
// manifest: require('../lib/vendor-manifest.json'),
// }),
// ],
});
\ No newline at end of file
});
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