Commit 00c8a0f2 authored by 侯絮's avatar 侯絮

fix(audit): 收货地址增加校验

parent 493dc5a5
...@@ -136,20 +136,22 @@ const AuditModal = props => { ...@@ -136,20 +136,22 @@ const AuditModal = props => {
rules: [ rules: [
{ {
required: true, required: true,
message: '请填写退货地址!', message: '请填写正确退货地址!',
pattern: /^[A-Za-z0-9\u4e00-\u9fa5]+$/,
}, },
], ],
})(<Input placeholder="请填写退货地址" allowClear />)} })(<Input placeholder="最多输入50个字符" maxLength="50" allowClear />)}
</FormItem> </FormItem>
<FormItem label="收件人"> <FormItem label="收件人">
{getFieldDecorator('receiverName', { {getFieldDecorator('receiverName', {
rules: [ rules: [
{ {
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', {
...@@ -163,7 +165,7 @@ const AuditModal = props => { ...@@ -163,7 +165,7 @@ const AuditModal = props => {
message: '请填写手机号码!', message: '请填写手机号码!',
}, },
], ],
})(<Input placeholder="请填写手机号码" allowClear />)} })(<Input placeholder="11位数字" 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