|
@@ -75,6 +75,10 @@ export const formRules = () => {
|
|
|
required: true,
|
|
|
message: '请输入手机号',
|
|
|
trigger: 'blur'
|
|
|
+ }, {
|
|
|
+ pattern: /^((0\d{2,3}-\d{7,8})|(1[34578]\d{9}))$/,
|
|
|
+ message: '请输入正确手机号',
|
|
|
+ trigger: "blur"
|
|
|
}]
|
|
|
}, {
|
|
|
field: 'newPassword',
|
|
@@ -131,6 +135,10 @@ export const formRulesil = () => {
|
|
|
required: true,
|
|
|
message: '请输入手机号',
|
|
|
trigger: 'blur'
|
|
|
+ }, {
|
|
|
+ pattern: /^((0\d{2,3}-\d{7,8})|(1[34578]\d{9}))$/,
|
|
|
+ message: '请输入正确手机号',
|
|
|
+ trigger: "blur"
|
|
|
}]
|
|
|
}, ]
|
|
|
}
|