删除手机号格式验证

This commit is contained in:
luyuan 2020-11-09 17:01:25 +08:00
parent 9c24b82cf2
commit 151ff96a25
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3

View File

@ -224,12 +224,13 @@ export default defineComponent({
function sublogin(){
console.log(11)
// else if(!(/^1[3-9]\d{9}$/.test(phone.value))){
// message.error(lan.$t('shoujihaoyouwu'));
// return
// }
if(phone.value==''){
message.error(lan.$t('shoujihaoweikong'))
return
}else if(!(/^1[3-9]\d{9}$/.test(phone.value))){
message.error(lan.$t('shoujihaoyouwu'));
return
} else if(code.value==""){
// console.log(phone.value)
console.log((/^1[3-9]\d{9}$/.test(phone.value)))