Authored by 郝肖肖

'订单分摊价转数字'

... ... @@ -145,7 +145,7 @@ const formatCartGoods = (cartGoods, isAdvanceCart, inValid, isOffShelves, analys
};
// 划线的价格
if (it.last_vip_price < it.sales_price) {
if (+it.last_vip_price < +it.sales_price) {
goods.productPrice = transPrice(it.last_vip_price);
goods.linePrice = transPrice(it.sales_price); // 划线的价格
}
... ...
... ... @@ -780,13 +780,13 @@ const getRecommendProduct = (channelNum, uid, udid, page) => {
img: it.default_images ? helpers.image(it.default_images, 190, 250) : '',
alt: it.product_name,
price: '¥' + chelper.transPrice(it.sales_price),
marketPrice: (it.market_price && it.market_price > it.sales_price) ?
marketPrice: (it.market_price && +it.market_price > +it.sales_price) ?
'¥' + chelper.transPrice(it.market_price) : ''
};
item.href = helpers.getUrlBySkc(it.product_skn);
if (it.sales_price !== it.market_price) {
if (+it.sales_price !== +it.market_price) {
it.marketPrice = chelper.transPrice(it.market_price);
}
return item;
... ...
... ... @@ -387,7 +387,7 @@ const getOrders = (uid, page, limit, type, isPage)=> {
newGood.isStuPrice = good.discount_tag === 'S';
// 划线的价格
if (good.real_pay_price < good.sales_price) {
if (+good.real_pay_price < +good.sales_price) {
newGood.price = transPrice(good.real_pay_price);// 显示分摊价
newGood.linePrice = transPrice(good.sales_price); // 划线的价格
}
... ... @@ -803,7 +803,7 @@ const _getOrderDetail = co(function * (uid, orderId) {
};
// 划线的价格
if (good.real_pay_price < good.sales_price) {
if (+good.real_pay_price < +good.sales_price) {
newGood.price = transPrice(good.real_pay_price);// 显示分摊价
newGood.linePrice = transPrice(good.sales_price); // 划线的价格
}
... ...