更新港澳手机号段

This commit is contained in:
huangdeliang 2020-12-09 11:10:00 +08:00
parent 1c643a761d
commit d053b57d74

View File

@ -134,7 +134,8 @@
const checkPhone = (rule, value, callback) => { const checkPhone = (rule, value, callback) => {
const phoneReg = /^1[3|4|5|6|7|8|9][0-9]{9}$/ const phoneReg = /^1[3|4|5|6|7|8|9][0-9]{9}$/
const hkPhoneReg = /^(5|6|8|9)\\d{7}$/ const hkPhoneReg = /^(5|6|8|9)\d{7}$/
console.log(hkPhoneReg.test(value))
if (!value) { if (!value) {
return callback(new Error('电话号码不能为空')) return callback(new Error('电话号码不能为空'))
} }