diff --git a/frontend/mobile-app/lib/core/services/reward_service.dart b/frontend/mobile-app/lib/core/services/reward_service.dart index 8f7ea8ee..c66b30a2 100644 --- a/frontend/mobile-app/lib/core/services/reward_service.dart +++ b/frontend/mobile-app/lib/core/services/reward_service.dart @@ -72,6 +72,7 @@ class SettleableRewardItem { final DateTime createdAt; final DateTime? claimedAt; final String sourceOrderNo; + final String? sourceAccountSequence; // 触发奖励的用户账户序列号 final String memo; SettleableRewardItem({ @@ -82,6 +83,7 @@ class SettleableRewardItem { required this.createdAt, this.claimedAt, required this.sourceOrderNo, + this.sourceAccountSequence, required this.memo, }); @@ -94,6 +96,7 @@ class SettleableRewardItem { createdAt: DateTime.tryParse(json['createdAt'] ?? '') ?? DateTime.now(), claimedAt: json['claimedAt'] != null ? DateTime.tryParse(json['claimedAt']) : null, sourceOrderNo: json['sourceOrderNo'] ?? '', + sourceAccountSequence: json['sourceAccountSequence'], memo: json['memo'] ?? '', ); } diff --git a/frontend/mobile-app/lib/features/profile/presentation/pages/profile_page.dart b/frontend/mobile-app/lib/features/profile/presentation/pages/profile_page.dart index 0e94cdc2..ada83349 100644 --- a/frontend/mobile-app/lib/features/profile/presentation/pages/profile_page.dart +++ b/frontend/mobile-app/lib/features/profile/presentation/pages/profile_page.dart @@ -2431,7 +2431,7 @@ class _ProfilePageState extends ConsumerState { StackedCardsView( items: _settleableRewards, peekHeight: 28, - expandedCardHeight: 90, + expandedCardHeight: 110, enableSound: true, itemBuilder: (item, isSelected, index) => _buildStackedSettleableRewardCard(item, isSelected), ), @@ -2604,7 +2604,7 @@ class _ProfilePageState extends ConsumerState { final amountText = amountParts.isNotEmpty ? amountParts.join(' ') : '0 绿积分'; return Container( - height: isSelected ? 90 : 48, + height: isSelected ? 110 : 48, decoration: BoxDecoration( color: isSelected ? Colors.white : const Color(0xFFFFFDF8), borderRadius: BorderRadius.circular(8), @@ -2653,7 +2653,7 @@ class _ProfilePageState extends ConsumerState { ), ], ), - const SizedBox(height: 8), + const SizedBox(height: 6), // 第二行:金额信息 FittedBox( fit: BoxFit.scaleDown, @@ -2668,6 +2668,20 @@ class _ProfilePageState extends ConsumerState { ), ), ), + // 第三行:备注信息(显示来源) + if (item.memo.isNotEmpty) ...[ + const SizedBox(height: 4), + Text( + item.memo, + style: const TextStyle( + fontSize: 11, + fontFamily: 'Inter', + color: Color(0x995D4037), + ), + maxLines: 2, + overflow: TextOverflow.ellipsis, + ), + ], ], ), )