Showing
1 changed file
with
2 additions
and
7 deletions
@@ -222,12 +222,7 @@ const brandBrowse = (data, params) => { | @@ -222,12 +222,7 @@ const brandBrowse = (data, params) => { | ||
222 | 222 | ||
223 | _.forEach(data, value => { | 223 | _.forEach(data, value => { |
224 | list.push({ | 224 | list.push({ |
225 | - url: helpers.urlFormat(shopListUrl, { | ||
226 | - shopId: _.get(params, 'shopId', ''), | ||
227 | - brand: value.id, | ||
228 | - title: value.title, | ||
229 | - navBar: 1 | ||
230 | - }), | 225 | + url: `${shopListUrl}?shopId=${params.shopId || ''}&brand=${value.id}&title=${value.title}$navBar=1`, |
231 | brandName: value.brandName, | 226 | brandName: value.brandName, |
232 | cur: (brand === +value.id) | 227 | cur: (brand === +value.id) |
233 | }); | 228 | }); |
@@ -316,7 +311,7 @@ exports.getShopDecorator = (data, params, shopId) => { | @@ -316,7 +311,7 @@ exports.getShopDecorator = (data, params, shopId) => { | ||
316 | Object.assign(dest, recommend(info, shopId)); | 311 | Object.assign(dest, recommend(info, shopId)); |
317 | break; | 312 | break; |
318 | case 'brandBrowse': | 313 | case 'brandBrowse': |
319 | - Object.assign(dest, brandBrowse(info)); | 314 | + Object.assign(dest, brandBrowse(info, params)); |
320 | break; | 315 | break; |
321 | case 'hotRecommend': | 316 | case 'hotRecommend': |
322 | Object.assign(dest, hotRecommend(info)); | 317 | Object.assign(dest, hotRecommend(info)); |
-
Please register or login to post a comment