Commit c1352c72 authored by 侯絮's avatar 侯絮

fix(auditmodal): 收货地址校验

parent 46b8d7af
...@@ -110,9 +110,10 @@ const AuditModal = props => { ...@@ -110,9 +110,10 @@ const AuditModal = props => {
{ {
required: true, required: true,
message: '请填写退货地址!', message: '请填写退货地址!',
pattern: /^([\u4E00-\uFA29]|[\uE7C7-\uE7F3]|[a-zA-Z0-9_!@#¥%……&*()——+【】《》、;‘,。!@#$%^&*()_+{}|:“”<>?’~·])+$/gi,
}, },
], ],
})(<Input placeholder="请填写退货地址" allowClear />)} })(<Input placeholder="最多输入50个字符" maxLength="50" allowClear />)}
</FormItem> </FormItem>
<FormItem label="收件人"> <FormItem label="收件人">
{getFieldDecorator('receiverName', { {getFieldDecorator('receiverName', {
...@@ -121,9 +122,10 @@ const AuditModal = props => { ...@@ -121,9 +122,10 @@ const AuditModal = props => {
{ {
required: true, required: true,
message: '请填写收件人!', message: '请填写收件人!',
pattern: /^[A-Za-z0-9\u4e00-\u9fa5]+$/,
}, },
], ],
})(<Input placeholder="请填写收件人" allowClear />)} })(<Input placeholder="最多输入25个字符" maxLength="25" allowClear />)}
</FormItem> </FormItem>
<FormItem label="手机号码"> <FormItem label="手机号码">
{getFieldDecorator('receiverPhone', { {getFieldDecorator('receiverPhone', {
...@@ -138,7 +140,7 @@ const AuditModal = props => { ...@@ -138,7 +140,7 @@ const AuditModal = props => {
message: '请填写手机号码!', message: '请填写手机号码!',
}, },
], ],
})(<Input placeholder="请填写手机号码" allowClear />)} })(<Input placeholder="请填写手机号码" maxLength="11" allowClear />)}
</FormItem> </FormItem>
</div> </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