...
|
...
|
@@ -564,7 +564,6 @@ const formatCart = (cartDataRet, uid, shoppingKey, cartDelList) => { |
|
|
// 调用接口,获取购物车数据
|
|
|
// let cartDataRet = yield cartApi.cartData(uid, shoppingKey);
|
|
|
let cartData = cartDataRet && cartDataRet.data;
|
|
|
let advCartData = _.get(cartData, 'advance_cart_data');
|
|
|
let ordCartData = _.get(cartData, 'ordinary_cart_data');
|
|
|
|
|
|
// 移除的商品列表
|
...
|
...
|
@@ -582,20 +581,23 @@ const formatCart = (cartDataRet, uid, shoppingKey, cartDelList) => { |
|
|
// 预售购物车,普通购物车 凑单链接
|
|
|
result.moreGoodsLink = '//list.yohobuy.com/new';
|
|
|
|
|
|
result.advanceCart = {
|
|
|
// 未参加活动的商品
|
|
|
// goodsList: chelper.formatCartGoods(_.get(advCartData, 'goods_list'), true, false, false, analysisData),
|
|
|
pools: formatPromotionPools(_.get(advCartData, 'goods_pool_list'), null, true, analysisData),
|
|
|
offShelves: formatOffShelves(_.get(advCartData, 'off_shelves_goods_list'), true, analysisData),
|
|
|
soldOuts: formatSoldOuts(_.get(advCartData, 'sold_out_goods_list'), true, analysisData),
|
|
|
promotionInfos: formatPromotionInfos(_.get(advCartData, 'promotion_info')),
|
|
|
stat: formatShoppingCartData(_.get(advCartData, 'shopping_cart_data')),
|
|
|
isShippingCostFree: _.get(advCartData, 'shipping_cost_prompt.is_shipping_cost_free', '') === 'Y',
|
|
|
tips: _.get(advCartData, 'shipping_cost_prompt.shipping_cost_tips', ''),
|
|
|
ensureUrl: helpers.urlFormat('/cart/ensure', {
|
|
|
type: 2
|
|
|
})
|
|
|
};
|
|
|
// 6.7.5 web端下架预售购物车功能
|
|
|
result.advanceCart = {};
|
|
|
// let advCartData = _.get(cartData, 'advance_cart_data');
|
|
|
// result.advanceCart = {
|
|
|
// // 未参加活动的商品
|
|
|
// // goodsList: chelper.formatCartGoods(_.get(advCartData, 'goods_list'), true, false, false, analysisData),
|
|
|
// pools: formatPromotionPools(_.get(advCartData, 'goods_pool_list'), null, true, analysisData),
|
|
|
// offShelves: formatOffShelves(_.get(advCartData, 'off_shelves_goods_list'), true, analysisData),
|
|
|
// soldOuts: formatSoldOuts(_.get(advCartData, 'sold_out_goods_list'), true, analysisData),
|
|
|
// promotionInfos: formatPromotionInfos(_.get(advCartData, 'promotion_info')),
|
|
|
// stat: formatShoppingCartData(_.get(advCartData, 'shopping_cart_data')),
|
|
|
// isShippingCostFree: _.get(advCartData, 'shipping_cost_prompt.is_shipping_cost_free', '') === 'Y',
|
|
|
// tips: _.get(advCartData, 'shipping_cost_prompt.shipping_cost_tips', ''),
|
|
|
// ensureUrl: helpers.urlFormat('/cart/ensure', {
|
|
|
// type: 2
|
|
|
// })
|
|
|
// };
|
|
|
|
|
|
// let giftsList = formatPriceGifts(_.get(ordCartData, 'gift_list'));
|
|
|
// let priceGifts = formatPriceGifts(_.get(ordCartData, 'price_gift'));
|
...
|
...
|
|