删除手机号格式验证
This commit is contained in:
parent
9c24b82cf2
commit
151ff96a25
@ -224,12 +224,13 @@ export default defineComponent({
|
|||||||
|
|
||||||
function sublogin(){
|
function sublogin(){
|
||||||
console.log(11)
|
console.log(11)
|
||||||
|
// else if(!(/^1[3-9]\d{9}$/.test(phone.value))){
|
||||||
|
// message.error(lan.$t('shoujihaoyouwu'));
|
||||||
|
// return
|
||||||
|
// }
|
||||||
if(phone.value==''){
|
if(phone.value==''){
|
||||||
message.error(lan.$t('shoujihaoweikong'))
|
message.error(lan.$t('shoujihaoweikong'))
|
||||||
return
|
return
|
||||||
}else if(!(/^1[3-9]\d{9}$/.test(phone.value))){
|
|
||||||
message.error(lan.$t('shoujihaoyouwu'));
|
|
||||||
return
|
|
||||||
} else if(code.value==""){
|
} else if(code.value==""){
|
||||||
// console.log(phone.value)
|
// console.log(phone.value)
|
||||||
console.log((/^1[3-9]\d{9}$/.test(phone.value)))
|
console.log((/^1[3-9]\d{9}$/.test(phone.value)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user