...
|
...
|
@@ -215,7 +215,6 @@ const index = (req) => { |
|
|
// 新品牌入驻
|
|
|
if (result[2].code === 200 && result[2].data) {
|
|
|
let hotBrandsData = _.get(result, '[2].data.hot_brand_list', []),
|
|
|
browseBrandsData = _.get(result, '[2].data.browse_brand_list', []),
|
|
|
recList = [];
|
|
|
|
|
|
_.forEach(hotBrandsData, hotBrand => {
|
...
|
...
|
@@ -228,17 +227,6 @@ const index = (req) => { |
|
|
});
|
|
|
});
|
|
|
|
|
|
_.forEach(browseBrandsData, browseBrand => {
|
|
|
recList.push({
|
|
|
url: helpers.urlFormat('', {shopId: browseBrand.shops_id}, browseBrand.shop_domain),
|
|
|
src: browseBrand.shop_logo,
|
|
|
num: browseBrand.new_product_num,
|
|
|
shopId: browseBrand.shops_id,
|
|
|
brandId: browseBrand.brand_id
|
|
|
});
|
|
|
});
|
|
|
|
|
|
|
|
|
// 为您推荐
|
|
|
Object.assign(respData.recommond.dataList, recList);
|
|
|
|
...
|
...
|
|