|
@@ -293,17 +293,15 @@ module.exports = class extends global.yoho.BaseModel { |
|
@@ -293,17 +293,15 @@ module.exports = class extends global.yoho.BaseModel { |
293
|
|
293
|
|
294
|
let perOrder = this._getOrderStatus(value);
|
294
|
let perOrder = this._getOrderStatus(value);
|
295
|
|
295
|
|
296
|
- /* 是否是虚拟商品 */
|
|
|
297
|
- let isTickets = this.order.virtual_type && parseInt(this.order.virtual_type, 10) === 3;
|
|
|
298
|
|
296
|
|
299
|
Object.assign(perOrder, {
|
297
|
Object.assign(perOrder, {
|
300
|
orderNum: value.order_code,
|
298
|
orderNum: value.order_code,
|
301
|
orderStatus: value.status_str,
|
299
|
orderStatus: value.status_str,
|
302
|
sumCost: value.amount,
|
300
|
sumCost: value.amount,
|
303
|
- goods: this._formatOrderGoods(value.order_goods, count, false, isTickets),
|
301
|
+ goods: this._formatOrderGoods(value.order_goods, count, false),
|
304
|
detailUrl: helpers.urlFormat('/home/orderdetail', {order_code: value.order_code}),
|
302
|
detailUrl: helpers.urlFormat('/home/orderdetail', {order_code: value.order_code}),
|
305
|
count: value.buy_total,
|
303
|
count: value.buy_total,
|
306
|
- isVirtual: isTickets,
|
304
|
+ isVirtual: _.get(value, 'order_goods[0].goods_type'),
|
307
|
orderTitle: value.order_title
|
305
|
orderTitle: value.order_title
|
308
|
});
|
306
|
});
|
309
|
|
307
|
|