...
|
...
|
@@ -293,17 +293,15 @@ module.exports = class extends global.yoho.BaseModel { |
|
|
|
|
|
let perOrder = this._getOrderStatus(value);
|
|
|
|
|
|
/* 是否是虚拟商品 */
|
|
|
let isTickets = this.order.virtual_type && parseInt(this.order.virtual_type, 10) === 3;
|
|
|
|
|
|
Object.assign(perOrder, {
|
|
|
orderNum: value.order_code,
|
|
|
orderStatus: value.status_str,
|
|
|
sumCost: value.amount,
|
|
|
goods: this._formatOrderGoods(value.order_goods, count, false, isTickets),
|
|
|
goods: this._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
|
|
|
});
|
|
|
|
...
|
...
|
|