...
|
...
|
@@ -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; // 划线的价格
|
|
|
}
|
...
|
...
|
|