Explorar o código

手机号放开

wgl %!s(int64=4) %!d(string=hai) anos
pai
achega
494eb7f148
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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) {