From 01c5c45e37febcbc996d58257985fc30e0249e8f Mon Sep 17 00:00:00 2001 From: yml Date: Tue, 17 Nov 2026 19:27:53 +0800 Subject: [PATCH] =?UTF-8?q?fix(douyu):=20=E7=A1=AE=E8=AE=A4=E7=BB=91?= =?UTF-8?q?=E5=AE=9A=E5=90=8E=E4=BB=85=E5=B1=95=E7=A4=BA=E5=AE=A2=E6=9C=8D?= =?UTF-8?q?=E5=A4=84=E7=90=86=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DouyuFulfillmentPage.tsx | 21 ++++++++++++------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/apps/frontend/src/pages/douyu-fulfillment/DouyuFulfillmentPage.tsx b/apps/frontend/src/pages/douyu-fulfillment/DouyuFulfillmentPage.tsx index 2341e036..f6d0a11b 100644 --- a/apps/frontend/src/pages/douyu-fulfillment/DouyuFulfillmentPage.tsx +++ b/apps/frontend/src/pages/douyu-fulfillment/DouyuFulfillmentPage.tsx @@ -32,7 +32,7 @@ const STATUS_LABELS: Record = { qr_pending: '等待扫码绑定', role_ready: '请确认游戏角色', bound: '角色已绑定', - waiting_operator: '等待运营处理', + waiting_operator: '等待客服处理', processing: '正在兑换', completed: '领取完成', failed: '处理失败', @@ -181,13 +181,14 @@ export default function DouyuFulfillmentPage() { live?.qrUrl && (live.bindReadyForConfirm || live.bindConfirmed), ) const showBindingQr = Boolean(live?.qrUrl && (!canRevealBindingQr || bindingQrExpanded)) - const bindingDescription = - live?.message || - (live?.bindReadyForConfirm + const waitingForSupport = Boolean( + task && (live?.bindConfirmed || task.status === 'waiting_operator' || task.status === 'bound'), + ) + const bindingDescription = live?.bindConfirmed + ? '角色绑定已完成,等待客服处理。' + : live?.bindReadyForConfirm ? '已识别游戏角色,请核对并确认绑定。' - : live?.bindConfirmed - ? '角色绑定已完成,等待运营处理。' - : '请使用微信扫描下方二维码,按提示选择和平精英角色。二维码仅用于本次订单。') + : live?.message || '请使用微信扫描下方二维码,按提示选择和平精英角色。二维码仅用于本次订单。' async function submitProfile() { if (!roleName.trim()) { @@ -228,7 +229,7 @@ export default function DouyuFulfillmentPage() { try { const response = await confirmDouyuBinding(orderNo) applyData(response.data) - message.success('角色绑定已确认,等待运营处理') + message.success('角色绑定已确认,等待客服处理') } catch (error) { message.error(error instanceof Error ? error.message : '确认角色绑定失败') } finally { @@ -344,6 +345,10 @@ export default function DouyuFulfillmentPage() { + ) : waitingForSupport ? ( +
+ +
) : (