Authored by zhaoqing

店铺模块化增加商品推荐模块

... ... @@ -904,9 +904,9 @@ var Bll = {
break;
case "AppRecommendProduct":
// 渲染 "展示类型" 选择组件
Bll.recommendProductDisplayType = Bll.getRecommendProductDisplayType(module);
Bll.recommendProduct = Bll.getRecommendProductData(module); // 临时保存装修数据
Bll.recommendProductList = Bll.getModuleData(module); // 临时保存选中的SKN
$('.editor-header').html(common.util.__template2($('#recommend-product-display-type').html(), {displayType: Bll.recommendProductDisplayType}));
$('.editor-header').html(common.util.__template2($('#recommend-product-display-type').html(), {displayType: Bll.recommendProduct.displayType}));
Bll.initRecommendProduct(selector);
break;
};
... ... @@ -1026,7 +1026,7 @@ var Bll = {
callback: function() {
let validation = false;
let moduleType = Bll.moduleDataList[index].moduleType;
if(moduleType == 'RecommendProduct') {
if(moduleType == 'RecommendProduct' || moduleType == 'AppRecommendProduct') {
validation = Bll.validator.validateModule(moduleType, Bll.recommendProduct);
} else {
validation = Bll.validator.validateModule(moduleType, Bll.moduleGrid.__rows);
... ... @@ -1047,7 +1047,7 @@ var Bll = {
Bll.moduleDataList[index].moduleData.properties = {};
}
if(moduleType == 'RecommendProduct') {
if(moduleType == 'RecommendProduct' || moduleType == 'AppRecommendProduct') {
Bll.saveRecommendProduct(index);
} else {
Bll.moduleDataList[index].moduleData.data = Bll.moduleGrid.__rows;
... ...