Commit 0d89d2ce authored by XieZhiXiong's avatar XieZhiXiong

chore: 修改注册手机号判断及提示

parent 165a22b1
......@@ -30,7 +30,7 @@ export default {
'customerAbility.management.import.query.form.basic.phone': 'Registered phone',
'customerAbility.management.import.query.form.basic.phone.placeholder': 'Please enter your mobile phone number',
'customerAbility.management.import.query.form.basic.phone.rules-fact': 'Please enter the phone number in the correct format',
'customerAbility.management.import.query.form.basic.phone.max': 'The registered mobile number exceeds {len} digits',
'customerAbility.management.import.query.form.basic.phone.max': 'The registered mobile number is not equal to {len} digits',
'customerAbility.management.import.query.form.basic.email': 'Mailbox',
'customerAbility.management.import.query.form.basic.email.rules-fact': 'Please enter the correct email format',
'customerAbility.management.import.query.form.channel': 'Channel Information',
......
......@@ -32,7 +32,7 @@ export default {
'member.management.import.query.form.basic.phone':'Registered phone',
'member.management.import.query.form.basic.phone.placeholder':'Please enter your mobile phone number',
'member.management.import.query.form.basic.phone.rules-fact':'Please enter the phone number in the correct format',
'member.management.import.query.form.basic.phone.max': 'The registered mobile number exceeds {len} digits',
'member.management.import.query.form.basic.phone.max': 'The registered mobile number is not equal to {len} digits',
'member.management.import.query.form.basic.email':'Mailbox',
'member.management.import.query.form.basic.email.rules-fact':'Please enter the correct email format',
'member.management.import.query.form.channel':'Channel Information',
......
......@@ -171,5 +171,5 @@ export default {
// 供应商管理 - 供应商导入
'supplier.management.import.query.form.basic.phone.placeholder': 'Please enter your mobile phone number',
'supplier.management.import.query.form.basic.phone.max': 'The registered mobile number exceeds {len} digits',
'supplier.management.import.query.form.basic.phone.max': 'The registered mobile number is not equal to {len} digits',
};
......@@ -31,7 +31,7 @@ export default {
'customerAbility.management.import.query.form.basic.phone': '휴대폰 등록',
'customerAbility.management.import.query.form.basic.phone.placeholder': '핸드폰 번호를 입력하세요.',
'customerAbility.management.import.query.form.basic.phone.rules-fact': '정확한 형식의 핸드폰 번호를 입력하세요',
'customerAbility.management.import.query.form.basic.phone.max': '{len}자리 이상의 등록된 휴대폰 번호',
'customerAbility.management.import.query.form.basic.phone.max': '등록된 휴대전화 번호가 {len}자리가 아닙니다.',
'customerAbility.management.import.query.form.basic.email': '우편함',
'customerAbility.management.import.query.form.basic.email.rules-fact': '올바른 형식의 메일박스를 입력하십시오',
'customerAbility.management.import.query.form.channel': '채널 정보',
......
......@@ -32,7 +32,7 @@ export default {
'member.management.import.query.form.basic.phone': '휴대폰 등록',
'member.management.import.query.form.basic.phone.placeholder': '핸드폰 번호를 입력하세요.',
'member.management.import.query.form.basic.phone.rules-fact': '정확한 형식의 핸드폰 번호를 입력하세요',
'member.management.import.query.form.basic.phone.max': '{len}자리 이상의 등록된 휴대폰 번호',
'member.management.import.query.form.basic.phone.max': '등록된 휴대전화 번호가 {len}자리가 아닙니다.',
'member.management.import.query.form.basic.email': '우편함',
'member.management.import.query.form.basic.email.rules-fact': '올바른 형식의 메일박스를 입력하십시오',
'member.management.import.query.form.channel': '채널 정보',
......
......@@ -165,5 +165,5 @@ export default {
// 供应商管理 - 供应商导入
'supplier.management.import.query.form.basic.phone.placeholder': '핸드폰 번호를 입력하세요.',
'supplier.management.import.query.form.basic.phone.max': '{len}자리 이상의 등록된 휴대폰 번호',
'supplier.management.import.query.form.basic.phone.max': '등록된 휴대전화 번호가 {len}자리가 아닙니다.',
};
......@@ -32,7 +32,7 @@ export default {
'customerAbility.management.import.query.form.basic.phone': '注册手机',
'customerAbility.management.import.query.form.basic.phone.placeholder': '请输入你的手机号码',
'customerAbility.management.import.query.form.basic.phone.rules-fact': '请输入正确格式的手机号',
'customerAbility.management.import.query.form.basic.phone.max': '注册手机号超出{len}位数',
'customerAbility.management.import.query.form.basic.phone.max': '注册手机号不等于{len}位数',
'customerAbility.management.import.query.form.basic.email': '邮箱',
'customerAbility.management.import.query.form.basic.email.rules-fact': '请输入正确格式的邮箱',
'customerAbility.management.import.query.form.channel': '渠道信息',
......
......@@ -32,7 +32,7 @@ export default {
'member.management.import.query.form.basic.phone': '注册手机',
'member.management.import.query.form.basic.phone.placeholder': '请输入你的手机号码',
'member.management.import.query.form.basic.phone.rules-fact': '请输入正确格式的手机号',
'member.management.import.query.form.basic.phone.max': '注册手机号超出{len}位数',
'member.management.import.query.form.basic.phone.max': '注册手机号不等于{len}位数',
'member.management.import.query.form.basic.email': '邮箱',
'member.management.import.query.form.basic.email.rules-fact': '请输入正确格式的邮箱',
'member.management.import.query.form.channel': '渠道信息',
......
......@@ -256,5 +256,5 @@ export default {
// 供应商管理 - 供应商导入
'supplier.management.import.query.form.basic.phone.placeholder': '请输入你的手机号码',
'supplier.management.import.query.form.basic.phone.max': '注册手机号超出{len}位数',
'supplier.management.import.query.form.basic.phone.max': '注册手机号不等于{len}位数',
};
......@@ -600,7 +600,7 @@ const MemberForm: React.FC<MemberFormProps> = ({
},
{
validator: (value) => {
return value?.length > current.phoneLength ? intl.formatMessage({ id: 'customerAbility.management.import.query.form.basic.phone.max' }, { len: current.phoneLength }) : '';
return value?.length !== current.phoneLength ? intl.formatMessage({ id: 'customerAbility.management.import.query.form.basic.phone.max' }, { len: current.phoneLength }) : '';
},
},
];
......
......@@ -599,7 +599,7 @@ const MemberForm: React.FC<MemberFormProps> = ({
},
{
validator: (value) => {
return value?.length > current.phoneLength ? intl.formatMessage({ id: 'member.management.import.query.form.basic.phone.max' }, { len: current.phoneLength }) : '';
return value?.length !== current.phoneLength ? intl.formatMessage({ id: 'member.management.import.query.form.basic.phone.max' }, { len: current.phoneLength }) : '';
},
},
];
......
......@@ -599,7 +599,7 @@ const MemberForm: React.FC<MemberFormProps> = ({
},
{
validator: (value) => {
return value?.length > current.phoneLength ? intl.formatMessage({ id: 'supplier.management.import.query.form.basic.phone.max' }, { len: current.phoneLength }) : '';
return value?.length !== current.phoneLength ? intl.formatMessage({ id: 'supplier.management.import.query.form.basic.phone.max' }, { len: current.phoneLength }) : '';
},
},
];
......
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