From f73e477041952d44e87b8d2d02e67190df8ad05b Mon Sep 17 00:00:00 2001 From: hailin Date: Wed, 24 Dec 2025 01:02:38 -0800 Subject: [PATCH] =?UTF-8?q?fix(mobile-app):=20=E5=BE=85=E9=A2=86=E5=8F=96?= =?UTF-8?q?=E5=A5=96=E5=8A=B1=E5=8D=A1=E7=89=87=E4=B9=9F=E5=8E=BB=E6=8E=89?= =?UTF-8?q?=E9=87=8D=E5=A4=8D=E7=9A=84=E6=9D=83=E7=9B=8A=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E5=89=8D=E7=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 与可结算卡片保持一致,只显示"来自用户xxx的认种"部分 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .../presentation/pages/profile_page.dart | 31 +++++++++++++------ 1 file changed, 21 insertions(+), 10 deletions(-) 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 7fc8624a..08bb1eb1 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 @@ -2205,18 +2205,29 @@ class _ProfilePageState extends ConsumerState { ), ), ), - // 第三行:备注信息 + // 第三行:来源信息(从 memo 中提取,去掉权益类型前缀) 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, + Builder( + builder: (context) { + // memo 格式如 "分享权益:来自用户D25122400000的认种" + // 去掉前缀,只显示 "来自用户xxx的认种" 部分 + String displayMemo = item.memo; + final colonIndex = displayMemo.indexOf(':'); + if (colonIndex != -1 && colonIndex < displayMemo.length - 1) { + displayMemo = displayMemo.substring(colonIndex + 1); + } + return Text( + displayMemo, + style: const TextStyle( + fontSize: 11, + fontFamily: 'Inter', + color: Color(0x995D4037), + ), + maxLines: 2, + overflow: TextOverflow.ellipsis, + ); + }, ), ], ],