From f7b226758309bcc9db2b3ea1bce0e6cfe83d7439 Mon Sep 17 00:00:00 2001 From: hailin Date: Fri, 9 Jan 2026 02:56:26 -0800 Subject: [PATCH] =?UTF-8?q?feat(mobile-app):=20=E4=B8=B4=E6=97=B6=E7=A6=81?= =?UTF-8?q?=E7=94=A8=E5=88=92=E8=BD=AC=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 划转功能暂时维护中,点击按钮会显示提示信息。 恢复时将 isTransferDisabled 改为 false 即可。 🤖 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, 16 insertions(+), 4 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 111ed8c5..aa9e3f2c 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,17 +562,29 @@ class _TradingPageState extends ConsumerState { /// 构建提取按钮 /// 当 USDT 余额为 0 时禁用 + /// [临时] 划转功能暂时禁用,待后续开放 Widget _buildWithdrawButton() { + // [临时] 划转功能暂时禁用 + const bool isTransferDisabled = true; // 余额为0时禁用 - final bool canWithdraw = !_isLoading && _usdtBalance > 0; + final bool canWithdraw = !_isLoading && _usdtBalance > 0 && !isTransferDisabled; return Padding( padding: const EdgeInsets.symmetric(horizontal: 16), child: GestureDetector( - onTap: canWithdraw + onTap: isTransferDisabled ? () { - context.push(RoutePaths.withdrawUsdt); + ScaffoldMessenger.of(context).showSnackBar( + const SnackBar( + content: Text('划转功能维护中,暂时无法使用'), + backgroundColor: Color(0xFFD4AF37), + ), + ); } - : null, + : canWithdraw + ? () { + context.push(RoutePaths.withdrawUsdt); + } + : null, child: Container( width: double.infinity, height: 56,