From b9f36176ed17e5d348d4430847bbc2f9e0aa2c8a Mon Sep 17 00:00:00 2001 From: hailin Date: Wed, 11 Feb 2026 18:43:37 -0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20wallet=5Fcoupons=5F?= =?UTF-8?q?page=20=E7=BC=BA=E5=B0=91=20CouponStatus=20=E5=AF=BC=E5=85=A5?= =?UTF-8?q?=E5=92=8C=E9=94=99=E8=AF=AF=E5=BC=95=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加 coupon_card.dart 导入以获取 CouponStatus 枚举 - AppTypography.display → AppTypography.displayLarge - AppColors.couponFood → AppColors.couponDining Co-Authored-By: Claude Opus 4.6 --- .../lib/features/coupons/presentation/pages/home_page.dart | 2 +- .../coupons/presentation/pages/wallet_coupons_page.dart | 7 ++++--- 2 files changed, 5 insertions(+), 4 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 2a48e27..61878f2 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 @@ -258,7 +258,7 @@ class HomePage extends StatelessWidget { ('即将到期', Icons.timer_rounded, AppColors.warning), ('比价', Icons.compare_arrows_rounded, AppColors.couponShopping), ('转让市场', Icons.swap_horiz_rounded, AppColors.info), - ('热门交易', Icons.local_fire_department_rounded, AppColors.couponFood), + ('热门交易', Icons.local_fire_department_rounded, AppColors.couponDining), ('全部', Icons.grid_view_rounded, AppColors.textSecondary), ]; 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 205c927..eecf801 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 @@ -2,6 +2,7 @@ import 'package:flutter/material.dart'; import '../../../../app/theme/app_colors.dart'; import '../../../../app/theme/app_typography.dart'; import '../../../../app/theme/app_spacing.dart'; +import '../../../../shared/widgets/coupon_card.dart'; import '../../../../shared/widgets/status_tag.dart'; import '../../../../shared/widgets/empty_state.dart'; import '../widgets/receive_coupon_sheet.dart'; @@ -101,7 +102,7 @@ class _WalletCouponsPageState extends State child: Column( children: [ Text('4', - style: AppTypography.display.copyWith( + style: AppTypography.displayLarge.copyWith( color: Colors.white, fontWeight: FontWeight.w700, )), @@ -123,7 +124,7 @@ class _WalletCouponsPageState extends State child: Column( children: [ Text('\$235', - style: AppTypography.display.copyWith( + style: AppTypography.displayLarge.copyWith( color: Colors.white, fontWeight: FontWeight.w700, )), @@ -145,7 +146,7 @@ class _WalletCouponsPageState extends State child: Column( children: [ Text('\$38', - style: AppTypography.display.copyWith( + style: AppTypography.displayLarge.copyWith( color: Colors.white, fontWeight: FontWeight.w700, )),