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