From 8164222c670c8b80251eb7af56661e0ee4cc157d Mon Sep 17 00:00:00 2001 From: w-R <953969641@qq.com> Date: Mon, 9 May 2022 23:51:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=85=E5=80=BC=E4=BC=98=E5=8C=96;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/mine/recharge_page.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/mine/recharge_page.dart b/lib/mine/recharge_page.dart index 158b0141..b6fc9d0b 100644 --- a/lib/mine/recharge_page.dart +++ b/lib/mine/recharge_page.dart @@ -41,7 +41,7 @@ class _RechargePage extends State { List rechargeA; int selectIndex = 0; UserInfo userInfo; - dynamic mBalance; + String mBalance = "0"; @override void initState() { @@ -93,7 +93,7 @@ class _RechargePage extends State { await apiService.queryInfo().catchError((onError) {}); if (baseData != null && baseData.isSuccess) { userInfo = baseData.data; - mBalance = double.tryParse(userInfo?.money ?? "0"); + mBalance = userInfo?.money ?? "0"; if (mounted) setState(() {}); } } @@ -198,7 +198,7 @@ class _RechargePage extends State { Text.rich( TextSpan(children: [ TextSpan( - text: "$mBalance", + text: mBalance, style: TextStyle( fontSize: 26.sp, color: Color(0xFF181818),