Prechádzať zdrojové kódy

bug-3706 更新手机号校验规则

cfort 1 rok pred
rodič
commit
7c04fe11ad

+ 1 - 1
src/views/platform/org/employee/edit/index.vue

@@ -269,7 +269,7 @@ export default {
             this.qrcodeVisible = true
         },
         checkPhone (value) {
-            const reg = /^((13[0-9])|(14[5,7])|(15[0-3,5-9])|(17[0,3,5-8])|(18[0-9])|166|198|199|(147))\d{8}$/
+            const reg = /^(?:(?:\+|00)86)?1(?:(?:3[\d])|(?:4[5-79])|(?:5[0-35-9])|(?:6[5-7])|(?:7[0-8])|(?:8[\d])|(?:9[12589]))\d{8}$/
             if (!reg.test(value)) {
                 return false
             }