|
|
|
@ -143,178 +143,171 @@ class _RechargePage extends State<RechargePage> {
|
|
|
|
|
color: Color(0xFFFFFFFF), |
|
|
|
|
child: Stack( |
|
|
|
|
children: [ |
|
|
|
|
SingleChildScrollView( |
|
|
|
|
physics: BouncingScrollPhysics(), |
|
|
|
|
child: Container( |
|
|
|
|
margin: EdgeInsets.only(left: 16, right: 16), |
|
|
|
|
child: Column( |
|
|
|
|
children: [ |
|
|
|
|
Column( |
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start, |
|
|
|
|
children: [ |
|
|
|
|
// ItemInputWidget( |
|
|
|
|
// S.of(context).qingshuruchongzhijine, |
|
|
|
|
// hintText: "", |
|
|
|
|
// controller: controller, |
|
|
|
|
// padding: EdgeInsets.all(20), |
|
|
|
|
// errorText: S.of(context).chongzhizuixiaojine(100), |
|
|
|
|
// titleColor: Color(0xFF727272), |
|
|
|
|
// errorTextColor: Color(0xFF32A060), |
|
|
|
|
// radius: 8, |
|
|
|
|
// discount: discount / 10, |
|
|
|
|
// style: TextStyle( |
|
|
|
|
// fontWeight: FontWeight.bold, |
|
|
|
|
// fontSize: 27.sp, |
|
|
|
|
// color: color, |
|
|
|
|
// ), |
|
|
|
|
// inputLimit: 6, |
|
|
|
|
// textInputType: TextInputType.number, |
|
|
|
|
// textInputFormatter: |
|
|
|
|
// FilteringTextInputFormatter.digitsOnly, |
|
|
|
|
// onChanged: (value) { |
|
|
|
|
// if (value != null && |
|
|
|
|
// value != "" && |
|
|
|
|
// double.tryParse(value) < 100) { |
|
|
|
|
// color = Colors.red; |
|
|
|
|
// } else { |
|
|
|
|
// color = Colors.black; |
|
|
|
|
// } |
|
|
|
|
// setState(() {}); |
|
|
|
|
// }, |
|
|
|
|
// ), |
|
|
|
|
Padding( |
|
|
|
|
padding: EdgeInsets.only(top: 26, bottom: 28), |
|
|
|
|
child: Text( |
|
|
|
|
S.of(context).chongzhi, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 28.sp, |
|
|
|
|
color: Color(0xFF181818), |
|
|
|
|
fontWeight: MyFontWeight.semi_bold), |
|
|
|
|
Column(children: [ |
|
|
|
|
SingleChildScrollView( |
|
|
|
|
physics: BouncingScrollPhysics(), |
|
|
|
|
child: Container( |
|
|
|
|
margin: EdgeInsets.only(left: 16, right: 16), |
|
|
|
|
child: Column( |
|
|
|
|
children: [ |
|
|
|
|
Column( |
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start, |
|
|
|
|
children: [ |
|
|
|
|
// ItemInputWidget( |
|
|
|
|
// S.of(context).qingshuruchongzhijine, |
|
|
|
|
// hintText: "", |
|
|
|
|
// controller: controller, |
|
|
|
|
// padding: EdgeInsets.all(20), |
|
|
|
|
// errorText: S.of(context).chongzhizuixiaojine(100), |
|
|
|
|
// titleColor: Color(0xFF727272), |
|
|
|
|
// errorTextColor: Color(0xFF32A060), |
|
|
|
|
// radius: 8, |
|
|
|
|
// discount: discount / 10, |
|
|
|
|
// style: TextStyle( |
|
|
|
|
// fontWeight: FontWeight.bold, |
|
|
|
|
// fontSize: 27.sp, |
|
|
|
|
// color: color, |
|
|
|
|
// ), |
|
|
|
|
// inputLimit: 6, |
|
|
|
|
// textInputType: TextInputType.number, |
|
|
|
|
// textInputFormatter: |
|
|
|
|
// FilteringTextInputFormatter.digitsOnly, |
|
|
|
|
// onChanged: (value) { |
|
|
|
|
// if (value != null && |
|
|
|
|
// value != "" && |
|
|
|
|
// double.tryParse(value) < 100) { |
|
|
|
|
// color = Colors.red; |
|
|
|
|
// } else { |
|
|
|
|
// color = Colors.black; |
|
|
|
|
// } |
|
|
|
|
// setState(() {}); |
|
|
|
|
// }, |
|
|
|
|
// ), |
|
|
|
|
SizedBox(height:20,), |
|
|
|
|
Row( |
|
|
|
|
children: [ |
|
|
|
|
Expanded( |
|
|
|
|
child: Text( |
|
|
|
|
S.of(context).zhanghuyue, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 15.sp, |
|
|
|
|
color: Color(0xFF181818), |
|
|
|
|
fontWeight: MyFontWeight.semi_bold), |
|
|
|
|
)), |
|
|
|
|
Text.rich( |
|
|
|
|
TextSpan(children: [ |
|
|
|
|
TextSpan( |
|
|
|
|
text: "$mBalance", |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 26.sp, |
|
|
|
|
color: Color(0xFF181818), |
|
|
|
|
fontWeight: MyFontWeight.semi_bold), |
|
|
|
|
), |
|
|
|
|
TextSpan( |
|
|
|
|
text: "元", |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 15.sp, |
|
|
|
|
color: Color(0xFF181818), |
|
|
|
|
fontWeight: MyFontWeight.semi_bold), |
|
|
|
|
), |
|
|
|
|
]), |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
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(); |
|
|
|
|
}, |
|
|
|
|
), |
|
|
|
|
}, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
) |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
Container( |
|
|
|
|
width: double.infinity, |
|
|
|
|
margin: EdgeInsets.only( |
|
|
|
|
top: 16.h, |
|
|
|
|
bottom: 4.h, |
|
|
|
|
), |
|
|
|
|
Row( |
|
|
|
|
children: [ |
|
|
|
|
Expanded( |
|
|
|
|
child: Text( |
|
|
|
|
S.of(context).zhanghuyue, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 15.sp, |
|
|
|
|
color: Color(0xFF181818), |
|
|
|
|
fontWeight: MyFontWeight.semi_bold), |
|
|
|
|
)), |
|
|
|
|
Text.rich( |
|
|
|
|
TextSpan(children: [ |
|
|
|
|
TextSpan( |
|
|
|
|
text: "$mBalance", |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 26.sp, |
|
|
|
|
color: Color(0xFF181818), |
|
|
|
|
fontWeight: MyFontWeight.semi_bold), |
|
|
|
|
), |
|
|
|
|
TextSpan( |
|
|
|
|
text: "元", |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 15.sp, |
|
|
|
|
color: Color(0xFF181818), |
|
|
|
|
fontWeight: MyFontWeight.semi_bold), |
|
|
|
|
), |
|
|
|
|
]), |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
padding: EdgeInsets.only( |
|
|
|
|
top: 20.h, |
|
|
|
|
bottom: 20.h, |
|
|
|
|
), |
|
|
|
|
SizedBox(height: 28), |
|
|
|
|
rechargeList(), |
|
|
|
|
SizedBox(height:22), |
|
|
|
|
Row( |
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
|
// decoration: BoxDecoration( |
|
|
|
|
// color: Colors.white, |
|
|
|
|
// borderRadius: BorderRadius.circular(4), |
|
|
|
|
// ), |
|
|
|
|
child: Column( |
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceAround, |
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
|
children: [ |
|
|
|
|
if (vipRuleDetails?.recharge != null && |
|
|
|
|
vipRuleDetails.recharge != "") |
|
|
|
|
Expanded( |
|
|
|
|
child: Container( |
|
|
|
|
color: Colors.white, |
|
|
|
|
child: Html( |
|
|
|
|
data: "注意:${vipRuleDetails?.recharge ?? ""}", |
|
|
|
|
customImageRenders: { |
|
|
|
|
networkSourceMatcher(): networkImageRender( |
|
|
|
|
loadingWidget: () { |
|
|
|
|
return Container(); |
|
|
|
|
}, |
|
|
|
|
), |
|
|
|
|
}, |
|
|
|
|
), |
|
|
|
|
Padding( |
|
|
|
|
padding: EdgeInsets.only(bottom: 16.h), |
|
|
|
|
child: Text( |
|
|
|
|
S.of(context).zhifufangshi, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 16.sp, |
|
|
|
|
color: Colors.black, |
|
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
|
), |
|
|
|
|
) |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
Container( |
|
|
|
|
width: double.infinity, |
|
|
|
|
margin: EdgeInsets.only( |
|
|
|
|
top: 16.h, |
|
|
|
|
bottom: 4.h, |
|
|
|
|
), |
|
|
|
|
padding: EdgeInsets.only( |
|
|
|
|
top: 20.h, |
|
|
|
|
bottom: 20.h, |
|
|
|
|
), |
|
|
|
|
// decoration: BoxDecoration( |
|
|
|
|
// color: Colors.white, |
|
|
|
|
// borderRadius: BorderRadius.circular(4), |
|
|
|
|
// ), |
|
|
|
|
child: Column( |
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceAround, |
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
|
children: [ |
|
|
|
|
Padding( |
|
|
|
|
padding: EdgeInsets.only(bottom: 16.h), |
|
|
|
|
child: Text( |
|
|
|
|
S.of(context).zhifufangshi, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 16.sp, |
|
|
|
|
color: Colors.black, |
|
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
GestureDetector( |
|
|
|
|
onTap: () { |
|
|
|
|
setState(() { |
|
|
|
|
checkIndex = 1; |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
child: Row( |
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start, |
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
|
children: [ |
|
|
|
|
Image.asset("assets/image/icon_we_chat.webp"), |
|
|
|
|
Expanded( |
|
|
|
|
flex: 1, |
|
|
|
|
child: Padding( |
|
|
|
|
padding: EdgeInsets.only(left: 8.w), |
|
|
|
|
child: Text( |
|
|
|
|
S.of(context).weixinzhifu, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
color: Color(0xff353535), |
|
|
|
|
GestureDetector( |
|
|
|
|
onTap: () { |
|
|
|
|
setState(() { |
|
|
|
|
checkIndex = 1; |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
child: Row( |
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start, |
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
|
children: [ |
|
|
|
|
Image.asset("assets/image/icon_we_chat.webp"), |
|
|
|
|
Expanded( |
|
|
|
|
flex: 1, |
|
|
|
|
child: Padding( |
|
|
|
|
padding: EdgeInsets.only(left: 8.w), |
|
|
|
|
child: Text( |
|
|
|
|
S.of(context).weixinzhifu, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
color: Color(0xff353535), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
checkView(1), |
|
|
|
|
], |
|
|
|
|
checkView(1), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
) |
|
|
|
|
],), |
|
|
|
|
Align( |
|
|
|
|
alignment: Alignment.bottomCenter, |
|
|
|
|
child: GestureDetector( |
|
|
|
|