liangjin
2021-04-01 423acbcecdfd0e50f7b3311245c41948a418029c
手机号正则
1 files modified
2 ■■■ changed files
src/utils/validator.js 2 ●●● patch | view | raw | blame | history
src/utils/validator.js
@@ -49,7 +49,7 @@
    },
    // 电话号码格式
    checkPhone(phone) {
        let reg = /^1([35789][0-9]|4[579]|66|7[0135678]|9[89])[0-9]{8}$/;
        let reg = /^1[0-9]{10}$/;
        return reg.test(phone);
    },
    checkEmail(email) {