wgl 4 rokov pred
rodič
commit
494eb7f148
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      src/utils/index.js

+ 1 - 1
src/utils/index.js

@@ -223,7 +223,7 @@ export const checkPhone = (value) => {
 	if (!value) {
 		return '手机号不能为空';
 	} else {
-		const reg = /^1(3[0-9]|4[5,7]|5[0,1,2,3,5,6,7,8,9]|6[2,5,6,7]|7[0,1,2,3,5,6,7,8]|8[0-9]|9[1,8,9])\d{8}$/
+		const reg = /^1[3-9]\d{9}$/
 		var result = reg.test(value);
 
 		if (result) {