Authored by dongjunjie

店铺装修

... ... @@ -1203,11 +1203,11 @@ function checkNumInput(){
function checkUrlInput(){
var urlList = $(".grid input[name='url']");
for(var i=0; i<urlList.length; i++){
var reg = new RegExp(".+\.yohobuy\.com.*","g");
var reg = new RegExp(".+\.yoho[^.]*\.(com|cn).*","g");
if(urlList.eq(i).val() != ""){
if(!reg.test(urlList.eq(i).val())){
urlList.eq(i).focus().select().addClass("error");
common.util.__tip("Url一级域名错误!必须是.yohobuy.com");
common.util.__tip("Url必须包含yohobuy或者yoho,域名格式为com或者cn!");
return false;
}
}
... ... @@ -1299,6 +1299,7 @@ function resourcesHtmlInit(item,resName){
var picList = item.data,
htmlPic = "";
for(var i=0; i<picList.length; i++){
picList[i].url=picList[i].url.replace(/"/g,'\''); // 字符串里面双引号转换成单引号
htmlPic += "<div class='row'>" +
"<div class='col-sm-2'><input type=file name='"+ resName +"Image' id='"+ resName +"Image_"+item.__index+"_"+i+"' value='"+picList[i].src+"' /></div>" +
'<div class="col-sm-3"><input type=text class="form-control inputChange urlInput" name="url" value="'+ picList[i].url +'" data-index="'+ item.__index +"_"+ i +'" /></div>' +
... ...