...
|
...
|
@@ -18,11 +18,14 @@ class TideModel extends global.yoho.BaseModel { |
|
|
this.crmRecommendSort(params)
|
|
|
]).then(res => {
|
|
|
let tide = {
|
|
|
resource: [],
|
|
|
resource: _.get(res[0], 'data', []),
|
|
|
contents: []
|
|
|
};
|
|
|
let sindex = _.findIndex(tide.resource, {template_name: 'image_list'});
|
|
|
|
|
|
tide.resource = _.get(res[0], 'data', []);
|
|
|
if (sindex > -1) {
|
|
|
tide.resource[sindex].title = '# 精彩活动 #';
|
|
|
}
|
|
|
|
|
|
_.each(_.get(res[1], 'data', []), (item, index) => {
|
|
|
item.sortInfo = item.sortInfo || {};
|
...
|
...
|
@@ -99,13 +102,16 @@ class TideModel extends global.yoho.BaseModel { |
|
|
this.crmRecommendProduct(params)
|
|
|
]).then(res => {
|
|
|
let tide = {
|
|
|
resource: [],
|
|
|
resource: _.get(res[0], 'data', []),
|
|
|
brands: [],
|
|
|
shopInfo: [],
|
|
|
contents: []
|
|
|
};
|
|
|
let sindex = _.findIndex(tide.resource, {template_name: 'image_list'});
|
|
|
|
|
|
tide.resource = _.get(res[0], 'data', []);
|
|
|
if (sindex > -1) {
|
|
|
tide.resource[sindex].title = '# 精彩活动 #';
|
|
|
}
|
|
|
|
|
|
let shopInfo = _.get(res[1], 'data.shopInfo', {});
|
|
|
|
...
|
...
|
|