|
|
@ -43,7 +43,9 @@ class _IntegralPage extends State<IntegralPage> { |
|
|
|
token: value.getString("token"), |
|
|
|
token: value.getString("token"), |
|
|
|
showLoading: false); |
|
|
|
showLoading: false); |
|
|
|
userinfo = UserInfo.fromJson(jsonDecode(value.getString("user"))); |
|
|
|
userinfo = UserInfo.fromJson(jsonDecode(value.getString("user"))); |
|
|
|
SmartDialog.showLoading(msg: S.of(context).zhengzaijiazai, animationDurationTemp: Duration(seconds: 1)); |
|
|
|
SmartDialog.showLoading( |
|
|
|
|
|
|
|
msg: S.of(context).zhengzaijiazai, |
|
|
|
|
|
|
|
animationDurationTemp: Duration(seconds: 1)); |
|
|
|
querySignInfo(); |
|
|
|
querySignInfo(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
@ -81,6 +83,7 @@ class _IntegralPage extends State<IntegralPage> { |
|
|
|
title: S.of(context).jifenxiangqing, |
|
|
|
title: S.of(context).jifenxiangqing, |
|
|
|
titleColor: Colors.white, |
|
|
|
titleColor: Colors.white, |
|
|
|
titleSize: 16.sp, |
|
|
|
titleSize: 16.sp, |
|
|
|
|
|
|
|
brightness: Brightness.dark, |
|
|
|
action: Container( |
|
|
|
action: Container( |
|
|
|
alignment: Alignment.center, |
|
|
|
alignment: Alignment.center, |
|
|
|
margin: EdgeInsets.only(right: 16.w), |
|
|
|
margin: EdgeInsets.only(right: 16.w), |
|
|
@ -292,7 +295,7 @@ class _IntegralPage extends State<IntegralPage> { |
|
|
|
fontSize: 14.sp, |
|
|
|
fontSize: 14.sp, |
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
padding: EdgeInsets.fromLTRB(12.w, 4.h, 12.w, 4.h), |
|
|
|
padding: EdgeInsets.fromLTRB(12.w, 4.h, 12.w, 4.h), |
|
|
|
) |
|
|
|
), |
|
|
|
], |
|
|
|
], |
|
|
|
), |
|
|
|
), |
|
|
|
); |
|
|
|
); |
|
|
@ -304,7 +307,7 @@ class _IntegralPage extends State<IntegralPage> { |
|
|
|
padding: EdgeInsets.all(6), |
|
|
|
padding: EdgeInsets.all(6), |
|
|
|
decoration: BoxDecoration( |
|
|
|
decoration: BoxDecoration( |
|
|
|
color: Color(0xFFF0F0F2), |
|
|
|
color: Color(0xFFF0F0F2), |
|
|
|
borderRadius: BorderRadius.all(Radius.circular(4)), |
|
|
|
borderRadius: BorderRadius.circular(4), |
|
|
|
), |
|
|
|
), |
|
|
|
child: Row( |
|
|
|
child: Row( |
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween, |
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween, |
|
|
@ -320,7 +323,8 @@ class _IntegralPage extends State<IntegralPage> { |
|
|
|
style: TextStyle( |
|
|
|
style: TextStyle( |
|
|
|
color: Color(0xFF353535), |
|
|
|
color: Color(0xFF353535), |
|
|
|
fontSize: 14.sp, |
|
|
|
fontSize: 14.sp, |
|
|
|
fontWeight: FontWeight.w500,), |
|
|
|
fontWeight: FontWeight.w500, |
|
|
|
|
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
SizedBox( |
|
|
|
SizedBox( |
|
|
|
height: 10.h, |
|
|
|
height: 10.h, |
|
|
@ -440,7 +444,8 @@ class _IntegralPage extends State<IntegralPage> { |
|
|
|
style: TextStyle( |
|
|
|
style: TextStyle( |
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
fontSize: 16.sp, |
|
|
|
fontSize: 16.sp, |
|
|
|
color: Color(0xFF353535),), |
|
|
|
color: Color(0xFF353535), |
|
|
|
|
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
SizedBox( |
|
|
|
SizedBox( |
|
|
|
height: 10.h, |
|
|
|
height: 10.h, |
|
|
@ -469,7 +474,8 @@ class _IntegralPage extends State<IntegralPage> { |
|
|
|
}, |
|
|
|
}, |
|
|
|
staggeredTileBuilder: (position) { |
|
|
|
staggeredTileBuilder: (position) { |
|
|
|
return StaggeredTile.count(position == 6 ? 2 : 1, 1.28); |
|
|
|
return StaggeredTile.count(position == 6 ? 2 : 1, 1.28); |
|
|
|
}), |
|
|
|
}, |
|
|
|
|
|
|
|
), |
|
|
|
InkWell( |
|
|
|
InkWell( |
|
|
|
onTap: signIn, |
|
|
|
onTap: signIn, |
|
|
|
child: Container( |
|
|
|
child: Container( |
|
|
@ -490,7 +496,7 @@ class _IntegralPage extends State<IntegralPage> { |
|
|
|
radius: 4, |
|
|
|
radius: 4, |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
) |
|
|
|
), |
|
|
|
], |
|
|
|
], |
|
|
|
), |
|
|
|
), |
|
|
|
); |
|
|
|
); |
|
|
@ -547,7 +553,8 @@ class _IntegralPage extends State<IntegralPage> { |
|
|
|
), |
|
|
|
), |
|
|
|
) |
|
|
|
) |
|
|
|
], |
|
|
|
], |
|
|
|
)), |
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
Container( |
|
|
|
Container( |
|
|
|
width: 2.w, |
|
|
|
width: 2.w, |
|
|
|
height: 32.h, |
|
|
|
height: 32.h, |
|
|
@ -558,17 +565,17 @@ class _IntegralPage extends State<IntegralPage> { |
|
|
|
child: InkWell( |
|
|
|
child: InkWell( |
|
|
|
onTap: () { |
|
|
|
onTap: () { |
|
|
|
SharedPreferences.getInstance().then((value) { |
|
|
|
SharedPreferences.getInstance().then((value) { |
|
|
|
if (value.getString("token") != null && value.getString("token") != "") { |
|
|
|
if (value.getString("token") != null && |
|
|
|
|
|
|
|
value.getString("token") != "") { |
|
|
|
Navigator.of(context) |
|
|
|
Navigator.of(context) |
|
|
|
.pushNamed('/router/mine_vip_level_page', arguments: { |
|
|
|
.pushNamed('/router/mine_vip_level_page', arguments: { |
|
|
|
"rankLevel": rankLevel, |
|
|
|
"rankLevel": rankLevel, |
|
|
|
"createTime": |
|
|
|
"createTime": |
|
|
|
(userinfo != null) ? "${userinfo.createTime}" : "", |
|
|
|
(userinfo != null) ? "${userinfo.createTime}" : "", |
|
|
|
"points": |
|
|
|
"points": (userinfo != null) |
|
|
|
(userinfo != null) ? int.tryParse(userinfo.points) : 0, |
|
|
|
? int.tryParse(userinfo.points) |
|
|
|
|
|
|
|
: 0, |
|
|
|
}); |
|
|
|
}); |
|
|
|
} else { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|