Authored by 郝肖肖

'价格均摊-划线价格处理'

... ... @@ -144,8 +144,8 @@ const formatCartGoods = (cartGoods, isAdvanceCart, inValid, isOffShelves, analys
isAdvance: isAdvanceCart
};
// 如果是学生或者vip,取优惠价,否则取销售价(sales_price)
if (goods.isVipPrice || goods.isStuPrice) {
// 划线的价格
if (it.last_vip_price < it.sales_price) {
goods.productPrice = transPrice(it.last_vip_price);
goods.linePrice = transPrice(it.sales_price); // 划线的价格
}
... ...
... ... @@ -95,10 +95,10 @@ const handlePaymentInfo = (d, address) => {
g.isVipPrice = g.last_vip_price < g.sales_price && g.discount_tag === 'V';
g.isStuPrice = g.last_vip_price < g.sales_price && g.discount_tag === 'S';
// 如果是学生或者vip,取优惠价,否则取销售价(sales_price)
if (g.isVipPrice || g.isStuPrice) {
// 划线的价格
if (g.last_vip_price < g.sales_price) {
g.productPrice = g.last_vip_price;
g.linePrice = g.sales_price; // 划线的价格
g.linePrice = g.sales_price;
}
// 赠品、加价购
... ...
... ... @@ -375,8 +375,8 @@ const getOrders = (uid, page, limit, type, isPage)=> {
newGood.isVipPrice = good.real_pay_price < good.sales_price && good.discount_tag === 'V';
newGood.isStuPrice = good.real_pay_price < good.sales_price && good.discount_tag === 'S';
// 如果是学生或者vip,取优惠价,否则取销售价(sales_price)
if (newGood.isVipPrice || newGood.isStuPrice) {
// 划线的价格
if (good.real_pay_price < good.sales_price) {
newGood.price = good.real_pay_price;// 显示分摊价
newGood.linePrice = good.sales_price; // 划线的价格
}
... ... @@ -790,8 +790,8 @@ const _getOrderDetail = co(function * (uid, orderId) {
[_getGoodsTag(good.attribute, good.goods_type)]: true
};
// 如果是学生或者vip,取优惠价,否则取销售价(sales_price)
if (newGood.isVipPrice || newGood.isStuPrice) {
// 划线的价格
if (good.real_pay_price < good.sales_price) {
newGood.price = good.real_pay_price;// 显示分摊价
newGood.linePrice = good.sales_price; // 划线的价格
}
... ...