Commit a37458a1 authored by 黄媛媛's avatar 黄媛媛
parents c23853a7 84f96e99
......@@ -277,7 +277,7 @@ export default {
}
}
let validatePhone = (rule, value, callback) => {
let pattern = /^((13[0-9])|(14[5|7])|(15([0-3]|[5-9]))|(18[0,5-9])|(17[0,5-9])|(16[0,5-9]))\d{8}$|^((13[0-9])|(14[5|7])|(15([0-3]|[5-9]))|(18[0,5-9])|(17[0,5-9])|(16[0,5-9]))\d{8}$|^0\d{2,3}-?\d{7,8}$/;
var pattern = /(^1[3|4|5|6|7|8|9]\d{9}$)|(^09\d{8}$)/;
if (this.addMsg.ContactMobile =='') {
return callback(new Error('请填写手机号码'));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment