|
|
|
@ -6,11 +6,11 @@ import 'package:huixiang/retrofit/data/base_data.dart';
|
|
|
|
|
import 'package:huixiang/retrofit/data/page.dart'; |
|
|
|
|
import 'package:huixiang/retrofit/data/user_bill.dart'; |
|
|
|
|
import 'package:huixiang/retrofit/retrofit_api.dart'; |
|
|
|
|
import 'package:huixiang/view_widget/no_data_view.dart'; |
|
|
|
|
import 'package:pull_to_refresh/pull_to_refresh.dart'; |
|
|
|
|
import 'package:shared_preferences/shared_preferences.dart'; |
|
|
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class VipBalancePage extends StatefulWidget { |
|
|
|
|
final arguments; |
|
|
|
|
|
|
|
|
@ -113,7 +113,14 @@ class _VipBalancePage extends State<VipBalancePage> {
|
|
|
|
|
leadingWidth: 56.w, |
|
|
|
|
), |
|
|
|
|
body: Container( |
|
|
|
|
child: ListView.builder( |
|
|
|
|
child: (userBills == null || userBills.length == 0) |
|
|
|
|
? NoDataView( |
|
|
|
|
isShowBtn: false, |
|
|
|
|
text: S.of(context).nihaimeiyouchongzhihuoxiaofeijilu, |
|
|
|
|
fontSize: 16.sp, |
|
|
|
|
margin: EdgeInsets.only(top: 120.h), |
|
|
|
|
) |
|
|
|
|
: ListView.builder( |
|
|
|
|
itemBuilder: (context, position) { |
|
|
|
|
return balanceItem(userBills[position]); |
|
|
|
|
}, |
|
|
|
@ -138,7 +145,9 @@ class _VipBalancePage extends State<VipBalancePage> {
|
|
|
|
|
margin: EdgeInsets.only(left: 12.w, top: 12.h), |
|
|
|
|
alignment: Alignment.center, |
|
|
|
|
child: Image.asset( |
|
|
|
|
userBill.pm == 0 ? "assets/image/icon_store_c.png" : "assets/image/icon_wallet_recharge.png", |
|
|
|
|
userBill.pm == 0 |
|
|
|
|
? "assets/image/icon_store_c.png" |
|
|
|
|
: "assets/image/icon_wallet_recharge.png", |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
Expanded( |
|
|
|
@ -177,7 +186,10 @@ class _VipBalancePage extends State<VipBalancePage> {
|
|
|
|
|
TextSpan(children: [ |
|
|
|
|
TextSpan( |
|
|
|
|
text: userBill.createTime, |
|
|
|
|
style: TextStyle(fontSize: 14.sp, color: Color(0xff727272),), |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
color: Color(0xff727272), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
]), |
|
|
|
|
), |
|
|
|
@ -188,7 +200,8 @@ class _VipBalancePage extends State<VipBalancePage> {
|
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
|
color: Color(0xff727272),), |
|
|
|
|
color: Color(0xff727272), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
]), |
|
|
|
|
), |
|
|
|
|