From 75d4b43e5e189752cc116063ccb5d414cffe7244 Mon Sep 17 00:00:00 2001 From: linxi <957440651@qq.com> Date: Tue, 18 Aug 2026 18:22:45 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A5793=20=E3=80=90=E5=95=86=E5=9F=8E?= =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E3=80=91=E6=88=91=E7=9A=84=E8=AE=A2?= =?UTF-8?q?=E5=8D=95-=E9=9B=86=E9=87=87=E4=B8=AD=E5=BF=83=EF=BC=8C?= =?UTF-8?q?=E5=9C=A8=E9=87=87=E8=B4=AD=E6=89=B9=E5=8F=91=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E9=A1=B5=E7=82=B9=E5=87=BB=E5=95=86=E5=93=81?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E5=8D=A1=E7=89=87=EF=BC=8C=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E8=BF=9B=E5=85=A5=E6=89=B9=E5=8F=91=E5=95=86?= =?UTF-8?q?=E5=93=81=E8=AF=A6=E6=83=85=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/order/MyOrder/index.vue | 17 ++++++++++++++++- pagesOrder/order/OrderDetails/index.vue | 7 +++++++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/pages/order/MyOrder/index.vue b/pages/order/MyOrder/index.vue index db51940..3eac9b2 100644 --- a/pages/order/MyOrder/index.vue +++ b/pages/order/MyOrder/index.vue @@ -1802,11 +1802,26 @@ export default { } result.push({ ...item, - showMore: false + showMore: false, + // 盲盒订单确认收货后需展示真实商品,后端字段未随状态更新,按订单状态兜底修正 + isGiftCardReceiveBlind: this.resolveBlindBoxDisplayFlag(item) }) return result }, []) }, + // 盲盒订单在确认收货后(待评价 3 / 已完成 4)应展示真实商品信息; + // 后端 isGiftCardReceiveBlind 未随收货状态更新,这里依据订单状态兜底修正 + resolveBlindBoxDisplayFlag(order) { + const raw = order && order.isGiftCardReceiveBlind + if (Number(raw) !== 1) { + return raw + } + const statusType = Number(order && order._status && order._status._type) + if (statusType === 3 || statusType === 4) { + return 0 + } + return 1 + }, tabChange(item) { this.type = item.index const query = this.getPageQuery() diff --git a/pagesOrder/order/OrderDetails/index.vue b/pagesOrder/order/OrderDetails/index.vue index b3812ee..4e922fb 100644 --- a/pagesOrder/order/OrderDetails/index.vue +++ b/pagesOrder/order/OrderDetails/index.vue @@ -873,6 +873,8 @@ export default { goGoodsCon(item, isGiftCardReceiveBlind, isDrawOrder, scenarioCode) { if(isGiftCardReceiveBlind) return if(isDrawOrder) return + // 采购批发订单(集采中心)商品卡片不跳转批发商品详情页 + if (Number(scenarioCode) === 22) return if (Number(scenarioCode) === 24) return const activityId = Number( item.drawActivityId || @@ -1375,6 +1377,11 @@ export default { orderDetail(id).then(res => { this.orderInfo = res.data this.orderInfo._status._type = parseInt(this.orderInfo._status._type) + // 盲盒订单确认收货后(待评价 3 / 已完成 4)展示真实商品信息, + // 后端 isGiftCardReceiveBlind 未随收货状态更新,按订单状态兜底修正 + if (Number(this.orderInfo.isGiftCardReceiveBlind) === 1 && [3, 4].includes(this.orderInfo._status._type)) { + this.orderInfo.isGiftCardReceiveBlind = 0 + } this.getOrderStatus() if (this.isWholesalerOrder(this.orderInfo)) { this.orderTypeName = "采购批发订单"