Authored by dongjunjie

店铺问题

... ... @@ -474,7 +474,7 @@ function gridInit(id){
return "<input class='form-control inputChange' type=text name='name' value='"+item.name+"' data-index='"+item.__index+"' maxlength='5' />";
}},
{display:"链接", render:function(item){
return "<input class='form-control inputChange urlInput' type=text name='url' value='"+(item.url).replace(/'/g,'\"')+"' data-index='"+item.__index+"' />";
return "<input class='form-control inputChange urlInput' type=text name='url' value='"+(item.url)+"' data-index='"+item.__index+"' />";
}}
]
});
... ... @@ -581,7 +581,7 @@ function gridInit(id){
return "<input type=file name='recommendImage' id='recommendImage_"+item.__index+"' value='"+item.src+"' />";
}},
{display:"链接", render:function(item){
return "<input class='form-control inputChange urlInput' type=text name='url' value='"+(item.url).replace(/'/g,'\"')+"' data-index='"+item.__index+"' />";
return "<input class='form-control inputChange urlInput' type=text name='url' value='"+(item.url)+"' data-index='"+item.__index+"' />";
}},
{display:"操作", render:function(item){
var htmlPic = "",i=item.__index;
... ... @@ -629,7 +629,7 @@ function gridInit(id){
return "<input type=file name='signboardImage' id='hotRecommendImage_"+item.__index+"' value='"+item.src+"' />";
}},
{display:"链接", render:function(item){
return "<input class='form-control inputChange urlInput' type=text name='url' value='"+(item.url).replace(/'/g,'\"')+"' data-index='"+item.__index+"' />";
return "<input class='form-control inputChange urlInput' type=text name='url' value='"+(item.url)+"' data-index='"+item.__index+"' />";
}},
{display:"操作", render:function(item){
var htmlPic = "",i=item.__index;
... ... @@ -709,7 +709,7 @@ function gridInit(id){
if(item.__index == 0){
return "http://店铺商品列表页(默认)";
}else{
return "<input class='form-control inputChange urlInput' type=text name='url' value='"+(item.url).replace(/'/g,'\"')+"' data-index='"+item.__index+"' />";
return "<input class='form-control inputChange urlInput' type=text name='url' value='"+(item.url)+"' data-index='"+item.__index+"' />";
}
}},
{display:"操作", render:function(item){
... ... @@ -757,7 +757,7 @@ function gridInit(id){
if(item.__index == 0){
return "http://店铺商品列表页(默认)";
}else{
return "<input class='form-control inputChange urlInput' type=text name='url' value='"+(item.url).replace(/'/g,'\"')+"' data-index='"+item.__index+"' />";
return "<input class='form-control inputChange urlInput' type=text name='url' value='"+(item.url)+"' data-index='"+item.__index+"' />";
}
}},
{display:"操作", render:function(item){
... ... @@ -1344,7 +1344,6 @@ 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>" +
... ...