保存校验手机号位数
This commit is contained in:
parent
321d6c6c51
commit
fbce1a4103
@ -581,6 +581,16 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!/^1[3-9]\d{9}$/.test(this.form.invoice_reservation_phone)) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '请输入正确的手机号',
|
||||||
|
icon: 'none',
|
||||||
|
duration: 2000
|
||||||
|
})
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
return '';
|
||||||
console.log('submit:', this.order_nos);
|
console.log('submit:', this.order_nos);
|
||||||
// 如果存在意外引号,可以清理:
|
// 如果存在意外引号,可以清理:
|
||||||
const cleanOrderNos = this.order_nos.replace(/^"+|"+$/g, '');
|
const cleanOrderNos = this.order_nos.replace(/^"+|"+$/g, '');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user