Authored by zhangxiaoru

结算页赠品 加价购

@@ -177,15 +177,11 @@ function tranformPayment(data, orderInfo, cartType, skuList, orderComputeData) { @@ -177,15 +177,11 @@ function tranformPayment(data, orderInfo, cartType, skuList, orderComputeData) {
177 // obj.isVipPrice = good.sales_price !== good.last_vip_price && good.discount_tag === 'V'; 177 // obj.isVipPrice = good.sales_price !== good.last_vip_price && good.discount_tag === 'V';
178 // obj.isStudebt = good.sales_price !== good.last_vip_price && good.discount_tag === 'S'; 178 // obj.isStudebt = good.sales_price !== good.last_vip_price && good.discount_tag === 'S';
179 179
180 - if (good.goods_type === 'gift' && good.is_advance === 'Y') { 180 + if (good.goods_type === 'gift') {
181 obj.gift = true; 181 obj.gift = true;
182 - obj.price = good.sale_price; 182 + obj.price = good.is_advance === 'Y' ? good.sale_price : good.last_price;
183 } else if (good.goods_type === 'price_gift') { // eslint-disable-line 183 } else if (good.goods_type === 'price_gift') { // eslint-disable-line
184 obj.advanceBuy = true; 184 obj.advanceBuy = true;
185 - obj.price = good.sale_price;  
186 - }  
187 -  
188 - if (good.goods_type === 'gift' || good.goods_type === 'price_gift') {  
189 obj.price = good.last_price; 185 obj.price = good.last_price;
190 } 186 }
191 187