Commit 7c873095 authored by 张子雨's avatar 张子雨

fix: 修改手机号码验证

parent 8f8d0b8f
import React from 'react';
import { Modal, Form, Input, Cascader, notification } from 'antd';
import { Modal, Form, Input, Cascader, notification, InputNumber } from 'antd';
import { shopAudit } from '../services';
const FormItem = Form.Item;
......@@ -134,7 +134,7 @@ const AuditModal = props => {
// message: '手机号码格式不正确!',
// },
{
pattern: new RegExp(/^\d{11}$/),
pattern: new RegExp(/^[0-9]*$/),
message: '手机号码格式不正确!',
},
{
......@@ -142,7 +142,7 @@ const AuditModal = props => {
message: '请填写手机号码!',
},
],
})(<Input placeholder="请填写手机号码" allowClear />)}
})(<Input maxLength={11} placeholder="请填写手机号码" allowClear />)}
</FormItem>
</div>
)}
......
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