diff --git a/Application/Admin/View/CompanyStatement/viewSpecialComplement.html b/Application/Admin/View/CompanyStatement/viewSpecialComplement.html index 3fce5c2e3..2fa9cef34 100644 --- a/Application/Admin/View/CompanyStatement/viewSpecialComplement.html +++ b/Application/Admin/View/CompanyStatement/viewSpecialComplement.html @@ -651,7 +651,7 @@ if (name.length>10) { $(this).val(name.substr(0,10)); - layer.msg('字符输入超过十位'); + layer.msg('字符输入超过10位'); return; } }); @@ -664,6 +664,13 @@ var flagEmail = \/^\\w+((-\\w+)|(\\.\\w+))*\\@[A-Za-z0-9]+((\\.|-)[A-Za-z0-9]+)*\\.[A-Za-z0-9]+$\/; + + if (strEmail.length>50) { + $(this).val(""); + layer.msg('字符输入超过50位'); + return; + } + if(flagPhone.test(strEmail)==false && flagEmail.test(strEmail) == false && strEmail.length>0) { $(this).val(""); layer.msg('支付宝账号格式不正确');