...
|
...
|
@@ -479,7 +479,7 @@ let getNewProductAsyncData = (data) => { |
|
|
|
|
|
let apiArray = [
|
|
|
_cartCount(data.uid, data.shoppingKey),
|
|
|
_detailDataPkgAsync(result, data.uid, data.vipLevel, data.ua), // eslint-disable-line
|
|
|
_detailDataPkgAsync(_.assign(result, {closeBuyNowButton: data.closeBuyNowButton}), data.uid, data.vipLevel, data.ua), // eslint-disable-line
|
|
|
_getFavorite(result.product_id, data.uid)
|
|
|
];
|
|
|
|
...
|
...
|
@@ -758,7 +758,7 @@ let _detailDataPkgAsync = (origin, uid, vipLevel, ua) => { |
|
|
return resolve(dest);
|
|
|
}
|
|
|
});
|
|
|
} else if (origin.buy_now === 1) { // 显示立即购买和加入购物车两个按钮
|
|
|
} else if (origin.buy_now === 1 && !origin.closeBuyNowButton) { // 显示立即购买和加入购物车两个按钮,closeBuyNowButton 关闭开关
|
|
|
Object.assign(dest.cartInfo, cartInfo, {
|
|
|
price: dest.goodsPrice.previousPrice ? dest.goodsPrice.previousPrice : '',
|
|
|
salePrice: dest.goodsPrice.currentPrice ? dest.goodsPrice.currentPrice : '',
|
...
|
...
|
|