Showing
1 changed file
with
3 additions
and
1 deletions
@@ -1525,6 +1525,7 @@ let getProductAsyncData = (data) => { | @@ -1525,6 +1525,7 @@ let getProductAsyncData = (data) => { | ||
1525 | return Promise.all([_getPromotionInfo(result.product_skn), _getFavorite(result.product_id, data.uid)]).then((res) => { | 1525 | return Promise.all([_getPromotionInfo(result.product_skn), _getFavorite(result.product_id, data.uid)]).then((res) => { |
1526 | result.promotionBoList = res[0]; | 1526 | result.promotionBoList = res[0]; |
1527 | var isFavorite = res[1]; | 1527 | var isFavorite = res[1]; |
1528 | + | ||
1528 | return _detailDataPkgAsync(result, data.uid, data.vipLevel, data.ua).then(pkg => { | 1529 | return _detailDataPkgAsync(result, data.uid, data.vipLevel, data.ua).then(pkg => { |
1529 | finalResult = pkg; | 1530 | finalResult = pkg; |
1530 | finalResult.isCollect = isFavorite; | 1531 | finalResult.isCollect = isFavorite; |
@@ -1599,7 +1600,7 @@ let _detailDataPkgAsync = (origin, uid, vipLevel, ua) => { | @@ -1599,7 +1600,7 @@ let _detailDataPkgAsync = (origin, uid, vipLevel, ua) => { | ||
1599 | 1600 | ||
1600 | if (origin.is_secKill) { | 1601 | if (origin.is_secKill) { |
1601 | dest.isDepositAdvance = origin.isDeposit_advance;// A定金预售字段 = origin.is_deposit_advance === 'Y'; // 是否定金预售 | 1602 | dest.isDepositAdvance = origin.isDeposit_advance;// A定金预售字段 = origin.is_deposit_advance === 'Y'; // 是否定金预售 |
1602 | - dest.isPresale = Boolean(origin.expect_arrival_time) | 1603 | + dest.isPresale = Boolean(origin.expect_arrival_time); |
1603 | } | 1604 | } |
1604 | 1605 | ||
1605 | // 商品返回 YOHO 币 | 1606 | // 商品返回 YOHO 币 |
@@ -1803,6 +1804,7 @@ let _detailDataPkgAsync = (origin, uid, vipLevel, ua) => { | @@ -1803,6 +1804,7 @@ let _detailDataPkgAsync = (origin, uid, vipLevel, ua) => { | ||
1803 | 1804 | ||
1804 | // 限购商品有关的展示状态 | 1805 | // 限购商品有关的展示状态 |
1805 | let showStatus = 1; | 1806 | let showStatus = 1; |
1807 | + | ||
1806 | origin.showStatus && (showStatus = parseInt(result.data.showStatus, 10)); | 1808 | origin.showStatus && (showStatus = parseInt(result.data.showStatus, 10)); |
1807 | 1809 | ||
1808 | // 处理限购商品有关的按钮状态 | 1810 | // 处理限购商品有关的按钮状态 |
-
Please register or login to post a comment