|
|
|
@ -44,6 +44,17 @@ class _RechargePage extends State<RechargePage> {
|
|
|
|
|
queryBenefitList(); |
|
|
|
|
queryRuleDetails(); |
|
|
|
|
}); |
|
|
|
|
weChatResponseEventHandler.listen((event) async { |
|
|
|
|
print("payCallback: ${event.errCode}"); |
|
|
|
|
if(event.errCode == 0){ |
|
|
|
|
Navigator.of(context).pop(); |
|
|
|
|
SmartDialog.showToast("充值成功", alignment: Alignment.center); |
|
|
|
|
} |
|
|
|
|
else{ |
|
|
|
|
SmartDialog.showToast("充值失败", alignment: Alignment.center); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -288,7 +299,7 @@ class _RechargePage extends State<RechargePage> {
|
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 12.sp, |
|
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
|
color: Colors.blueAccent, |
|
|
|
|
color:Color(0xff3541C9), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
TextSpan( |
|
|
|
@ -304,7 +315,7 @@ class _RechargePage extends State<RechargePage> {
|
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 12.sp, |
|
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
|
color: Colors.blueAccent, |
|
|
|
|
color: Color(0xff3541C9), |
|
|
|
|
), |
|
|
|
|
),TextSpan( |
|
|
|
|
text: "元", |
|
|
|
@ -401,17 +412,6 @@ class _RechargePage extends State<RechargePage> {
|
|
|
|
|
timeStamp: int.tryParse(wxPay.timeStamp), |
|
|
|
|
sign: wxPay.sign, |
|
|
|
|
); |
|
|
|
|
weChatResponseEventHandler.listen((event) async { |
|
|
|
|
print("payCallback: ${event.errCode}"); |
|
|
|
|
if(event.errCode == 0){ |
|
|
|
|
Navigator.of(context).pop(); |
|
|
|
|
SmartDialog.showToast("充值成功", alignment: Alignment.center); |
|
|
|
|
} |
|
|
|
|
else{ |
|
|
|
|
SmartDialog.showToast("充值失败", alignment: Alignment.center); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
else{ |
|
|
|
|
SmartDialog.showToast(baseData.msg, alignment: Alignment.center); |
|
|
|
|