...
|
...
|
@@ -1525,6 +1525,7 @@ let getProductAsyncData = (data) => { |
|
|
return Promise.all([_getPromotionInfo(result.product_skn), _getFavorite(result.product_id, data.uid)]).then((res) => {
|
|
|
result.promotionBoList = res[0];
|
|
|
var isFavorite = res[1];
|
|
|
|
|
|
return _detailDataPkgAsync(result, data.uid, data.vipLevel, data.ua).then(pkg => {
|
|
|
finalResult = pkg;
|
|
|
finalResult.isCollect = isFavorite;
|
...
|
...
|
@@ -1599,7 +1600,7 @@ let _detailDataPkgAsync = (origin, uid, vipLevel, ua) => { |
|
|
|
|
|
if (origin.is_secKill) {
|
|
|
dest.isDepositAdvance = origin.isDeposit_advance;// A定金预售字段 = origin.is_deposit_advance === 'Y'; // 是否定金预售
|
|
|
dest.isPresale = Boolean(origin.expect_arrival_time)
|
|
|
dest.isPresale = Boolean(origin.expect_arrival_time);
|
|
|
}
|
|
|
|
|
|
// 商品返回 YOHO 币
|
...
|
...
|
@@ -1803,6 +1804,7 @@ let _detailDataPkgAsync = (origin, uid, vipLevel, ua) => { |
|
|
|
|
|
// 限购商品有关的展示状态
|
|
|
let showStatus = 1;
|
|
|
|
|
|
origin.showStatus && (showStatus = parseInt(result.data.showStatus, 10));
|
|
|
|
|
|
// 处理限购商品有关的按钮状态
|
...
|
...
|
|