Authored by yyq

shop brand

... ... @@ -222,12 +222,7 @@ const brandBrowse = (data, params) => {
_.forEach(data, value => {
list.push({
url: helpers.urlFormat(shopListUrl, {
shopId: _.get(params, 'shopId', ''),
brand: value.id,
title: value.title,
navBar: 1
}),
url: `${shopListUrl}?shopId=${params.shopId || ''}&brand=${value.id}&title=${value.title}$navBar=1`,
brandName: value.brandName,
cur: (brand === +value.id)
});
... ... @@ -316,7 +311,7 @@ exports.getShopDecorator = (data, params, shopId) => {
Object.assign(dest, recommend(info, shopId));
break;
case 'brandBrowse':
Object.assign(dest, brandBrowse(info));
Object.assign(dest, brandBrowse(info, params));
break;
case 'hotRecommend':
Object.assign(dest, hotRecommend(info));
... ...