用户是否为VIP标识增加对应权限跳转页面
This commit is contained in:
parent
4e6d87daa9
commit
11ed3ab0ae
@ -87,35 +87,48 @@ class StarLockMinePageState extends State<StarLockMinePage> 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,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
))
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user