From 57fc90b0308e7c61e806da9993174e2da07a90aa Mon Sep 17 00:00:00 2001 From: linxi <957440651@qq.com> Date: Mon, 17 Aug 2026 15:36:56 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A5759=20=E3=80=90=E7=A4=BC=E5=93=81?= =?UTF-8?q?=E9=9B=86=E9=87=87=E4=B8=AD=E5=BF=83=E5=B0=8F=E7=A8=8B=E5=BA=8F?= =?UTF-8?q?=E3=80=91=E6=88=91=E7=9A=84=E8=AE=A2=E5=8D=95-=E9=9B=86?= =?UTF-8?q?=E9=87=87=E4=B8=AD=E5=BF=83=EF=BC=8C=E9=A2=86=E5=8F=96=E9=87=87?= =?UTF-8?q?=E8=B4=AD=E6=89=B9=E5=8F=91=E7=A4=BC=E5=93=81=E7=9A=84=E7=9B=B2?= =?UTF-8?q?=E7=9B=92=EF=BC=8C=E8=AE=A2=E5=8D=95=E5=88=97=E8=A1=A8=E5=92=8C?= =?UTF-8?q?=E8=AE=A2=E5=8D=95=E8=AF=A6=E6=83=85=E9=A1=B5=E6=95=88=E6=9E=9C?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/order/MyOrder/index.vue | 2 +- pagesOrder/order/OrderDetails/index.vue | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) 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) {