From 27dee2a63aeca1994a4594e0e0b834ad46caeb52 Mon Sep 17 00:00:00 2001 From: Administrator Date: Mon, 15 Oct 2018 20:38:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A016=E5=8F=B7=E6=AE=B5=E7=9A=84?= =?UTF-8?q?=E7=94=B5=E8=AF=9D=E5=8F=B7=E7=A0=81=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../static/ajax/libs/validate/jquery.validate.extend.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruoyi-admin/src/main/resources/static/ajax/libs/validate/jquery.validate.extend.js b/ruoyi-admin/src/main/resources/static/ajax/libs/validate/jquery.validate.extend.js index 1695e631a..1e4fa2733 100644 --- a/ruoyi-admin/src/main/resources/static/ajax/libs/validate/jquery.validate.extend.js +++ b/ruoyi-admin/src/main/resources/static/ajax/libs/validate/jquery.validate.extend.js @@ -8,7 +8,7 @@ $(document).ready(function(){ //手机号码验证身份证正则合并:(^\d{15}$)|(^\d{17}([0-9]|X)$) jQuery.validator.addMethod("isPhone",function(value,element){ var length = value.length; - var phone=/^1[3|4|5|7|8][0-9]\d{8}$/; + var phone=/^1[3|4|5|6|7|8][0-9]\d{8}$/; return this.optional(element)||(length == 11 && phone.test(value)); },"请填写正确的11位手机号"); //电话号码验证