|
|
|
@ -311,17 +311,18 @@ class _MineWalletPage extends State<MineWalletPage> {
|
|
|
|
|
Row( |
|
|
|
|
children: [ |
|
|
|
|
Expanded( |
|
|
|
|
flex: 7, |
|
|
|
|
child: Text( |
|
|
|
|
S.of(context).pingtaizongyue( |
|
|
|
|
userBill.balance, |
|
|
|
|
userBill.surplusActivityMoney, |
|
|
|
|
userBill.surplusGreenMoney), |
|
|
|
|
style: TextStyle( |
|
|
|
|
color: Color(0xFF727272), |
|
|
|
|
fontSize: 10.sp, |
|
|
|
|
), |
|
|
|
|
)), |
|
|
|
|
flex: 7, |
|
|
|
|
child: Text( |
|
|
|
|
S.of(context).pingtaizongyue( |
|
|
|
|
userBill.balance, |
|
|
|
|
userBill.surplusActivityMoney, |
|
|
|
|
userBill.surplusGreenMoney), |
|
|
|
|
style: TextStyle( |
|
|
|
|
color: Color(0xFF727272), |
|
|
|
|
fontSize: 10.sp, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
if (calculateBalance(userBill, 2).isNotEmpty) |
|
|
|
|
Expanded( |
|
|
|
|
flex: 4, |
|
|
|
@ -370,7 +371,9 @@ class _MineWalletPage extends State<MineWalletPage> {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
List<String> calculateBalance(UserBill userBill, int index) { |
|
|
|
|
double tbalance = double.tryParse(userBill.number ?? "0");/// 总余额 |
|
|
|
|
double tbalance = double.tryParse(userBill.number ?? "0"); |
|
|
|
|
|
|
|
|
|
/// 总余额 |
|
|
|
|
String surplusGreenMoney = userBill.surplusGreenMoney; |
|
|
|
|
String surplusActivityMoney = userBill.surplusActivityMoney; |
|
|
|
|
double surplusMoney = double.tryParse(surplusGreenMoney ?? "0"); |
|
|
|
|