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 ada83349..7fc8624a 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 @@ -612,6 +612,7 @@ class _ProfilePageState extends ConsumerState { targetCount: 50000, // 省公司目标5万 monthlyEarnings: r.monthlyEarnings, isCurrentUser: r.isCurrentUser, + accountSequence: r.accountSequence, )).toList(); }); } @@ -645,6 +646,7 @@ class _ProfilePageState extends ConsumerState { targetCount: 10000, // 市公司目标1万 monthlyEarnings: r.monthlyEarnings, isCurrentUser: r.isCurrentUser, + accountSequence: r.accountSequence, )).toList(); }); } @@ -2668,18 +2670,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, + ); + }, ), ], ],