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',