fix(douyu): 确认绑定后仅展示客服处理状态

This commit is contained in:
yml
2026-11-18 11:00:28 +08:00
parent deca06a673
commit 01c5c45e37
@@ -32,7 +32,7 @@ const STATUS_LABELS: Record<string, string> = {
qr_pending: '等待扫码绑定', qr_pending: '等待扫码绑定',
role_ready: '请确认游戏角色', role_ready: '请确认游戏角色',
bound: '角色已绑定', bound: '角色已绑定',
waiting_operator: '等待运营处理', waiting_operator: '等待客服处理',
processing: '正在兑换', processing: '正在兑换',
completed: '领取完成', completed: '领取完成',
failed: '处理失败', failed: '处理失败',
@@ -181,13 +181,14 @@ export default function DouyuFulfillmentPage() {
live?.qrUrl && (live.bindReadyForConfirm || live.bindConfirmed), live?.qrUrl && (live.bindReadyForConfirm || live.bindConfirmed),
) )
const showBindingQr = Boolean(live?.qrUrl && (!canRevealBindingQr || bindingQrExpanded)) const showBindingQr = Boolean(live?.qrUrl && (!canRevealBindingQr || bindingQrExpanded))
const bindingDescription = const waitingForSupport = Boolean(
live?.message || task && (live?.bindConfirmed || task.status === 'waiting_operator' || task.status === 'bound'),
(live?.bindReadyForConfirm )
const bindingDescription = live?.bindConfirmed
? '角色绑定已完成,等待客服处理。'
: live?.bindReadyForConfirm
? '已识别游戏角色,请核对并确认绑定。' ? '已识别游戏角色,请核对并确认绑定。'
: live?.bindConfirmed : live?.message || '请使用微信扫描下方二维码,按提示选择和平精英角色。二维码仅用于本次订单。'
? '角色绑定已完成,等待运营处理。'
: '请使用微信扫描下方二维码,按提示选择和平精英角色。二维码仅用于本次订单。')
async function submitProfile() { async function submitProfile() {
if (!roleName.trim()) { if (!roleName.trim()) {
@@ -228,7 +229,7 @@ export default function DouyuFulfillmentPage() {
try { try {
const response = await confirmDouyuBinding(orderNo) const response = await confirmDouyuBinding(orderNo)
applyData(response.data) applyData(response.data)
message.success('角色绑定已确认,等待运营处理') message.success('角色绑定已确认,等待客服处理')
} catch (error) { } catch (error) {
message.error(error instanceof Error ? error.message : '确认角色绑定失败') message.error(error instanceof Error ? error.message : '确认角色绑定失败')
} finally { } finally {
@@ -344,6 +345,10 @@ export default function DouyuFulfillmentPage() {
</Button> </Button>
</div> </div>
</section> </section>
) : waitingForSupport ? (
<section className="customer-binding-stage">
<Alert type="success" showIcon message="等待客服处理" />
</section>
) : ( ) : (
<section className="customer-binding-stage"> <section className="customer-binding-stage">
<Alert <Alert