Commit f56615b36d100dea44b4ee8052bc22dac9fbc394

Authored by yvan.ni
1 parent 8f164fcb

手机验证

Showing 1 changed file with 1 additions and 1 deletions
utils/util.js
@@ -232,7 +232,7 @@ function measureText(text, fontSize = 10) { @@ -232,7 +232,7 @@ function measureText(text, fontSize = 10) {
232 232
233 //验证手机号 233 //验证手机号
234 function check_mobile(phoneMobile){ 234 function check_mobile(phoneMobile){
235 - var myreg = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1})|(17[0-9]{1}))+\d{8})$/; 235 + var myreg = /^(((11[0-9]{1})|(12[0-9]{1})|(13[0-9]{1})|(14[0-9]{1})|(15[0-9]{1})|(16[0-9]{1})|(19[0-9]{1})|(18[0-9]{1})|(17[0-9]{1}))+\d{8})$/;
236 var ob={code:1}; 236 var ob={code:1};
237 if (phoneMobile.length === 0) { 237 if (phoneMobile.length === 0) {
238 ob.title='输入的手机号为空'; 238 ob.title='输入的手机号为空';