Authored by htoooth

健状性增强

@@ -738,19 +738,22 @@ const _detailDataPkg = (origin, uid, vipLevel) => { @@ -738,19 +738,22 @@ const _detailDataPkg = (origin, uid, vipLevel) => {
738 738
739 if (domainBrand.type && domainBrand.shopId) { 739 if (domainBrand.type && domainBrand.shopId) {
740 switch (parseInt(domainBrand.type, 10)) { 740 switch (parseInt(domainBrand.type, 10)) {
741 - case 1: { 741 + case 1:
  742 + {
742 // 多品店不显示 743 // 多品店不显示
743 banner = []; 744 banner = [];
744 break; 745 break;
745 } 746 }
746 - case 2: { 747 + case 2:
  748 + {
747 // 单品店显示新版的店铺banner 749 // 单品店显示新版的店铺banner
748 let basisData = yield shopService.basisTemplateAsync(domainBrand.shopId); 750 let basisData = yield shopService.basisTemplateAsync(domainBrand.shopId);
749 751
750 banner.bgImg = basisData.shopTopBanner.banner || banner.bgImg; 752 banner.bgImg = basisData.shopTopBanner.banner || banner.bgImg;
751 break; 753 break;
752 } 754 }
753 - default: { 755 + default:
  756 + {
754 break; 757 break;
755 } 758 }
756 } 759 }
@@ -893,6 +896,7 @@ const _sizeInfoBoSort = (sizeInfoBo) => { @@ -893,6 +896,7 @@ const _sizeInfoBoSort = (sizeInfoBo) => {
893 let sortAttr = []; 896 let sortAttr = [];
894 897
895 sizeInfoBo.sizeAttributeBos.forEach(val => { 898 sizeInfoBo.sizeAttributeBos.forEach(val => {
  899 + console.dir(val.id, sizeBoList.sortAttributes[val.id]);
896 sortAttr.push(sizeBoList.sortAttributes[val.id]); 900 sortAttr.push(sizeBoList.sortAttributes[val.id]);
897 }); 901 });
898 902
@@ -1327,7 +1331,7 @@ const showMainAsync = (data) => { @@ -1327,7 +1331,7 @@ const showMainAsync = (data) => {
1327 let requestData = yield Promise.all([ 1331 let requestData = yield Promise.all([
1328 _getSortNavAsync(productInfo.goodsInfo.smallSortId, data.gender), 1332 _getSortNavAsync(productInfo.goodsInfo.smallSortId, data.gender),
1329 HeaderModel.requestHeaderData(data.channel) 1333 HeaderModel.requestHeaderData(data.channel)
1330 - ]).catch(()=> ([{}, {}])); 1334 + ]);
1331 1335
1332 // 分类导航 ,seo 1336 // 分类导航 ,seo
1333 let navs = requestData[0]; 1337 let navs = requestData[0];