用户是否为VIP标识增加对应权限跳转页面

This commit is contained in:
Daisy 2024-04-29 15:36:11 +08:00
parent 4e6d87daa9
commit 11ed3ab0ae

View File

@ -87,10 +87,21 @@ class StarLockMinePageState extends State<StarLockMinePage> with BaseWidget {
SizedBox( SizedBox(
height: 20.h, height: 20.h,
), ),
Row( 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, mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
Obx(() => Text( Text(
state.userNickName.value.isNotEmpty state.userNickName.value.isNotEmpty
? state.userNickName.value ? state.userNickName.value
: (state.userMobile.value.isNotEmpty : (state.userMobile.value.isNotEmpty
@ -99,11 +110,11 @@ class StarLockMinePageState extends State<StarLockMinePage> with BaseWidget {
style: TextStyle( style: TextStyle(
fontSize: 22.sp, fontSize: 22.sp,
color: Colors.white, color: Colors.white,
))), )),
SizedBox( SizedBox(
width: 5.w, width: 5.w,
), ),
Obx(() => !state.isVip.value !state.isVip.value
? Image.asset( ? Image.asset(
'images/mine/icon_mine_noPlus.png', 'images/mine/icon_mine_noPlus.png',
width: 20.w, width: 20.w,
@ -113,9 +124,11 @@ class StarLockMinePageState extends State<StarLockMinePage> with BaseWidget {
'images/mine/icon_mine_isPlus.png', 'images/mine/icon_mine_isPlus.png',
width: 20.w, width: 20.w,
height: 20.w, height: 20.w,
)), ),
], ],
) ),
),
))
], ],
), ),
), ),