mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-12 10:00:56 +08:00
优化手机头问题
This commit is contained in:
parent
085c79a197
commit
d062190431
@ -151,10 +151,10 @@
|
|||||||
},
|
},
|
||||||
test:function(val){
|
test:function(val){
|
||||||
if('username' == val){
|
if('username' == val){
|
||||||
vc.toastTips("*用户名长度必须在4位至6位");
|
vc.messageTips("*用户名长度必须在4位至6位");
|
||||||
|
|
||||||
}else if('passwd' == val){
|
}else if('passwd' == val){
|
||||||
vc.toastTips("*密码长度必须在6位至12位");
|
vc.messageTips("*密码长度必须在6位至12位");
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -36,7 +36,7 @@
|
|||||||
@param _msg 提示内容
|
@param _msg 提示内容
|
||||||
@param _notAutoHide 是否需要自动隐藏
|
@param _notAutoHide 是否需要自动隐藏
|
||||||
**/
|
**/
|
||||||
vc.toastTips = function(_msg, _notAutoHide){
|
vc.messageTips = function(_msg, _notAutoHide){
|
||||||
vm.$emit('messageTips_openMessage',{msg:_msg});
|
vm.$emit('messageTips_openMessage',{msg:_msg});
|
||||||
if(!_notAutoHide){
|
if(!_notAutoHide){
|
||||||
vm.messageTimer_Tips();
|
vm.messageTimer_Tips();
|
||||||
|
|||||||
@ -1511,7 +1511,7 @@ vc 校验 工具类 -method
|
|||||||
校验手机号
|
校验手机号
|
||||||
**/
|
**/
|
||||||
phone:function(text){
|
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);
|
return regPhone.test(text);
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user