|
|
@@ -1,3 +1,5 @@
|
|
|
+import 'dart:io';
|
|
|
+
|
|
|
import 'package:flutter/material.dart';
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
|
@@ -24,8 +26,15 @@ class MyWalletState extends State<MyWallet> {
|
|
|
num _topHeight;
|
|
|
int currentPage = 1;
|
|
|
bool canNext = true;
|
|
|
+ String iosPayHide = '';
|
|
|
+ bool showPay = false;
|
|
|
|
|
|
Future<void> getWalletPage() async {
|
|
|
+ Result res3 = await HttpManager.get('systemVariable/get', data: {'name': "iosPayHide"});
|
|
|
+ setState(() {
|
|
|
+ iosPayHide = res3.data;
|
|
|
+ showPay = true;
|
|
|
+ });
|
|
|
Toast.show(context, '加载中', -1, 'loading');
|
|
|
canNext = false;
|
|
|
Result res = await HttpManager.get('memberTicket/page',
|
|
|
@@ -149,7 +158,7 @@ class MyWalletState extends State<MyWallet> {
|
|
|
//背景装饰
|
|
|
gradient: LinearGradient(
|
|
|
begin: Alignment.bottomRight,
|
|
|
- colors: [Color(0xFFFEA5A1),Color(0xFFE17874), Theme.of(context).primaryColor],
|
|
|
+ colors: [Color(0xFFFEA5A1), Color(0xFFE17874), Theme.of(context).primaryColor],
|
|
|
)),
|
|
|
child: Stack(
|
|
|
overflow: Overflow.visible,
|
|
|
@@ -181,7 +190,9 @@ class MyWalletState extends State<MyWallet> {
|
|
|
image: AssetImage('images/icon2.png'),
|
|
|
width: 20,
|
|
|
),
|
|
|
- Container(width: 5,),
|
|
|
+ Container(
|
|
|
+ width: 5,
|
|
|
+ ),
|
|
|
Text('我的参赛券',
|
|
|
style: TextStyle(
|
|
|
color: Color(0xFFD4504B),
|
|
|
@@ -193,15 +204,18 @@ class MyWalletState extends State<MyWallet> {
|
|
|
),
|
|
|
),
|
|
|
Positioned(
|
|
|
- bottom: -23,
|
|
|
- left: -(ScreenUtil().setWidth(345) - 216) / 2,
|
|
|
- child: Container(
|
|
|
- width: ScreenUtil().setWidth(345),
|
|
|
- height: 46,
|
|
|
- color: PRIMARY_COLOR,
|
|
|
- child: _newRouterTab(context),
|
|
|
- ),
|
|
|
- )
|
|
|
+ bottom: -23,
|
|
|
+ left: -(ScreenUtil().setWidth(345) - 216) / 2,
|
|
|
+ child: showPay
|
|
|
+ ? (iosPayHide == 'true'&&Platform.isIOS
|
|
|
+ ? Container()
|
|
|
+ : Container(
|
|
|
+ width: ScreenUtil().setWidth(345),
|
|
|
+ height: 46,
|
|
|
+ color: PRIMARY_COLOR,
|
|
|
+ child: _newRouterTab(context),
|
|
|
+ ))
|
|
|
+ : Container())
|
|
|
],
|
|
|
),
|
|
|
),
|
|
|
@@ -256,7 +270,7 @@ class MyWalletState extends State<MyWallet> {
|
|
|
style: TextStyle(color: Colors.white, fontSize: 16, fontWeight: FontWeight.w500),
|
|
|
)),
|
|
|
onTap: () {
|
|
|
- Navigator.push(context, CupertinoPageRoute(builder: (context) => ShoppingMall()));
|
|
|
+ Navigator.push(context, CupertinoPageRoute(builder: (context) => ShoppingMall()));
|
|
|
},
|
|
|
),
|
|
|
)
|