...
|
...
|
@@ -365,9 +365,8 @@ const getOrders = (uid, page, limit, type, isPage)=> { |
|
|
newOrder.goods = _.get(order, 'order_goods', []).map((good) => {
|
|
|
let newGood = {};
|
|
|
|
|
|
good.real_pay_price = Number(good.real_pay_price).toFixed(2);
|
|
|
good.sales_price = Number(good.sales_price).toFixed(2);
|
|
|
|
|
|
good.real_pay_price = good.real_pay_price && Number(good.real_pay_price).toFixed(2) || '';
|
|
|
good.sales_price = good.sales_price && Number(good.sales_price).toFixed(2) || '';
|
|
|
newGood.href = helpers.getUrlBySkc(good.product_id, good.goods_id, good.cn_alphabet);
|
|
|
newGood.thumb = helpers.image(good.goods_image, 100, 100);
|
|
|
newGood.name = good.product_name;
|
...
|
...
|
@@ -777,8 +776,8 @@ const _getOrderDetail = co(function * (uid, orderId) { |
|
|
// 商品信息
|
|
|
if (orderDetail.order_goods) {
|
|
|
detail.goods = _.get(orderDetail, 'order_goods', []).map((good) => {
|
|
|
good.real_pay_price = Number(good.real_pay_price).toFixed(2);
|
|
|
good.sales_price = Number(good.sales_price).toFixed(2);
|
|
|
good.real_pay_price = good.real_pay_price && Number(good.real_pay_price).toFixed(2) || '';
|
|
|
good.sales_price = good.sales_price && Number(good.sales_price).toFixed(2) || '';
|
|
|
|
|
|
let newGood = {
|
|
|
url: helpers.getUrlBySkc(good.product_id, good.goods_id, good.cn_alphabet),
|
...
|
...
|
|