Commit 8f8d0b8f authored by 张子雨's avatar 张子雨

feat: 修改手机号码校验

parent 493dc5a5
...@@ -129,8 +129,12 @@ const AuditModal = props => { ...@@ -129,8 +129,12 @@ const AuditModal = props => {
{getFieldDecorator('receiverPhone', { {getFieldDecorator('receiverPhone', {
initialValue: formData.phone, initialValue: formData.phone,
rules: [ rules: [
// {
// pattern: new RegExp(/^1[3456789]\d{9}$/, 'g'),
// message: '手机号码格式不正确!',
// },
{ {
pattern: new RegExp(/^1[3456789]\d{9}$/, 'g'), pattern: new RegExp(/^\d{11}$/),
message: '手机号码格式不正确!', message: '手机号码格式不正确!',
}, },
{ {
......
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