Commit c2b662e1 authored by baixian's avatar baixian

手机正则修改

parent baacc4f6
......@@ -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>
......@@ -68,7 +68,7 @@ class QxLoginForm extends React.Component {
message.error('请输入手机号', 1);
return;
}
if (!/^1[345789]{1}[0-9]{9}$/.test(mobile)) {
if (!/^1[3456789]{1}[0-9]{9}$/.test(mobile)) {
message.error('请输入正确的手机号', 1);
return;
}
......
......@@ -68,7 +68,7 @@ class SjdLoginForm extends React.Component {
message.error('请输入手机号', 1);
return;
}
if (!/^1[345789]{1}[0-9]{9}$/.test(mobile)) {
if (!/^1[3456789]{1}[0-9]{9}$/.test(mobile)) {
message.error('请输入正确的手机号', 1);
return;
}
......
......@@ -72,7 +72,7 @@ class LoginForm extends React.Component {
message.error('请输入手机号', 1);
return;
}
if (!/^1[345789]{1}[0-9]{9}$/.test(mobile)) {
if (!/^1[3456789]{1}[0-9]{9}$/.test(mobile)) {
message.error('请输入正确的手机号', 1);
return;
}
......
......@@ -74,7 +74,7 @@ class LoginForm extends React.Component {
message.error('请输入手机号', 1);
return;
}
if (!/^1[345789]{1}[0-9]{9}$/.test(mobile)) {
if (!/^1[3456789]{1}[0-9]{9}$/.test(mobile)) {
message.error('请输入正确的手机号', 1);
return;
}
......
......@@ -67,7 +67,7 @@ class LoginForm extends React.Component {
message.error('请输入手机号', 1);
return;
}
if (!/^1[345789]{1}[0-9]{9}$/.test(mobile)) {
if (!/^1[3456789]{1}[0-9]{9}$/.test(mobile)) {
message.error('请输入正确的手机号', 1);
return;
}
......
......@@ -70,7 +70,7 @@ class LoginForm extends React.Component {
message.error('请输入手机号', 1);
return;
}
if (!/^1[345789]{1}[0-9]{9}$/.test(mobile)) {
if (!/^1[3456789]{1}[0-9]{9}$/.test(mobile)) {
message.error('请输入正确的手机号', 1);
return;
}
......
......@@ -56,7 +56,7 @@ class LoginForm extends React.Component {
message.error('请输入手机号', 1);
return;
}
if (!/^1[345789]{1}[0-9]{9}$/.test(mobile)) {
if (!/^1[3456789]{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[3456789]{1}[0-9]{9}$/, message: '请输入正确的手机号码!' },
{ max: 11, message: '手机号长度为11位!' },
],
})(
......
......@@ -67,7 +67,7 @@ class SchoolAddForm extends React.Component {
message.error('请输入手机号', 1);
return;
}
if (!/^1[345789]{1}[0-9]{9}$/.test(mobile)) {
if (!/^1[3456789]{1}[0-9]{9}$/.test(mobile)) {
message.error('请输入正确的手机号', 1);
return;
}
......
......@@ -74,7 +74,7 @@ class SchoolAddForm extends React.Component {
message.error('请输入手机号', 1);
return;
}
if (!/^1[345789]{1}[0-9]{9}$/.test(mobile)) {
if (!/^1[3456789]{1}[0-9]{9}$/.test(mobile)) {
message.error('请输入正确的手机号', 1);
return;
}
......
......@@ -36,4 +36,4 @@ module.exports = webpackMerge(baseconfig, {
// manifest: require('../lib/vendor-manifest.json'),
// }),
// ],
});
\ No newline at end of file
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment