...
|
...
|
@@ -258,6 +258,22 @@ e.on("validate",function(){ |
|
|
|
|
|
});
|
|
|
|
|
|
// 对域名格式和长度做校验
|
|
|
e.on("validate", function() {
|
|
|
var shopDomainVal = $("#shopDomain").val();
|
|
|
if(shopDomainVal) {
|
|
|
var shopDomainPattern = new RegExp("^[a-zA-Z]([a-zA-Z-])*[a-zA-Z]$");
|
|
|
|
|
|
if(shopDomainVal.length < 1 || shopDomainVal.length > 32) {
|
|
|
return "店铺域名输入有误!";
|
|
|
}
|
|
|
|
|
|
if(!shopDomainPattern.test(shopDomainVal)) {
|
|
|
return "店铺域名输入有误!";
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
|
|
|
e.init();
|
|
|
|
|
|
var submit=function(callback){
|
...
|
...
|
|