Showing
1 changed file
with
60 additions
and
60 deletions
@@ -445,41 +445,41 @@ const getFashionTopGoodsStatus = (uid, showStatus, isBeginSale) => { | @@ -445,41 +445,41 @@ const getFashionTopGoodsStatus = (uid, showStatus, isBeginSale) => { | ||
445 | // 显示获取限购码按钮 | 445 | // 显示获取限购码按钮 |
446 | switch (showStatus) { | 446 | switch (showStatus) { |
447 | case 1: // 开售前/后,立即分享获得限购码(用户未领取限购码) | 447 | case 1: // 开售前/后,立即分享获得限购码(用户未领取限购码) |
448 | - { | ||
449 | - if (isBeginSale) { | 448 | + { |
449 | + if (isBeginSale) { | ||
450 | + result.buyNow = true; | ||
451 | + result.dis = true; | ||
452 | + } else { | ||
453 | + result.openSoon = true; | ||
454 | + result.hasLimitedCode = false; | ||
455 | + } | ||
456 | + break; | ||
457 | + } | ||
458 | + case 2: // 开售后,限购码已抢光(用户未领取限购码) | ||
459 | + { | ||
450 | result.buyNow = true; | 460 | result.buyNow = true; |
451 | result.dis = true; | 461 | result.dis = true; |
452 | - } else { | ||
453 | - result.openSoon = true; | 462 | + result.limitedCodeSoldOut = true; |
463 | + result.getLimitedCode = false; | ||
454 | result.hasLimitedCode = false; | 464 | result.hasLimitedCode = false; |
465 | + break; | ||
455 | } | 466 | } |
456 | - break; | ||
457 | - } | ||
458 | - case 2: // 开售后,限购码已抢光(用户未领取限购码) | ||
459 | - { | ||
460 | - result.buyNow = true; | ||
461 | - result.dis = true; | ||
462 | - result.limitedCodeSoldOut = true; | ||
463 | - result.getLimitedCode = false; | ||
464 | - result.hasLimitedCode = false; | ||
465 | - break; | ||
466 | - } | ||
467 | case 3: // 开售后,商品已经售罄 | 467 | case 3: // 开售后,商品已经售罄 |
468 | - { | ||
469 | - result.soldOut = true; | ||
470 | - result.getLimitedCode = false; | ||
471 | - break; | ||
472 | - } | 468 | + { |
469 | + result.soldOut = true; | ||
470 | + result.getLimitedCode = false; | ||
471 | + break; | ||
472 | + } | ||
473 | case 4:// 开售后,立即购买(用户已领取限购码) | 473 | case 4:// 开售后,立即购买(用户已领取限购码) |
474 | - { | ||
475 | - result.buyNow = true; | ||
476 | - result.dis = false; | ||
477 | - result.hasLimitedCode = true; | ||
478 | - if (uid) { // 限购码失效 | ||
479 | - result.getLimitedCodeDis = true; | 474 | + { |
475 | + result.buyNow = true; | ||
476 | + result.dis = false; | ||
477 | + result.hasLimitedCode = true; | ||
478 | + if (uid) { // 限购码失效 | ||
479 | + result.getLimitedCodeDis = true; | ||
480 | + } | ||
481 | + break; | ||
480 | } | 482 | } |
481 | - break; | ||
482 | - } | ||
483 | case 5: // 开售前,限购码已被抢光(用户未领取限购码) | 483 | case 5: // 开售前,限购码已被抢光(用户未领取限购码) |
484 | result.openSoon = true; | 484 | result.openSoon = true; |
485 | result.hasLimitedCode = true; | 485 | result.hasLimitedCode = true; |
@@ -748,19 +748,19 @@ const detailDataPkg = (origin, uid, vipLevel) => { | @@ -748,19 +748,19 @@ const detailDataPkg = (origin, uid, vipLevel) => { | ||
748 | if (domainBrand.type && domainBrand.shopId) { | 748 | if (domainBrand.type && domainBrand.shopId) { |
749 | switch (parseInt(domainBrand.type)) { | 749 | switch (parseInt(domainBrand.type)) { |
750 | case 1: | 750 | case 1: |
751 | - { | 751 | + { |
752 | // 多品店不显示 | 752 | // 多品店不显示 |
753 | - banner = []; | ||
754 | - break; | ||
755 | - } | 753 | + banner = []; |
754 | + break; | ||
755 | + } | ||
756 | case 2: | 756 | case 2: |
757 | - { | 757 | + { |
758 | // TODO:单品店显示新版的店铺banner,item.php 210 | 758 | // TODO:单品店显示新版的店铺banner,item.php 210 |
759 | - let basisData = shopAPI.basisTemplateAsync(domainBrand.shopId); | 759 | + let basisData = shopAPI.basisTemplateAsync(domainBrand.shopId); |
760 | 760 | ||
761 | - banner.bgImg = basisData.shopTopBanner.banner || banner.bgImg; | ||
762 | - break; | ||
763 | - } | 761 | + banner.bgImg = basisData.shopTopBanner.banner || banner.bgImg; |
762 | + break; | ||
763 | + } | ||
764 | 764 | ||
765 | } | 765 | } |
766 | } | 766 | } |
@@ -839,15 +839,15 @@ function getDescriptionDataBySizeInfoAsync(sizeInfo) { | @@ -839,15 +839,15 @@ function getDescriptionDataBySizeInfoAsync(sizeInfo) { | ||
839 | 839 | ||
840 | switch (sizeInfo.productDescBo.gender) { | 840 | switch (sizeInfo.productDescBo.gender) { |
841 | case 1: | 841 | case 1: |
842 | - { | ||
843 | - sex = '男款'; | ||
844 | - break; | ||
845 | - } | 842 | + { |
843 | + sex = '男款'; | ||
844 | + break; | ||
845 | + } | ||
846 | case 2: | 846 | case 2: |
847 | - { | ||
848 | - sex = '女款'; | ||
849 | - break; | ||
850 | - } | 847 | + { |
848 | + sex = '女款'; | ||
849 | + break; | ||
850 | + } | ||
851 | } | 851 | } |
852 | 852 | ||
853 | description.basic = []; | 853 | description.basic = []; |
@@ -1213,25 +1213,25 @@ function getSizeAttrByMaxSortId(maxSortId, sizeList) { | @@ -1213,25 +1213,25 @@ function getSizeAttrByMaxSortId(maxSortId, sizeList) { | ||
1213 | switch (maxSortId) { | 1213 | switch (maxSortId) { |
1214 | case 1: | 1214 | case 1: |
1215 | case 2: | 1215 | case 2: |
1216 | - { | ||
1217 | - attributeIds = [3, 4]; | ||
1218 | - break; | ||
1219 | - } | 1216 | + { |
1217 | + attributeIds = [3, 4]; | ||
1218 | + break; | ||
1219 | + } | ||
1220 | 1220 | ||
1221 | case 3: | 1221 | case 3: |
1222 | - { | ||
1223 | - attributeIds = [6, 10]; | ||
1224 | - break; | ||
1225 | - } | 1222 | + { |
1223 | + attributeIds = [6, 10]; | ||
1224 | + break; | ||
1225 | + } | ||
1226 | case 6: | 1226 | case 6: |
1227 | - { | ||
1228 | - attributeIds = [13]; | ||
1229 | - break; | ||
1230 | - } | 1227 | + { |
1228 | + attributeIds = [13]; | ||
1229 | + break; | ||
1230 | + } | ||
1231 | default: | 1231 | default: |
1232 | - { | ||
1233 | - attributeIds = []; | ||
1234 | - } | 1232 | + { |
1233 | + attributeIds = []; | ||
1234 | + } | ||
1235 | } | 1235 | } |
1236 | 1236 | ||
1237 | let sizeInfos = []; | 1237 | let sizeInfos = []; |
-
Please register or login to post a comment