...
|
...
|
@@ -286,17 +286,14 @@ const getOrders = (params) => { |
|
|
|
|
|
let perOrder = _getOrderStatus(value);
|
|
|
|
|
|
/* 是否是虚拟商品 */
|
|
|
let isTickets = order.virtual_type && parseInt(order.virtual_type, 10) === 3;
|
|
|
|
|
|
Object.assign(perOrder, {
|
|
|
orderNum: value.order_code,
|
|
|
orderStatus: value.status_str,
|
|
|
sumCost: value.amount,
|
|
|
goods: _formatOrderGoods(value.order_goods, count, false, isTickets),
|
|
|
goods: _formatOrderGoods(value.order_goods, count, false),
|
|
|
detailUrl: helpers.urlFormat('/home/orderdetail', {order_code: value.order_code}),
|
|
|
count: value.buy_total,
|
|
|
isVirtual: isTickets,
|
|
|
isVirtual: _.get(value, 'order_goods[0].goods_type'),
|
|
|
orderTitle: value.order_title
|
|
|
});
|
|
|
|
...
|
...
|
|