优化手机头问题

This commit is contained in:
java110 2020-03-24 09:15:17 +08:00
parent 085c79a197
commit d062190431
3 changed files with 4 additions and 4 deletions

View File

@ -151,10 +151,10 @@
},
test:function(val){
if('username' == val){
vc.toastTips("*用户名长度必须在4位至6位");
vc.messageTips("*用户名长度必须在4位至6位");
}else if('passwd' == val){
vc.toastTips("*密码长度必须在6位至12位");
vc.messageTips("*密码长度必须在6位至12位");
}
},

View File

@ -36,7 +36,7 @@
@param _msg 提示内容
@param _notAutoHide 是否需要自动隐藏
**/
vc.toastTips = function(_msg, _notAutoHide){
vc.messageTips = function(_msg, _notAutoHide){
vm.$emit('messageTips_openMessage',{msg:_msg});
if(!_notAutoHide){
vm.messageTimer_Tips();

View File

@ -1511,7 +1511,7 @@ vc 校验 工具类 -method
校验手机号
**/
phone:function(text){
var regPhone =/^0?1[3|4|5|6|7|8][0-9]\d{8}$/;
var regPhone =/^0?1[3|4|5|6|7|8|9][0-9]\d{8}$/;
return regPhone.test(text);
},
/**