Browse Source

更新手机号码校验规则

zhangyu 5 years ago
parent
commit
386a2f0e5f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/buildUser.vue

+ 1 - 1
src/views/buildUser.vue

@@ -277,7 +277,7 @@ export default {
     tdClick(changeData, source) {
       // changeData 是一个数组,第一个元素(数组),记录所有修改信息
       if (!changeData) return;
-      let rep = /^1(3|4|5|7|8)\d{9}$/;
+      let rep = /^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0135678]|18[0-9]|19[89])\d{8}$/;
       let indexArr = changeData.map(item => {
         return item[0];
       });