diff --git a/pages/order/MyOrder/index.vue b/pages/order/MyOrder/index.vue index 7e5d0be..b06992d 100644 --- a/pages/order/MyOrder/index.vue +++ b/pages/order/MyOrder/index.vue @@ -282,7 +282,7 @@ - + - + @@ -1059,6 +1059,9 @@ export default { isCustomGiftOrder(order = this.orderInfo) { return this.getOrderScenarioCode(order) === 24 }, + isBlindBoxOrder(order = this.orderInfo) { + return Number(order && order.isGiftCardReceiveBlind) === 1 + }, isCollectiveOrder(order = this.orderInfo) { return this.isWholesalerOrder(order) || this.isCustomGiftOrder(order) }, @@ -1117,6 +1120,10 @@ export default { return [this.normalizeOrderDetailItem(customGiftInfo, true)] } const cartList = Array.isArray(order && order.cartInfo) ? order.cartInfo : [] + // 盲盒订单隐藏商品信息,固定展示一个盲盒礼包行(cartInfo 为空时也要展示) + if (this.isBlindBoxOrder(order)) { + return [this.normalizeOrderDetailItem(cartList[0] || {})] + } return cartList.map(item => this.normalizeOrderDetailItem(item)) }, getStatusImg(order) {