Commit c1352c72 authored by 侯絮's avatar 侯絮

fix(auditmodal): 收货地址校验

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