Commit 71faa1ea by cwq0219

验证

1 parent 5c59ce48
......@@ -472,8 +472,8 @@
if ((merchantType == 1) && !validator.checkIdCard(value)) {
return '请填入正确的身份证'
}
if(value && !validator.ISNUMANDLETTERS.test(value)) {
return '只能输入数字和字母'
if(value && validator.ISCHINESE2.test(value)) {
return '只能输入数字、字母和符号'
}
}
},
......
......@@ -16,6 +16,8 @@ layui.define(['store'], function (exports) {
/* 判断是否为中文 */
ISCHINESE: /^[\u0391-\uFFE5]+$/,
ISCHINESE2: /[\u4E00-\u9FA5]/,
/* 判断是否为英文字母 */
ISENGLISH: /^[a-zA-Z]+$/,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!