|
|
@ -651,7 +651,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
if (name.length>10) {
|
|
|
|
if (name.length>10) {
|
|
|
|
$(this).val(name.substr(0,10));
|
|
|
|
$(this).val(name.substr(0,10));
|
|
|
|
layer.msg('字符输入超过十位');
|
|
|
|
layer.msg('字符输入超过10位');
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -664,6 +664,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
var flagEmail = \/^\\w+((-\\w+)|(\\.\\w+))*\\@[A-Za-z0-9]+((\\.|-)[A-Za-z0-9]+)*\\.[A-Za-z0-9]+$\/;
|
|
|
|
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) {
|
|
|
|
if(flagPhone.test(strEmail)==false && flagEmail.test(strEmail) == false && strEmail.length>0) {
|
|
|
|
$(this).val("");
|
|
|
|
$(this).val("");
|
|
|
|
layer.msg('支付宝账号格式不正确');
|
|
|
|
layer.msg('支付宝账号格式不正确');
|
|
|
|