...
|
...
|
@@ -531,12 +531,29 @@ webpackJsonp([137],{ |
|
|
$(document).on("click", ".edit", function () {
|
|
|
var index = $(this).data("index");
|
|
|
var item = Bll.contentDatas[currIndex][index];
|
|
|
Bll.module = $.extend(true, {}, item);
|
|
|
Bll.toast(index, Bll.module);
|
|
|
if(item.contentData.template_name=='shopRecommend'){
|
|
|
var list = item.contentData.data.list;
|
|
|
for(var i = 0; i < list.length; i++) {
|
|
|
if(typeof(list[i].goods2) == 'undefined'){
|
|
|
console.log("shopRec","append");
|
|
|
var goods2 = {
|
|
|
"src":"",
|
|
|
"url":{
|
|
|
"url":"",
|
|
|
"action":""
|
|
|
}
|
|
|
};
|
|
|
list[i].goods2 = goods2;
|
|
|
}
|
|
|
}
|
|
|
Bll.module = $.extend(true, {}, item);
|
|
|
Bll.renderDialog("shopRecommend-template");
|
|
|
Bll.toast(index, Bll.module);
|
|
|
var _shopRecommendFlag = item.contentData.isShopRecommend==''?"N":item.contentData.isShopRecommend;
|
|
|
item.contentData.isEdit="Y";
|
|
|
changeShopRecommendDivShow(_shopRecommendFlag);
|
|
|
}else{
|
|
|
Bll.module = $.extend(true, {}, item);
|
|
|
Bll.toast(index, Bll.module);
|
|
|
}
|
|
|
});
|
|
|
|
...
|
...
|
@@ -2972,7 +2989,6 @@ webpackJsonp([137],{ |
|
|
__title:"好店推荐",
|
|
|
dialog: "shopRecommend-template",
|
|
|
isShopRecommend:"",
|
|
|
isEdit:"",
|
|
|
shopChannelId:"",
|
|
|
data: {
|
|
|
"title": {
|
...
|
...
|
|