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),