Commit 5103be21 by chenwq

密码正则;邀请销售

1 parent b6d0a5fb
......@@ -52,21 +52,10 @@ const getInviteCode = data => {
)
}
// 查询商户详情
const getMerchantId = data => {
return api.post(
{
method: 'scrm.api.busassistant.merchant.getMerchantIdByMerchantNo',
...data
}
)
}
export default {
getCustomerList,
saveCustomer,
updateCustomer,
getEmployeeList,
getInviteCode,
getMerchantId
getInviteCode
}
\ No newline at end of file
......@@ -14,7 +14,7 @@ const formRule = {
{ required: true, message: '登录密码不能为空' },
{
validator: (rule, value) => {
return /^[a-zA-Z0-9]{6,20}$/.test(value) ? null : { message: '登陆密码请输入6-20位数字和字母组合' }
return /^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,12}$/.test(value) ? null : { message: '登陆密码请输入6-20位数字和字母组合' }
}
}
],
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!