From 6fd986201957042fc766570aee1b3c65b8e1e497 Mon Sep 17 00:00:00 2001 From: JiaJun <2394389886@qq.com> Date: Fri, 10 Jul 2026 14:21:49 +0800 Subject: [PATCH] =?UTF-8?q?refactor(game):=20=E9=87=8D=E6=9E=84=E6=8F=90?= =?UTF-8?q?=E7=8E=B0=E5=8A=9F=E8=83=BD=E4=B8=AD=E7=9A=84=E9=92=BB=E7=9F=B3?= =?UTF-8?q?=E9=87=91=E9=A2=9D=E8=8C=83=E5=9B=B4=E8=AE=A1=E7=AE=97=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除硬编码的快速提现金额配置,改为动态计算钻石金额边界 - 添加新的辅助函数 getWithdrawDiamondBounds 和 getQuickWithdrawAmounts - 在桌面和移动端提现组件中调整钻石金额字段的位置 - 更新初始金额设置逻辑以使用新的钻石边界计算 - 优化快速金额选择卡片的ID生成方式,包含支付渠道和类型信息 - 添加对支付方法最小/最大金额限制的支持 --- .../components/desktop/desktop-withdraw.tsx | 112 +++++++------- .../components/mobile/mobile-withdraw.tsx | 106 ++++++------- src/hooks/use-withdraw-vm.ts | 139 ++++++++++++++---- 3 files changed, 219 insertions(+), 138 deletions(-) diff --git a/src/features/game/components/desktop/desktop-withdraw.tsx b/src/features/game/components/desktop/desktop-withdraw.tsx index 593a13a..00771ee 100644 --- a/src/features/game/components/desktop/desktop-withdraw.tsx +++ b/src/features/game/components/desktop/desktop-withdraw.tsx @@ -390,62 +390,6 @@ function DesktopWithdraw() { >