|
|
@@ -29,8 +29,17 @@ class UserPage extends StatefulWidget {
|
|
|
class _UserPageState extends State<UserPage> with WidgetsBindingObserver {
|
|
|
CustomerService customerService;
|
|
|
bool isManage = false;
|
|
|
+ String iosPayHide = '';
|
|
|
+ bool showPay = false;
|
|
|
|
|
|
Future<void> getUserInfo() async {
|
|
|
+ Result res3 = await HttpManager.get('systemVariable/get', data: {'name': "iosPayHide"});
|
|
|
+ print('iospayHiden:');
|
|
|
+ print(res3.data);
|
|
|
+ setState(() {
|
|
|
+ iosPayHide = res3.data;
|
|
|
+ showPay = true;
|
|
|
+ });
|
|
|
Result res = await HttpManager.get('userInfo/getUserInfo');
|
|
|
if (res.success) {
|
|
|
print(res.data);
|
|
|
@@ -154,18 +163,20 @@ class _UserPageState extends State<UserPage> with WidgetsBindingObserver {
|
|
|
// },
|
|
|
// ),
|
|
|
// ),
|
|
|
- Platform.isAndroid
|
|
|
- ? Container(
|
|
|
- width: 250,
|
|
|
- child: LinearButton(
|
|
|
- btntext: '充值参赛券',
|
|
|
- btnHeight: 38.0,
|
|
|
- textSize: 13.0,
|
|
|
- onTapHomeMenu: () {
|
|
|
- Navigator.push(context, CupertinoPageRoute(builder: (context) => ShoppingMall()));
|
|
|
- },
|
|
|
- ))
|
|
|
- : Container()
|
|
|
+ !showPay
|
|
|
+ ? Container()
|
|
|
+ : (Platform.isIOS && iosPayHide == 'true'
|
|
|
+ ? Container()
|
|
|
+ : Container(
|
|
|
+ width: 250,
|
|
|
+ child: LinearButton(
|
|
|
+ btntext: '充值参赛券',
|
|
|
+ btnHeight: 38.0,
|
|
|
+ textSize: 13.0,
|
|
|
+ onTapHomeMenu: () {
|
|
|
+ Navigator.push(context, CupertinoPageRoute(builder: (context) => ShoppingMall()));
|
|
|
+ },
|
|
|
+ )))
|
|
|
],
|
|
|
)
|
|
|
],
|