Commit ab478116 authored by 王苓芝's avatar 王苓芝

手机号格式校验

parent 2c0e22ef
......@@ -154,6 +154,10 @@ const AuditModal = props => {
<FormItem label="手机号码">
{getFieldDecorator('receiverPhone', {
rules: [
{
pattern: new RegExp(/^1[3456789]\d{9}$/, 'g'),
message: '手机号码格式不正确!',
},
{
required: true,
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