Showing
1 changed file
with
4 additions
and
4 deletions
@@ -904,9 +904,9 @@ var Bll = { | @@ -904,9 +904,9 @@ var Bll = { | ||
904 | break; | 904 | break; |
905 | case "AppRecommendProduct": | 905 | case "AppRecommendProduct": |
906 | // 渲染 "展示类型" 选择组件 | 906 | // 渲染 "展示类型" 选择组件 |
907 | - Bll.recommendProductDisplayType = Bll.getRecommendProductDisplayType(module); | 907 | + Bll.recommendProduct = Bll.getRecommendProductData(module); // 临时保存装修数据 |
908 | Bll.recommendProductList = Bll.getModuleData(module); // 临时保存选中的SKN | 908 | Bll.recommendProductList = Bll.getModuleData(module); // 临时保存选中的SKN |
909 | - $('.editor-header').html(common.util.__template2($('#recommend-product-display-type').html(), {displayType: Bll.recommendProductDisplayType})); | 909 | + $('.editor-header').html(common.util.__template2($('#recommend-product-display-type').html(), {displayType: Bll.recommendProduct.displayType})); |
910 | Bll.initRecommendProduct(selector); | 910 | Bll.initRecommendProduct(selector); |
911 | break; | 911 | break; |
912 | }; | 912 | }; |
@@ -1026,7 +1026,7 @@ var Bll = { | @@ -1026,7 +1026,7 @@ var Bll = { | ||
1026 | callback: function() { | 1026 | callback: function() { |
1027 | let validation = false; | 1027 | let validation = false; |
1028 | let moduleType = Bll.moduleDataList[index].moduleType; | 1028 | let moduleType = Bll.moduleDataList[index].moduleType; |
1029 | - if(moduleType == 'RecommendProduct') { | 1029 | + if(moduleType == 'RecommendProduct' || moduleType == 'AppRecommendProduct') { |
1030 | validation = Bll.validator.validateModule(moduleType, Bll.recommendProduct); | 1030 | validation = Bll.validator.validateModule(moduleType, Bll.recommendProduct); |
1031 | } else { | 1031 | } else { |
1032 | validation = Bll.validator.validateModule(moduleType, Bll.moduleGrid.__rows); | 1032 | validation = Bll.validator.validateModule(moduleType, Bll.moduleGrid.__rows); |
@@ -1047,7 +1047,7 @@ var Bll = { | @@ -1047,7 +1047,7 @@ var Bll = { | ||
1047 | Bll.moduleDataList[index].moduleData.properties = {}; | 1047 | Bll.moduleDataList[index].moduleData.properties = {}; |
1048 | } | 1048 | } |
1049 | 1049 | ||
1050 | - if(moduleType == 'RecommendProduct') { | 1050 | + if(moduleType == 'RecommendProduct' || moduleType == 'AppRecommendProduct') { |
1051 | Bll.saveRecommendProduct(index); | 1051 | Bll.saveRecommendProduct(index); |
1052 | } else { | 1052 | } else { |
1053 | Bll.moduleDataList[index].moduleData.data = Bll.moduleGrid.__rows; | 1053 | Bll.moduleDataList[index].moduleData.data = Bll.moduleGrid.__rows; |
-
Please register or login to post a comment