Browse Source

充值优化;

remove_uniapp
w-R 3 years ago
parent
commit
8164222c67
  1. 6
      lib/mine/recharge_page.dart

6
lib/mine/recharge_page.dart

@ -41,7 +41,7 @@ class _RechargePage extends State<RechargePage> {
List<RechargeList> rechargeA; List<RechargeList> rechargeA;
int selectIndex = 0; int selectIndex = 0;
UserInfo userInfo; UserInfo userInfo;
dynamic mBalance; String mBalance = "0";
@override @override
void initState() { void initState() {
@ -93,7 +93,7 @@ class _RechargePage extends State<RechargePage> {
await apiService.queryInfo().catchError((onError) {}); await apiService.queryInfo().catchError((onError) {});
if (baseData != null && baseData.isSuccess) { if (baseData != null && baseData.isSuccess) {
userInfo = baseData.data; userInfo = baseData.data;
mBalance = double.tryParse(userInfo?.money ?? "0"); mBalance = userInfo?.money ?? "0";
if (mounted) setState(() {}); if (mounted) setState(() {});
} }
} }
@ -198,7 +198,7 @@ class _RechargePage extends State<RechargePage> {
Text.rich( Text.rich(
TextSpan(children: [ TextSpan(children: [
TextSpan( TextSpan(
text: "$mBalance", text: mBalance,
style: TextStyle( style: TextStyle(
fontSize: 26.sp, fontSize: 26.sp,
color: Color(0xFF181818), color: Color(0xFF181818),

Loading…
Cancel
Save