...
|
...
|
@@ -119,7 +119,6 @@ const getCartDelList = (req, res, addsStr, delSkuId) => { |
|
|
* @return array 处理之后的购物车商品数据
|
|
|
*/
|
|
|
const formatCartGoods = (cartGoods, isAdvanceCart, inValid, isOffShelves, analysis) => {
|
|
|
|
|
|
return _.map(cartGoods, (it) => {
|
|
|
let goods = {
|
|
|
id: it.product_sku,
|
...
|
...
|
@@ -142,7 +141,8 @@ const formatCartGoods = (cartGoods, isAdvanceCart, inValid, isOffShelves, analys |
|
|
productSubtotal: transPrice(it.last_vip_price * it.buy_number),
|
|
|
promotionId: it.promotion_id || 0,
|
|
|
isLimitSkn: it.is_limit_skn === 'Y', // is_limit_skn=Y 不支持7天无理由退货
|
|
|
isAdvance: isAdvanceCart
|
|
|
isAdvance: isAdvanceCart,
|
|
|
saleTimeStr: !!it.sale_time_str
|
|
|
};
|
|
|
|
|
|
// 划线的价格
|
...
|
...
|
@@ -435,7 +435,6 @@ const formatPoolPromotionInfos = (infoList, selectedGiftsList) => { |
|
|
* 格式化子优惠池信息,返回商品列表,子优惠列表放在每个商品中
|
|
|
*/
|
|
|
const formatSubPromotionPools = (pools, selectedGiftsList, isAdvance, analysis) => {
|
|
|
|
|
|
let goodsListPool = _.map(pools, p => {
|
|
|
let pool = {
|
|
|
poolType: p.pool_type,
|
...
|
...
|
@@ -539,7 +538,6 @@ const formatSoldOutPools = (pools, selectedGiftsList, isAdvance, analysis) => { |
|
|
};
|
|
|
|
|
|
const formatCart = (cartDataRet, uid, shoppingKey, cartDelList) => {
|
|
|
|
|
|
let analysisData = {
|
|
|
ids: [],
|
|
|
criteo: []
|
...
|
...
|
|