From 11ed3ab0ae8e0a7d8a80eef9efb20cd584bae216 Mon Sep 17 00:00:00 2001 From: Daisy <> Date: Mon, 29 Apr 2024 15:36:11 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E6=98=AF=E5=90=A6=E4=B8=BAVI?= =?UTF-8?q?P=E6=A0=87=E8=AF=86=E5=A2=9E=E5=8A=A0=E5=AF=B9=E5=BA=94?= =?UTF-8?q?=E6=9D=83=E9=99=90=E8=B7=B3=E8=BD=AC=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lib/mine/mine/starLockMine_page.dart | 71 +++++++++++-------- 1 file changed, 42 insertions(+), 29 deletions(-) diff --git a/star_lock/lib/mine/mine/starLockMine_page.dart b/star_lock/lib/mine/mine/starLockMine_page.dart index 72277052..e285fa4a 100644 --- a/star_lock/lib/mine/mine/starLockMine_page.dart +++ b/star_lock/lib/mine/mine/starLockMine_page.dart @@ -87,35 +87,48 @@ class StarLockMinePageState extends State with BaseWidget { SizedBox( height: 20.h, ), - Row( - mainAxisAlignment: MainAxisAlignment.center, - children: [ - Obx(() => Text( - state.userNickName.value.isNotEmpty - ? state.userNickName.value - : (state.userMobile.value.isNotEmpty - ? state.userMobile.value - : state.userEmail.value), - style: TextStyle( - fontSize: 22.sp, - color: Colors.white, - ))), - SizedBox( - width: 5.w, - ), - Obx(() => !state.isVip.value - ? Image.asset( - 'images/mine/icon_mine_noPlus.png', - width: 20.w, - height: 20.w, - ) - : Image.asset( - 'images/mine/icon_mine_isPlus.png', - width: 20.w, - height: 20.w, - )), - ], - ) + Obx(() => GestureDetector( + onTap: () { + if (state.isVip.value == null || !state.isVip.value) { + Get.toNamed(Routers.advancedFeaturesWebPage); + } else { + Get.toNamed( + Routers.valueAddedServicesHighFunctionPage); + } + }, + child: Container( + color: Colors.transparent, + child: Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Text( + state.userNickName.value.isNotEmpty + ? state.userNickName.value + : (state.userMobile.value.isNotEmpty + ? state.userMobile.value + : state.userEmail.value), + style: TextStyle( + fontSize: 22.sp, + color: Colors.white, + )), + SizedBox( + width: 5.w, + ), + !state.isVip.value + ? Image.asset( + 'images/mine/icon_mine_noPlus.png', + width: 20.w, + height: 20.w, + ) + : Image.asset( + 'images/mine/icon_mine_isPlus.png', + width: 20.w, + height: 20.w, + ), + ], + ), + ), + )) ], ), ),