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, + ), + ], + ), + ), + )) ], ), ),