|
|
|
@ -60,6 +60,7 @@ class _MineWalletPage extends State<MineWalletPage> {
|
|
|
|
|
_onRefresh() { |
|
|
|
|
current = 1; |
|
|
|
|
loadBillInfo(); |
|
|
|
|
queryUserBalance(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
queryUserBalance() async { |
|
|
|
@ -68,6 +69,9 @@ class _MineWalletPage extends State<MineWalletPage> {
|
|
|
|
|
if (baseData != null && baseData.isSuccess) { |
|
|
|
|
userInfo = baseData.data; |
|
|
|
|
mBalance = double.tryParse(userInfo.money); |
|
|
|
|
mgreenMoney = double.tryParse(userInfo.greenMoney); |
|
|
|
|
tBalance = double.tryParse(userInfo.balance ?? "0"); |
|
|
|
|
activityMoney = double.tryParse(userInfo.activityMoney); |
|
|
|
|
if (mounted) setState(() {}); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|