Showing
1 changed file
with
3 additions
and
3 deletions
@@ -238,7 +238,7 @@ const getBrandListByChannel = (channel) => { | @@ -238,7 +238,7 @@ const getBrandListByChannel = (channel) => { | ||
238 | 238 | ||
239 | const getBrandForSearch = (channel) => { | 239 | const getBrandForSearch = (channel) => { |
240 | return api.get('', { | 240 | return api.get('', { |
241 | - method: 'app.brand.brandlist', | 241 | + method: 'app.brand.allBrandList', |
242 | yh_channel: channel || 1 | 242 | yh_channel: channel || 1 |
243 | 243 | ||
244 | }, { | 244 | }, { |
@@ -434,7 +434,7 @@ const branchSearch = (params) => { | @@ -434,7 +434,7 @@ const branchSearch = (params) => { | ||
434 | 434 | ||
435 | if (result && result[0] && result[0].data) { | 435 | if (result && result[0] && result[0].data) { |
436 | 436 | ||
437 | - let brandList = result[0].data.brands; | 437 | + let brandList = result[0].data.all_list; |
438 | 438 | ||
439 | let obj = {}; | 439 | let obj = {}; |
440 | 440 | ||
@@ -447,7 +447,7 @@ const branchSearch = (params) => { | @@ -447,7 +447,7 @@ const branchSearch = (params) => { | ||
447 | name: row.brand_name, | 447 | name: row.brand_name, |
448 | isHot: row.is_hot === 'Y' ? true : false, | 448 | isHot: row.is_hot === 'Y' ? true : false, |
449 | isNew: row.is_show_new === 'Y' ? true : false, | 449 | isNew: row.is_show_new === 'Y' ? true : false, |
450 | - url: helpers.urlFormat('/product/index/brand?domain=' + row.brand_domain), | 450 | + url: _urlJump(parseInt(row.type, 10), row), |
451 | brandId: row.id, | 451 | brandId: row.id, |
452 | brandDomain: row.brand_domain, | 452 | brandDomain: row.brand_domain, |
453 | searchName: row.brand_name_en + row.brand_name_cn | 453 | searchName: row.brand_name_en + row.brand_name_cn |
-
Please register or login to post a comment