/*手机号隐藏中间4位数*/
export function phoneHide(val){
if(uni.$u.test.mobile(val)){
let showPhone = val.substr(0,3)+'****'+val.substr(7);
return showPhone
}else{
return '***********'
}
}
手机号隐藏中间4位数
最新推荐文章于 2024-02-23 16:52:26 发布
/*手机号隐藏中间4位数*/
export function phoneHide(val){
if(uni.$u.test.mobile(val)){
let showPhone = val.substr(0,3)+'****'+val.substr(7);
return showPhone
}else{
return '***********'
}
}