Authored by htoooth

健状性增强

... ... @@ -738,19 +738,22 @@ const _detailDataPkg = (origin, uid, vipLevel) => {
if (domainBrand.type && domainBrand.shopId) {
switch (parseInt(domainBrand.type, 10)) {
case 1: {
case 1:
{
// 多品店不显示
banner = [];
break;
}
case 2: {
case 2:
{
// 单品店显示新版的店铺banner
let basisData = yield shopService.basisTemplateAsync(domainBrand.shopId);
banner.bgImg = basisData.shopTopBanner.banner || banner.bgImg;
break;
}
default: {
default:
{
break;
}
}
... ... @@ -893,6 +896,7 @@ const _sizeInfoBoSort = (sizeInfoBo) => {
let sortAttr = [];
sizeInfoBo.sizeAttributeBos.forEach(val => {
console.dir(val.id, sizeBoList.sortAttributes[val.id]);
sortAttr.push(sizeBoList.sortAttributes[val.id]);
});
... ... @@ -1327,7 +1331,7 @@ const showMainAsync = (data) => {
let requestData = yield Promise.all([
_getSortNavAsync(productInfo.goodsInfo.smallSortId, data.gender),
HeaderModel.requestHeaderData(data.channel)
]).catch(()=> ([{}, {}]));
]);
// 分类导航 ,seo
let navs = requestData[0];
... ...