Authored by 梁志锋

Merge remote-tracking branch 'remotes/origin/hotfix/2770'

@@ -133,6 +133,8 @@ const _getTagsDataByProductInfo = (data) => { @@ -133,6 +133,8 @@ const _getTagsDataByProductInfo = (data) => {
133 case 'yearEnd':// 年终大促 133 case 'yearEnd':// 年终大促
134 tags.isYearEndPromotion = true; 134 tags.isYearEndPromotion = true;
135 break; 135 break;
  136 + default:
  137 + break;
136 } 138 }
137 } 139 }
138 ); 140 );
@@ -372,19 +374,19 @@ const _getSkuDataByProductBaseInfo = (data) => { @@ -372,19 +374,19 @@ const _getSkuDataByProductBaseInfo = (data) => {
372 goodsGroup.size.push({ 374 goodsGroup.size.push({
373 name: size.sizeName, 375 name: size.sizeName,
374 sku: size.goodsSizeSkuId, 376 sku: size.goodsSizeSkuId,
375 - num: parseInt(size.goodsSizeStorageNum), 377 + num: parseInt(size.goodsSizeStorageNum, 10),
376 goodsId: size.goodsId 378 goodsId: size.goodsId
377 }); 379 });
378 380
379 // 单个sku商品的总数 381 // 单个sku商品的总数
380 - goodsGroup.total += parseInt(size.goodsSizeStorageNum); 382 + goodsGroup.total += parseInt(size.goodsSizeStorageNum, 10);
381 383
382 if (goodsGroup.total > 0 && !chooseSkuFlag) { // 默认选中该sku商品 384 if (goodsGroup.total > 0 && !chooseSkuFlag) { // 默认选中该sku商品
383 goodsGroup.focus = true; 385 goodsGroup.focus = true;
384 chooseSkuFlag = true;// 选中sku商品 386 chooseSkuFlag = true;// 选中sku商品
385 } 387 }
386 388
387 - totalStorageNum += parseInt(size.goodsSizeStorageNum); 389 + totalStorageNum += parseInt(size.goodsSizeStorageNum, 10);
388 390
389 }); 391 });
390 392
@@ -488,6 +490,9 @@ const _getFashionTopGoodsStatus = (uid, showStatus, isBeginSale) => { @@ -488,6 +490,9 @@ const _getFashionTopGoodsStatus = (uid, showStatus, isBeginSale) => {
488 if (uid) { // 限购码失效 490 if (uid) { // 限购码失效
489 result.getLimitedCodeDis = true; 491 result.getLimitedCodeDis = true;
490 } 492 }
  493 + break;
  494 + default:
  495 + break;
491 } 496 }
492 497
493 498
@@ -646,7 +651,7 @@ const _detailDataPkg = (origin, uid, vipLevel) => { @@ -646,7 +651,7 @@ const _detailDataPkg = (origin, uid, vipLevel) => {
646 let showStatus = 1; 651 let showStatus = 1;
647 652
648 if (origin.showStatus) { 653 if (origin.showStatus) {
649 - showStatus = parseInt(origin.showStatus); 654 + showStatus = parseInt(origin.showStatus, 10);
650 } 655 }
651 656
652 let fashTopGoods = _getFashionTopGoodsStatus(uid, showStatus, isBeginSale); 657 let fashTopGoods = _getFashionTopGoodsStatus(uid, showStatus, isBeginSale);
@@ -731,7 +736,7 @@ const _detailDataPkg = (origin, uid, vipLevel) => { @@ -731,7 +736,7 @@ const _detailDataPkg = (origin, uid, vipLevel) => {
731 let domainBrand = yield brandService.getBrandByDomainAsync(banner.brandDomain); 736 let domainBrand = yield brandService.getBrandByDomainAsync(banner.brandDomain);
732 737
733 if (domainBrand.type && domainBrand.shopId) { 738 if (domainBrand.type && domainBrand.shopId) {
734 - switch (parseInt(domainBrand.type)) { 739 + switch (parseInt(domainBrand.type, 10)) {
735 case 1: 740 case 1:
736 { 741 {
737 // 多品店不显示 742 // 多品店不显示
@@ -746,6 +751,8 @@ const _detailDataPkg = (origin, uid, vipLevel) => { @@ -746,6 +751,8 @@ const _detailDataPkg = (origin, uid, vipLevel) => {
746 banner.bgImg = basisData.shopTopBanner.banner || banner.bgImg; 751 banner.bgImg = basisData.shopTopBanner.banner || banner.bgImg;
747 break; 752 break;
748 } 753 }
  754 + default:
  755 + break;
749 756
750 } 757 }
751 } 758 }
@@ -754,7 +761,7 @@ const _detailDataPkg = (origin, uid, vipLevel) => { @@ -754,7 +761,7 @@ const _detailDataPkg = (origin, uid, vipLevel) => {
754 statGoodsInfo.imageUrl = result.img; 761 statGoodsInfo.imageUrl = result.img;
755 statGoodsInfo.productUrl = result.weixinUrl; 762 statGoodsInfo.productUrl = result.weixinUrl;
756 statGoodsInfo.smallSortId = result.smallSortId; 763 statGoodsInfo.smallSortId = result.smallSortId;
757 - statGoodsInfo.soldOut = parseInt(soldOut); 764 + statGoodsInfo.soldOut = parseInt(soldOut, 10);
758 765
759 return { 766 return {
760 goodsInfo: result, 767 goodsInfo: result,
@@ -1329,7 +1336,7 @@ const showMainAsync = data => { @@ -1329,7 +1336,7 @@ const showMainAsync = data => {
1329 1336
1330 let requestData = yield Promise.all([ 1337 let requestData = yield Promise.all([
1331 _getSortNavAsync(productInfo.goodsInfo.smallSortId, data.gender), 1338 _getSortNavAsync(productInfo.goodsInfo.smallSortId, data.gender),
1332 - HeaderModel.requestHeaderData() 1339 + HeaderModel.requestHeaderData(data.channel)
1333 ]); 1340 ]);
1334 1341
1335 // 获取商品尺寸相关 1342 // 获取商品尺寸相关