...
|
...
|
@@ -2,7 +2,7 @@ |
|
|
* @Author: Targaryen
|
|
|
* @Date: 2017-03-23 11:02:31
|
|
|
* @Last Modified by: Targaryen
|
|
|
* @Last Modified time: 2017-04-26 16:33:07
|
|
|
* @Last Modified time: 2017-05-02 11:09:37
|
|
|
*/
|
|
|
/* 红人店铺数据处理 */
|
|
|
|
...
|
...
|
@@ -174,14 +174,14 @@ const _tools = { |
|
|
},
|
|
|
|
|
|
/**
|
|
|
* 商品列表
|
|
|
* 推荐商品列表
|
|
|
* @param {*} moduleData
|
|
|
*/
|
|
|
recommentProduct(moduleData) {
|
|
|
appRecommendProduct(moduleData) {
|
|
|
let displayType = _.parseInt(_.get(moduleData, 'properties.displayType', 0));
|
|
|
|
|
|
let result = {
|
|
|
module_type: 'RecommentProduct',
|
|
|
module_type: 'AppRecommendProduct',
|
|
|
type: displayType
|
|
|
};
|
|
|
|
...
|
...
|
@@ -206,10 +206,7 @@ const _tools = { |
|
|
break;
|
|
|
}
|
|
|
|
|
|
return {
|
|
|
module_type: 'RecommentProduct',
|
|
|
skns: skns,
|
|
|
};
|
|
|
return result;
|
|
|
}
|
|
|
};
|
|
|
|
...
|
...
|
@@ -256,8 +253,8 @@ const floor = (decoratorsData) => { |
|
|
case 'SknList':
|
|
|
skns = _.get(value, 'module_data.data').join(',');
|
|
|
break;
|
|
|
case 'RecommentProduct':
|
|
|
decorators.push(_tools.recommentProduct(value.module_data));
|
|
|
case 'AppRecommendProduct':
|
|
|
decorators.push(_tools.appRecommendProduct(value.module_data));
|
|
|
break;
|
|
|
default:
|
|
|
break;
|
...
|
...
|
|