From 183b2bef5926d537f7f745e040e42b906438ee52 Mon Sep 17 00:00:00 2001 From: hailin Date: Thu, 15 Jan 2026 03:39:18 -0800 Subject: [PATCH] style(mining-app): hide accountSequence and rename phone to ID on profile page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove accountSequence (ID: xxxx) display from profile page - Rename "手机:" label to "ID:" for phone number display Co-Authored-By: Claude Opus 4.5 --- .../pages/profile/profile_page.dart | 47 +++---------------- 1 file changed, 6 insertions(+), 41 deletions(-) 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, ), ), ],