政策动态
This commit is contained in:
@@ -340,6 +340,10 @@ export default {
|
|||||||
return this.$u.toast(rules[v])
|
return this.$u.toast(rules[v])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
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)) {
|
||||||
|
return this.$u.toast('请输入正确的手机号')
|
||||||
|
}
|
||||||
if(!/[^0]0{0,2}$/.test(this.form.currentAreaId)) {
|
if(!/[^0]0{0,2}$/.test(this.form.currentAreaId)) {
|
||||||
return this.$u.toast('现住址必须选到村级')
|
return this.$u.toast('现住址必须选到村级')
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -362,6 +362,11 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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)) {
|
||||||
|
return this.$u.toast('请输入正确的手机号')
|
||||||
|
}
|
||||||
|
|
||||||
if(!/[^0]0{0,2}$/.test(this.form.currentAreaId)) {
|
if(!/[^0]0{0,2}$/.test(this.form.currentAreaId)) {
|
||||||
return this.$u.toast('现住址必须选到村级')
|
return this.$u.toast('现住址必须选到村级')
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user