From 2dba7633d83d3fbac1d66c6f73f39974c594b1ab Mon Sep 17 00:00:00 2001 From: hailin Date: Mon, 15 Dec 2025 04:54:28 -0800 Subject: [PATCH] =?UTF-8?q?fix(withdraw):=20=E5=B0=86=E7=A1=AE=E8=AE=A4?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E4=B8=AD=E7=9A=84=E6=8F=90=E6=AC=BE=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E6=8F=90=E5=8F=96?= 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 --- .../pages/withdraw_confirm_page.dart | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/frontend/mobile-app/lib/features/withdraw/presentation/pages/withdraw_confirm_page.dart b/frontend/mobile-app/lib/features/withdraw/presentation/pages/withdraw_confirm_page.dart index 845788d3..16537295 100644 --- a/frontend/mobile-app/lib/features/withdraw/presentation/pages/withdraw_confirm_page.dart +++ b/frontend/mobile-app/lib/features/withdraw/presentation/pages/withdraw_confirm_page.dart @@ -4,8 +4,8 @@ import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:go_router/go_router.dart'; import 'withdraw_usdt_page.dart'; -/// 提款确认页面 -/// 显示提款详情并进行谷歌验证器验证 +/// 提取确认页面 +/// 显示提取详情并进行谷歌验证器验证 class WithdrawConfirmPage extends ConsumerStatefulWidget { final WithdrawUsdtParams params; @@ -84,7 +84,7 @@ class _WithdrawConfirmPageState extends ConsumerState { return '${address.substring(0, 8)}...${address.substring(address.length - 8)}'; } - /// 提交提款 + /// 提交提取 Future _onSubmit() async { final code = _getCode(); @@ -99,13 +99,13 @@ class _WithdrawConfirmPageState extends ConsumerState { }); try { - debugPrint('[WithdrawConfirmPage] 开始提款...'); + debugPrint('[WithdrawConfirmPage] 开始提取...'); debugPrint('[WithdrawConfirmPage] 金额: ${widget.params.amount} USDT'); debugPrint('[WithdrawConfirmPage] 地址: ${widget.params.address}'); debugPrint('[WithdrawConfirmPage] 网络: ${_getNetworkName(widget.params.network)}'); debugPrint('[WithdrawConfirmPage] 验证码: $code'); - // TODO: 调用 API 提交提款请求 + // TODO: 调用 API 提交提取请求 // final walletService = ref.read(walletServiceProvider); // await walletService.withdrawUsdt( // amount: widget.params.amount, @@ -126,12 +126,12 @@ class _WithdrawConfirmPageState extends ConsumerState { _showSuccessDialog(); } } catch (e) { - debugPrint('[WithdrawConfirmPage] 提款失败: $e'); + debugPrint('[WithdrawConfirmPage] 提取失败: $e'); if (mounted) { setState(() { _isSubmitting = false; }); - _showErrorSnackBar('提款失败: ${e.toString()}'); + _showErrorSnackBar('提取失败: ${e.toString()}'); } } } @@ -163,7 +163,7 @@ class _WithdrawConfirmPageState extends ConsumerState { ), const SizedBox(height: 16), const Text( - '提款申请已提交', + '提取申请已提交', style: TextStyle( fontSize: 18, fontFamily: 'Inter', @@ -243,7 +243,7 @@ class _WithdrawConfirmPageState extends ConsumerState { child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ - // 提款详情卡片 + // 提取详情卡片 _buildDetailsCard(), const SizedBox(height: 24), @@ -288,7 +288,7 @@ class _WithdrawConfirmPageState extends ConsumerState { // 标题 const Expanded( child: Text( - '确认提款', + '确认提取', style: TextStyle( fontSize: 18, fontFamily: 'Inter', @@ -307,7 +307,7 @@ class _WithdrawConfirmPageState extends ConsumerState { ); } - /// 构建提款详情卡片 + /// 构建提取详情卡片 Widget _buildDetailsCard() { final fee = _calculateFee(); final actual = _calculateActualAmount(); @@ -327,7 +327,7 @@ class _WithdrawConfirmPageState extends ConsumerState { crossAxisAlignment: CrossAxisAlignment.start, children: [ const Text( - '提款详情', + '提取详情', style: TextStyle( fontSize: 18, fontFamily: 'Inter', @@ -336,11 +336,11 @@ class _WithdrawConfirmPageState extends ConsumerState { ), ), const SizedBox(height: 16), - _buildDetailRow('提款网络', _getNetworkName(widget.params.network)), + _buildDetailRow('提取网络', _getNetworkName(widget.params.network)), const SizedBox(height: 12), - _buildDetailRow('提款地址', _formatAddress(widget.params.address)), + _buildDetailRow('接收地址', _formatAddress(widget.params.address)), const SizedBox(height: 12), - _buildDetailRow('提款金额', '${widget.params.amount.toStringAsFixed(2)} 积分'), + _buildDetailRow('提取数量', '${widget.params.amount.toStringAsFixed(2)} 积分'), const SizedBox(height: 12), _buildDetailRow('手续费', '${fee.toStringAsFixed(2)} 积分'), const Divider(color: Color(0x33D4AF37), height: 24), @@ -536,7 +536,7 @@ class _WithdrawConfirmPageState extends ConsumerState { ), ) : const Text( - '确认提款', + '确认提取', style: TextStyle( fontSize: 16, fontFamily: 'Inter',