...
|
...
|
@@ -42,7 +42,7 @@ const _packageAd = (params) => { |
|
|
|
|
|
const _packageList = (channel) => {
|
|
|
return api.get('', {
|
|
|
method: 'app.brand.newBrandList',
|
|
|
method: 'app.brand.allBrandList',
|
|
|
yh_channel: channel
|
|
|
}, {
|
|
|
cache: true,
|
...
|
...
|
@@ -172,7 +172,12 @@ const getBrandListByChannel = (channel) => { |
|
|
name: row.brand_name,
|
|
|
isHot: row.is_hot === 'Y' ? true : false,
|
|
|
isNew: row.is_show_new === 'Y' ? true : false,
|
|
|
url: helpers.urlFormat('/product/index/brand?domain=' + row.brand_domain)
|
|
|
url: row.type !== '3' ? helpers.urlFormat('/product/index/brand', {
|
|
|
domain: row.brand_domain,
|
|
|
shopType: row.type
|
|
|
}) : helpers.urlFormat('/product/global/list/', {
|
|
|
brand: row.global_brand_id
|
|
|
})
|
|
|
});
|
|
|
});
|
|
|
resu.brandList.push(obj);
|
...
|
...
|
@@ -190,7 +195,10 @@ const getBrandListByChannel = (channel) => { |
|
|
|
|
|
obj.list.push({
|
|
|
brandName: newList[key].brand_name,
|
|
|
url: helpers.urlFormat('/product/index/brand?domain=' + newList[key].brand_domain),
|
|
|
url: helpers.urlFormat('/product/index/brand', {
|
|
|
domain: newList[key].brand_domain,
|
|
|
shopType: newList[key].type
|
|
|
}),
|
|
|
img: helpers.image(newList[key].brand_ico, 186, 115),
|
|
|
});
|
|
|
resu.newBrandWall.push(obj);
|
...
|
...
|
@@ -208,7 +216,10 @@ const getBrandListByChannel = (channel) => { |
|
|
|
|
|
obj.list.push({
|
|
|
brandName: hotList[key].brand_name,
|
|
|
url: helpers.urlFormat('/product/index/brand?domain=' + hotList[key].brand_domain),
|
|
|
url: helpers.urlFormat('/product/index/brand', {
|
|
|
domain: hotList[key].brand_domain,
|
|
|
shopType: hotList[key].type
|
|
|
}),
|
|
|
img: helpers.image(hotList[key].brand_ico, 186, 115),
|
|
|
});
|
|
|
resu.recommandBrandWall.push(obj);
|
...
|
...
|
|