Browse Source

回鄉錢包,UI修改

dart3_last
哈哈哈 2 years ago
parent
commit
262b6425a6
  1. 4
      lib/mine/mine_wallet_page.dart

4
lib/mine/mine_wallet_page.dart

@ -370,7 +370,7 @@ class _MineWalletPage extends State<MineWalletPage> {
} }
List<String> calculateBalance(UserBill userBill, int index) { List<String> calculateBalance(UserBill userBill, int index) {
double tbalance = double.tryParse(userBill.balance ?? "0");/// double tbalance = double.tryParse(userBill.number ?? "0");///
String surplusGreenMoney = userBill.surplusGreenMoney; String surplusGreenMoney = userBill.surplusGreenMoney;
String surplusActivityMoney = userBill.surplusActivityMoney; String surplusActivityMoney = userBill.surplusActivityMoney;
double surplusMoney = double.tryParse(surplusGreenMoney ?? "0"); double surplusMoney = double.tryParse(surplusGreenMoney ?? "0");
@ -402,7 +402,7 @@ class _MineWalletPage extends State<MineWalletPage> {
"${userBill.pm == 0 ? '-' : '+'}$activity" "${userBill.pm == 0 ? '-' : '+'}$activity"
]; ];
} }
if (money > 0) { if (money > 0 && (balance - money) > 0) {
return [ return [
S.of(context).yue, S.of(context).yue,
"${userBill.pm == 0 ? '-' : '+'}${(balance - money)}" "${userBill.pm == 0 ? '-' : '+'}${(balance - money)}"

Loading…
Cancel
Save