Browse Source

修改病人管理手机号码验证问题

csx 4 years ago
parent
commit
5be5d86b80
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/xt_pages/user/components/PatientForm.vue

+ 2 - 2
src/xt_pages/user/components/PatientForm.vue View File

1139
       }
1139
       }
1140
       if (
1140
       if (
1141
         !value.match(
1141
         !value.match(
1142
-          /^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0135678]|18[0-9]|19[89])\d{8}$/
1142
+          /^1\d{10}$/
1143
         )
1143
         )
1144
       ) {
1144
       ) {
1145
         return callback(new Error("请填写正确的电话(手机号码)"));
1145
         return callback(new Error("请填写正确的电话(手机号码)"));
1152
       }
1152
       }
1153
       if (
1153
       if (
1154
         !value.match(
1154
         !value.match(
1155
-          /^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0135678]|18[0-9]|19[89])\d{8}$/
1155
+          /^1\d{10}$/
1156
         )
1156
         )
1157
       ) {
1157
       ) {
1158
         return callback(new Error("请填写正确的电话(手机号码)"));
1158
         return callback(new Error("请填写正确的电话(手机号码)"));