diff --git a/frontend/mobile-app/lib/features/kyc/presentation/pages/kyc_entry_page.dart b/frontend/mobile-app/lib/features/kyc/presentation/pages/kyc_entry_page.dart index c014c6ed..45694c09 100644 --- a/frontend/mobile-app/lib/features/kyc/presentation/pages/kyc_entry_page.dart +++ b/frontend/mobile-app/lib/features/kyc/presentation/pages/kyc_entry_page.dart @@ -136,6 +136,34 @@ class KycEntryPage extends ConsumerWidget { SizedBox(height: 24.h), + // 树服务 + Text( + '树服务', + style: TextStyle( + fontSize: 16.sp, + fontWeight: FontWeight.w600, + color: const Color(0xFF333333), + ), + ), + SizedBox(height: 12.h), + _buildActionCard( + context: context, + icon: Icons.swap_horiz, + title: '发起转让', + description: '向其他用户发起树转让', + onTap: () => context.push(RoutePaths.transferInitiate), + ), + SizedBox(height: 8.h), + _buildActionCard( + context: context, + icon: Icons.receipt_long_outlined, + title: '转让记录', + description: '查看树转让历史记录', + onTap: () => context.push(RoutePaths.transferList), + ), + + SizedBox(height: 24.h), + // 说明文字 _buildInfoCard(), ], 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 134a92a7..d0b8a64e 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 @@ -1366,16 +1366,6 @@ class _ProfilePageState extends ConsumerState { context.push(RoutePaths.prePlantingPosition); } - /// [2026-02-19] 进入转让发起页 - void _goToTransferInitiate() { - context.push(RoutePaths.transferInitiate); - } - - /// [2026-02-19] 进入转让记录页 - void _goToTransferList() { - context.push(RoutePaths.transferList); - } - /// 谷歌验证器 void _goToGoogleAuth() { context.push(RoutePaths.googleAuth); @@ -1567,8 +1557,6 @@ class _ProfilePageState extends ConsumerState { _buildPrePlantingButtons(), const SizedBox(height: 8), ], - // [2026-02-19] 纯新增:树转让按钮(发起转让 + 转让记录) - _buildTransferButtons(), const SizedBox(height: 16), // 主要内容卡片(懒加载:收益数据) VisibilityDetector( @@ -2140,91 +2128,6 @@ class _ProfilePageState extends ConsumerState { ); } - /// [2026-02-19] 构建树转让按钮行(发起转让 + 转让记录) - /// - /// 复用预种按钮的样式,使用绿色系配色区分 - Widget _buildTransferButtons() { - return Row( - children: [ - // 发起转让按钮 - Expanded( - child: GestureDetector( - onTap: _goToTransferInitiate, - child: Container( - height: 44, - decoration: BoxDecoration( - color: const Color(0xFF2E7D32).withValues(alpha: 0.15), - borderRadius: BorderRadius.circular(8), - border: Border.all( - color: const Color(0xFF2E7D32).withValues(alpha: 0.4), - width: 1, - ), - ), - child: const Row( - mainAxisAlignment: MainAxisAlignment.center, - children: [ - Icon( - Icons.swap_horiz, - color: Color(0xFF4CAF50), - size: 18, - ), - SizedBox(width: 6), - Text( - '发起转让', - style: TextStyle( - fontSize: 14, - fontFamily: 'Inter', - fontWeight: FontWeight.w600, - color: Color(0xFF4CAF50), - ), - ), - ], - ), - ), - ), - ), - const SizedBox(width: 8), - // 转让记录按钮 - Expanded( - child: GestureDetector( - onTap: _goToTransferList, - child: Container( - height: 44, - decoration: BoxDecoration( - color: const Color(0xFF1565C0).withValues(alpha: 0.1), - borderRadius: BorderRadius.circular(8), - border: Border.all( - color: const Color(0xFF1565C0).withValues(alpha: 0.25), - width: 1, - ), - ), - child: const Row( - mainAxisAlignment: MainAxisAlignment.center, - children: [ - Icon( - Icons.receipt_long_outlined, - color: Color(0xFF42A5F5), - size: 18, - ), - SizedBox(width: 6), - Text( - '转让记录', - style: TextStyle( - fontSize: 14, - fontFamily: 'Inter', - fontWeight: FontWeight.w600, - color: Color(0xFF42A5F5), - ), - ), - ], - ), - ), - ), - ), - ], - ); - } - /// 构建主要内容卡片 Widget _buildMainContentCard() { // Widget 结构始终保持,数据值根据状态显示 "0" 或实际值