删除手机号格式验证
This commit is contained in:
parent
9c24b82cf2
commit
151ff96a25
@ -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)))
|
||||
|
Loading…
Reference in New Issue
Block a user