...
|
...
|
@@ -150,7 +150,8 @@ const getGlobalProductListData = (params, yoho) => { |
|
|
}, dps)),
|
|
|
list: globalApi.getGlobalProductListAsync(Object.assign({
|
|
|
physical_channel: yoho.channelNum
|
|
|
}, params, {limit: limitNum}))
|
|
|
}, params, {limit: limitNum})),
|
|
|
brand: dps.brand ? globalApi.getGlobalBrandInfoAsync(dps.brand) : {}
|
|
|
}).then(result => {
|
|
|
let resData = {};
|
|
|
|
...
|
...
|
@@ -193,13 +194,11 @@ const getGlobalProductListData = (params, yoho) => { |
|
|
let pathInfo = {};
|
|
|
|
|
|
if (dps.brand) {
|
|
|
let bandInfo = _.find(_.get(result.fullList, 'data.filter.brand', []), o => {
|
|
|
return o.id * 1 === dps.brand * 1;
|
|
|
});
|
|
|
let brandName = _.get(result.brand, 'data.brand_name', '');
|
|
|
|
|
|
if (bandInfo) {
|
|
|
if (brandName) {
|
|
|
pathInfo.brand = {
|
|
|
name: bandInfo.brand_name
|
|
|
name: brandName
|
|
|
};
|
|
|
}
|
|
|
}
|
...
|
...
|
|