Browse Source

优化钱包数据展示,优化提现数据展示

ios
王子贤 3 months ago
parent
commit
b9fe7ae266
1 changed files with 13 additions and 5 deletions
  1. 18
      lib/pages/mine/my_wallet_page.dart

18
lib/pages/mine/my_wallet_page.dart

@ -66,7 +66,7 @@ class MyWalletPage extends StatelessWidget {
), ),
child: Column( child: Column(
children: [ children: [
if(controller.walletData.value.id != null) Stack(
Stack(
children: [ children: [
Image.asset( Image.asset(
Assets.imagesMyWalletBg, Assets.imagesMyWalletBg,
@ -112,7 +112,7 @@ class MyWalletPage extends StatelessWidget {
Row( Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [ children: [
Text(
if(controller.walletData.value.id != null) Text(
controller.visibility.value ? "${controller.walletData.value.totalBalance}" : controller.walletData.value.totalBalance.toString().replaceAll(RegExp(r'\d'), '*'), controller.visibility.value ? "${controller.walletData.value.totalBalance}" : controller.walletData.value.totalBalance.toString().replaceAll(RegExp(r'\d'), '*'),
style: TextStyle( style: TextStyle(
fontSize: 30.w, fontSize: 30.w,
@ -120,6 +120,14 @@ class MyWalletPage extends StatelessWidget {
fontWeight: FontWeight.w700 fontWeight: FontWeight.w700
), ),
), ),
if(controller.walletData.value.id == null) Text(
controller.visibility.value ? "0.00" : "*.**",
style: TextStyle(
fontSize: 30.w,
color: Colors.white,
fontWeight: FontWeight.w700
),
),
Container( Container(
width: 108.w, width: 108.w,
height: 32.w, height: 32.w,
@ -160,7 +168,7 @@ class MyWalletPage extends StatelessWidget {
), ),
), ),
Text( Text(
"${controller.walletData.value.availableWithdrawBalance}",
"${controller.walletData.value.id != null ? controller.walletData.value.availableWithdrawBalance : "0.00"}",
style: TextStyle( style: TextStyle(
fontSize: 13.w, fontSize: 13.w,
color: Colors.white, color: Colors.white,
@ -189,7 +197,7 @@ class MyWalletPage extends StatelessWidget {
), ),
), ),
Text( Text(
"${controller.walletData.value.settlementBalance}",
"${controller.walletData.value.id != null ? controller.walletData.value.settlementBalance : "0.00"}",
style: TextStyle( style: TextStyle(
fontSize: 13.w, fontSize: 13.w,
color: Colors.white, color: Colors.white,
@ -218,7 +226,7 @@ class MyWalletPage extends StatelessWidget {
), ),
), ),
Text( Text(
"${controller.walletData.value.frozenBalance}",
"${controller.walletData.value.id != null ? controller.walletData.value.frozenBalance : "0.00"}",
style: TextStyle( style: TextStyle(
fontSize: 13.w, fontSize: 13.w,
color: Colors.white, color: Colors.white,

Loading…
Cancel
Save