dengzhiguo 6 years ago
parent
commit
60d3201380

+ 1 - 1
js/component/manageCenter/set/userManagementS/newUser.jsx

@@ -101,7 +101,7 @@ const Newuser = Form.create()(React.createClass({
         	return false;
         };
         if(this.state.contactMobile){
-        	if(!(/^1[3|4|5|8][0-9]\d{4,8}$/.test(this.state.contactMobile))){ 
+        	if(!(/^1[1-9][0-9]\d{4,8}$/.test(this.state.contactMobile))){ 
 			  message.warning("不是完整的11位手机号或者正确的手机号前七位"); 
 			  this.setState({
                     loading: false

+ 1 - 1
js/component/manageCenter/topTab.jsx

@@ -325,7 +325,7 @@ const UserModal = React.createClass({
             loading: true
         });
         if(this.state.contactMobile){
-        	if(!(/^1[3|4|5|8][0-9]\d{4,8}$/.test(this.state.contactMobile))){ 
+        	if(!(/^1[1-9][0-9]\d{4,8}$/.test(this.state.contactMobile))){ 
 			  message.warning("不是完整的11位手机号或者正确的手机号前七位"); 
 			  this.setState({
                     loading: false