验证手机号
This commit is contained in:
@@ -213,6 +213,10 @@ export default {
|
||||
if (!this.form.phone && this.fromType != 1) {
|
||||
return this.$u.toast('请输入手机号码')
|
||||
}
|
||||
let regTel = /^1(3\d|4[5-9]|5[0-35-9]|6[567]|7[0-8]|8\d|9[0-35-9])\d{8}$/
|
||||
if (this.form.phone.length == 11 && !regTel.test(this.form.phone) && this.fromType != 1) {
|
||||
return this.$u.toast('请输入正确的手机号')
|
||||
}
|
||||
if(!this.form.startTime) {
|
||||
return this.$u.toast('请选择出发时间')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user