diff --git a/frontend/mining-app/lib/presentation/pages/profile/profile_page.dart b/frontend/mining-app/lib/presentation/pages/profile/profile_page.dart index d4c3e321..32da7171 100644 --- a/frontend/mining-app/lib/presentation/pages/profile/profile_page.dart +++ b/frontend/mining-app/lib/presentation/pages/profile/profile_page.dart @@ -175,48 +175,13 @@ class ProfilePage extends ConsumerWidget { ], ), const SizedBox(height: 8), - Row( - children: [ - Text( - 'ID: ${user.accountSequence ?? '--------'}', - style: const TextStyle( - fontSize: 14, - color: _grayText, - ), - ), - const SizedBox(width: 8), - GestureDetector( - onTap: () { - if (user.accountSequence != null) { - Clipboard.setData( - ClipboardData(text: user.accountSequence!), - ); - ScaffoldMessenger.of(context).showSnackBar( - const SnackBar( - content: Text('ID已复制'), - duration: Duration(seconds: 1), - ), - ); - } - }, - child: const Icon( - Icons.copy, - size: 16, - color: _grayText, - ), - ), - ], - ), - // 手机号 + // 手机号显示为ID if (user.phone != null) - Padding( - padding: const EdgeInsets.only(top: 4), - child: Text( - '手机: ${user.phone}', - style: const TextStyle( - fontSize: 12, - color: _lightGray, - ), + Text( + 'ID: ${user.phone}', + style: const TextStyle( + fontSize: 14, + color: _grayText, ), ), ],