From 8bbd56a86cceca57b56c6f2bc5cdc507fe6bb6e1 Mon Sep 17 00:00:00 2001 From: hailin Date: Wed, 11 Feb 2026 18:58:47 -0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=88=91=E7=9A=84=E9=92=B1?= =?UTF-8?q?=E5=8C=85=20=E2=86=92=20=E6=8C=81=E4=BB=93=EF=BC=8C=E7=BB=9F?= =?UTF-8?q?=E4=B8=80=E4=BA=A4=E6=98=93=E6=89=80=E8=AF=AD=E5=A2=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 首页卡片: "我的钱包" → "持仓" - 完整页面标题: "我的钱包" → "我的持仓" - 图标: account_balance_wallet → inventory_2 (仓位/库存) - 更新注释和 main.dart 描述 Co-Authored-By: Claude Opus 4.6 --- .../coupons/presentation/pages/home_page.dart | 12 ++++++------ .../presentation/pages/wallet_coupons_page.dart | 4 ++-- frontend/genex-mobile/lib/main.dart | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/frontend/genex-mobile/lib/features/coupons/presentation/pages/home_page.dart b/frontend/genex-mobile/lib/features/coupons/presentation/pages/home_page.dart index 61878f2..fc02649 100644 --- a/frontend/genex-mobile/lib/features/coupons/presentation/pages/home_page.dart +++ b/frontend/genex-mobile/lib/features/coupons/presentation/pages/home_page.dart @@ -6,7 +6,7 @@ import '../../../../shared/widgets/coupon_card.dart'; import '../../../ai_agent/presentation/widgets/ai_fab.dart'; import '../widgets/receive_coupon_sheet.dart'; -/// 首页 - 轻量钱包卡 + 分类网格 + AI推荐 + 精选券 +/// 首页 - 轻量持仓卡 + 分类网格 + AI推荐 + 精选券 /// /// Tab导航:首页/交易/消息/我的 class HomePage extends StatelessWidget { @@ -36,7 +36,7 @@ class HomePage extends StatelessWidget { ], ), - // Lightweight Wallet Card (replaces heavy wallet) + // Lightweight Position Card (持仓) SliverToBoxAdapter(child: _buildWalletCard(context)), // Category Grid (8 items, 4x2) @@ -136,8 +136,8 @@ class HomePage extends StatelessWidget { } // ============================================================ - // Lightweight Wallet Card - // 点击非快捷入口区域打开完整钱包页面 + // Lightweight Position Card (持仓卡片) + // 点击非快捷入口区域打开完整持仓页面 // ============================================================ Widget _buildWalletCard(BuildContext context) { return GestureDetector( @@ -155,10 +155,10 @@ class HomePage extends StatelessWidget { // Top row: wallet info + receive button Row( children: [ - const Icon(Icons.account_balance_wallet_rounded, + const Icon(Icons.inventory_2_rounded, size: 20, color: Colors.white), const SizedBox(width: 8), - Text('我的钱包', + Text('持仓', style: AppTypography.labelMedium.copyWith(color: Colors.white)), const Spacer(), // Summary diff --git a/frontend/genex-mobile/lib/features/coupons/presentation/pages/wallet_coupons_page.dart b/frontend/genex-mobile/lib/features/coupons/presentation/pages/wallet_coupons_page.dart index eecf801..99091fc 100644 --- a/frontend/genex-mobile/lib/features/coupons/presentation/pages/wallet_coupons_page.dart +++ b/frontend/genex-mobile/lib/features/coupons/presentation/pages/wallet_coupons_page.dart @@ -7,7 +7,7 @@ import '../../../../shared/widgets/status_tag.dart'; import '../../../../shared/widgets/empty_state.dart'; import '../widgets/receive_coupon_sheet.dart'; -/// 完整钱包页面 - 融合"我的券"所有功能 +/// 完整持仓页面 - 融合"我的券"所有功能 /// /// 顶部汇总卡片 + 4-Tab筛选(全部/可使用/待核销/已过期) /// 券列表(品牌+面值+状态+到期+快捷操作) @@ -39,7 +39,7 @@ class _WalletCouponsPageState extends State Widget build(BuildContext context) { return Scaffold( appBar: AppBar( - title: const Text('我的钱包'), + title: const Text('我的持仓'), actions: [ // 接收券 IconButton( diff --git a/frontend/genex-mobile/lib/main.dart b/frontend/genex-mobile/lib/main.dart index 111e2af..3f79556 100644 --- a/frontend/genex-mobile/lib/main.dart +++ b/frontend/genex-mobile/lib/main.dart @@ -36,7 +36,7 @@ void main() { /// Genex Mobile - 券的生命周期管理平台 /// -/// 券钱包/交易所/消息/个人中心 +/// 持仓/交易所/消息/个人中心 /// 持有/接收/转赠/交易/核销数字券 class GenexConsumerApp extends StatelessWidget { const GenexConsumerApp({super.key});