From 96695575d5431aae998c599307e2c81060af8802 Mon Sep 17 00:00:00 2001 From: hailin Date: Fri, 9 Jan 2026 08:48:45 -0800 Subject: [PATCH] =?UTF-8?q?feat(mobile-app):=20=E5=90=AF=E7=94=A8=E5=85=91?= =?UTF-8?q?=E6=8D=A2=E9=A1=B5=E9=9D=A2=E7=9A=84=E5=88=92=E8=BD=AC=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除划转按钮的临时禁用标志,恢复正常功能。 用户点击划转按钮后将跳转到划转页面。 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .../presentation/pages/trading_page.dart | 20 ++++--------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/frontend/mobile-app/lib/features/trading/presentation/pages/trading_page.dart b/frontend/mobile-app/lib/features/trading/presentation/pages/trading_page.dart index aa9e3f2c..111ed8c5 100644 --- a/frontend/mobile-app/lib/features/trading/presentation/pages/trading_page.dart +++ b/frontend/mobile-app/lib/features/trading/presentation/pages/trading_page.dart @@ -562,29 +562,17 @@ class _TradingPageState extends ConsumerState { /// 构建提取按钮 /// 当 USDT 余额为 0 时禁用 - /// [临时] 划转功能暂时禁用,待后续开放 Widget _buildWithdrawButton() { - // [临时] 划转功能暂时禁用 - const bool isTransferDisabled = true; // 余额为0时禁用 - final bool canWithdraw = !_isLoading && _usdtBalance > 0 && !isTransferDisabled; + final bool canWithdraw = !_isLoading && _usdtBalance > 0; return Padding( padding: const EdgeInsets.symmetric(horizontal: 16), child: GestureDetector( - onTap: isTransferDisabled + onTap: canWithdraw ? () { - ScaffoldMessenger.of(context).showSnackBar( - const SnackBar( - content: Text('划转功能维护中,暂时无法使用'), - backgroundColor: Color(0xFFD4AF37), - ), - ); + context.push(RoutePaths.withdrawUsdt); } - : canWithdraw - ? () { - context.push(RoutePaths.withdrawUsdt); - } - : null, + : null, child: Container( width: double.infinity, height: 56,