|
|
|
@ -218,29 +218,29 @@ class _RechargePage extends State<RechargePage> {
|
|
|
|
|
SizedBox(height: 28), |
|
|
|
|
rechargeList(), |
|
|
|
|
SizedBox(height:22), |
|
|
|
|
Row( |
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceAround, |
|
|
|
|
children: [ |
|
|
|
|
if (vipRuleDetails?.recharge != null && |
|
|
|
|
vipRuleDetails.recharge != "") |
|
|
|
|
Expanded( |
|
|
|
|
child: Container( |
|
|
|
|
color: Colors.white, |
|
|
|
|
child: Html( |
|
|
|
|
data: "注意:${vipRuleDetails?.recharge ?? ""}", |
|
|
|
|
customImageRenders: { |
|
|
|
|
networkSourceMatcher(): networkImageRender( |
|
|
|
|
loadingWidget: () { |
|
|
|
|
return Container(); |
|
|
|
|
}, |
|
|
|
|
), |
|
|
|
|
}, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
) |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
// Row( |
|
|
|
|
// crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
|
// mainAxisAlignment: MainAxisAlignment.spaceAround, |
|
|
|
|
// children: [ |
|
|
|
|
// if (vipRuleDetails?.recharge != null && |
|
|
|
|
// vipRuleDetails.recharge != "") |
|
|
|
|
// Expanded( |
|
|
|
|
// child: Container( |
|
|
|
|
// color: Colors.white, |
|
|
|
|
// child: Html( |
|
|
|
|
// data: "注意:${vipRuleDetails?.recharge ?? ""}", |
|
|
|
|
// customImageRenders: { |
|
|
|
|
// networkSourceMatcher(): networkImageRender( |
|
|
|
|
// loadingWidget: () { |
|
|
|
|
// return Container(); |
|
|
|
|
// }, |
|
|
|
|
// ), |
|
|
|
|
// }, |
|
|
|
|
// ), |
|
|
|
|
// ), |
|
|
|
|
// ) |
|
|
|
|
// ], |
|
|
|
|
// ), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
Container( |
|
|
|
@ -442,7 +442,24 @@ class _RechargePage extends State<RechargePage> {
|
|
|
|
|
var checkIndex = 1; |
|
|
|
|
|
|
|
|
|
Widget rechargeList() { |
|
|
|
|
return GridView.builder( |
|
|
|
|
return ListView.builder( |
|
|
|
|
padding: EdgeInsets.zero, |
|
|
|
|
itemCount: rechargeA == null ? 0 : rechargeA.length, |
|
|
|
|
scrollDirection: Axis.vertical, |
|
|
|
|
shrinkWrap: true, |
|
|
|
|
physics: NeverScrollableScrollPhysics(), |
|
|
|
|
itemBuilder: (context, position) { |
|
|
|
|
return GestureDetector( |
|
|
|
|
onTap: () { |
|
|
|
|
setState(() { |
|
|
|
|
selectIndex = position; |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
child: newRechargeItem(rechargeA[position],position) |
|
|
|
|
); |
|
|
|
|
}, |
|
|
|
|
); |
|
|
|
|
GridView.builder( |
|
|
|
|
itemCount: rechargeA == null ? 0 : rechargeA.length, |
|
|
|
|
shrinkWrap: true, |
|
|
|
|
physics: BouncingScrollPhysics(), |
|
|
|
@ -517,6 +534,44 @@ class _RechargePage extends State<RechargePage> {
|
|
|
|
|
)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Widget newRechargeItem(RechargeList rechargeA,index) { |
|
|
|
|
return Container( |
|
|
|
|
width:double.infinity, |
|
|
|
|
height: 69.h, |
|
|
|
|
decoration: BoxDecoration( |
|
|
|
|
color: Color(0xFFFAFAFA), |
|
|
|
|
borderRadius: BorderRadius.circular(4), |
|
|
|
|
), |
|
|
|
|
child: Row( |
|
|
|
|
|
|
|
|
|
children: [ |
|
|
|
|
Text.rich( |
|
|
|
|
TextSpan(children: [ |
|
|
|
|
TextSpan( |
|
|
|
|
text: "储值 ", |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 12.sp, |
|
|
|
|
color: Color(0xFF868686), |
|
|
|
|
fontWeight: MyFontWeight.regular), |
|
|
|
|
), |
|
|
|
|
TextSpan( |
|
|
|
|
text: "${AppUtils.calculateDouble(double.tryParse(rechargeA.rechargeMoney)??0)}元", |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 15.sp, |
|
|
|
|
color: Color(0xFF181818), |
|
|
|
|
fontWeight: MyFontWeight.semi_bold), |
|
|
|
|
), |
|
|
|
|
]), |
|
|
|
|
), |
|
|
|
|
Container( |
|
|
|
|
width: 1.w, |
|
|
|
|
height: 37.h, |
|
|
|
|
color: Color(0xFF979797), |
|
|
|
|
) |
|
|
|
|
], |
|
|
|
|
)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Widget checkView(var index) { |
|
|
|
|
return Container( |
|
|
|
|
padding: EdgeInsets.only(right: 16.w), |
|
|
|
|