forked from Gitlink/forgeplus-react
Merge branch 'pre_dev_military' of https://git.trustie.net/Gitlink/forgeplus-react into dev-jk-maker
This commit is contained in:
commit
cf73f72e19
|
@ -148,7 +148,16 @@ export default Form.create()(({ match, history, showNotification, form }) => {
|
||||||
{
|
{
|
||||||
helper('联系方式',
|
helper('联系方式',
|
||||||
'contactInfo',
|
'contactInfo',
|
||||||
[{ required: true, message: "请输入联系方式" }, { max: 100, message: '不能超过100字符' }],
|
[{ required: true, message: "请输入联系方式" },
|
||||||
|
{ max: 100, message: '不能超过100字符' },
|
||||||
|
{ validator: (rule,val,callback) =>{
|
||||||
|
var pattern = /^((\+)?86|((\+)?86)?)0?1[3458]\d{9}$/;
|
||||||
|
if(pattern.test(val)){
|
||||||
|
callback();
|
||||||
|
}else {
|
||||||
|
callback('请输入正确的联系方式!');
|
||||||
|
}
|
||||||
|
}}],
|
||||||
<Input
|
<Input
|
||||||
placeholder="请输入联系方式"
|
placeholder="请输入联系方式"
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in New Issue