...
|
...
|
@@ -642,7 +642,14 @@ 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).replace(/'/g,'\"')+"' data-index='"+item.__index+"' />";
|
|
|
if(item.url != ''){
|
|
|
item.linkType = item.linkType || '0';
|
|
|
}else{
|
|
|
item.linkType = item.linkType || '1';
|
|
|
}
|
|
|
item.categoryId = item.categoryId || '-1';
|
|
|
return common.util.__template2($("#link").html(),{data:item, categoryList:shopCategory, index:item.__index});
|
|
|
}},
|
|
|
{display:"操作", render:function(item){
|
|
|
var htmlPic = "",i=item.__index;
|
...
|
...
|
@@ -690,7 +697,14 @@ 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+"' />";
|
|
|
if(item.url != ''){
|
|
|
item.linkType = item.linkType || '0';
|
|
|
}else{
|
|
|
item.linkType = item.linkType || '1';
|
|
|
}
|
|
|
item.categoryId = item.categoryId || '-1';
|
|
|
return common.util.__template2($("#link").html(),{data:item, categoryList:shopCategory, index:item.__index});
|
|
|
// return "<input class='form-control inputChange urlInput' type=text name='url' value='"+(item.url).replace(/'/g,'\"')+"' data-index='"+item.__index+"' />";
|
|
|
}},
|
|
|
{display:"操作", render:function(item){
|
|
|
var htmlPic = "",i=item.__index;
|
...
|
...
|
|