Authored by zhangxiaoru

结算页赠品 加价购

... ... @@ -177,15 +177,11 @@ function tranformPayment(data, orderInfo, cartType, skuList, orderComputeData) {
// obj.isVipPrice = good.sales_price !== good.last_vip_price && good.discount_tag === 'V';
// obj.isStudebt = good.sales_price !== good.last_vip_price && good.discount_tag === 'S';
if (good.goods_type === 'gift' && good.is_advance === 'Y') {
if (good.goods_type === 'gift') {
obj.gift = true;
obj.price = good.sale_price;
obj.price = good.is_advance === 'Y' ? good.sale_price : good.last_price;
} else if (good.goods_type === 'price_gift') { // eslint-disable-line
obj.advanceBuy = true;
obj.price = good.sale_price;
}
if (good.goods_type === 'gift' || good.goods_type === 'price_gift') {
obj.price = good.last_price;
}
... ...