...
|
...
|
@@ -630,7 +630,7 @@ const addToFav = (uid, skuList, hasPromotion, cartDelList) => { |
|
|
message: '请先登录!',
|
|
|
data: {
|
|
|
url: helpers.urlFormat('/signin.html', {
|
|
|
refer: helpers.urlFormat('/shopping/cart')
|
|
|
refer: helpers.urlFormat('/cart/cart')
|
|
|
})
|
|
|
}
|
|
|
};
|
...
|
...
|
@@ -920,7 +920,14 @@ const queryUserPromotionGift = (promotionId, uid, shoppingKey) => { |
|
|
let currentProduct = null; // 默认展示第一个商品
|
|
|
|
|
|
if (promotionGifts && promotionGifts.code === 200) {
|
|
|
promotionGifts.data = chelper.formatPriceGiftOne(promotionGifts.data);
|
|
|
// chelper.formatPriceGiftOne(promotionGifts.data);
|
|
|
let promotionList = chelper.formatPriceGifts(_.get(promotionGifts, 'data.arrays'));
|
|
|
|
|
|
if (promotionList && promotionList.length >= 0) {
|
|
|
promotionGifts.data = promotionList[0];
|
|
|
} else {
|
|
|
promotionGifts.data = {};
|
|
|
}
|
|
|
|
|
|
if (promotionGifts.data.goodsList && promotionGifts.data.goodsList.length) {
|
|
|
currentProduct = promotionGifts.data.goodsList[0];
|
...
|
...
|
|