|
|
@ -308,21 +308,24 @@ class _LifePayPageNewState extends State<LifePayPageNew> {
|
|
|
|
color: kPrimaryColor,
|
|
|
|
color: kPrimaryColor,
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 50.w, vertical: 15.w),
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 50.w, vertical: 15.w),
|
|
|
|
onPressed: () async {
|
|
|
|
onPressed: () async {
|
|
|
|
// Function cancel = BotToast.showLoading();
|
|
|
|
Function cancel = BotToast.showLoading();
|
|
|
|
// BaseModel baseModel =
|
|
|
|
BaseModel baseModel =
|
|
|
|
// await NetUtil().post('/user/alipay/dailyPaymentAlipay', params: {
|
|
|
|
await NetUtil().post(SAASAPI.pay.createLivingExpensesOrder, params: {
|
|
|
|
// "ids": total.ids,
|
|
|
|
"chargesBillId": total.ids,
|
|
|
|
// "payType": 1, //暂时写死 等待后续补充
|
|
|
|
"paymentAmount": total.payTotal
|
|
|
|
// "payPrice": total.payTotal.toDoubleStringAsFixed()
|
|
|
|
});
|
|
|
|
// });
|
|
|
|
if (baseModel.success) {
|
|
|
|
// if (baseModel.success) {
|
|
|
|
bool result = await PayUtil().callAliPay(
|
|
|
|
// bool result = await PayUtil()
|
|
|
|
(baseModel.data as String),
|
|
|
|
// .callAliPay(baseModel.msg, API.pay.dailPayMentCheck);
|
|
|
|
SAASAPI.pay.livingExpensesOrderCheckAlipay);
|
|
|
|
// if (result) {
|
|
|
|
if (result) {
|
|
|
|
// Get.off(() => PayFinishPage());
|
|
|
|
Get.off(() => PayFinishPage());
|
|
|
|
// }
|
|
|
|
} else {
|
|
|
|
// }
|
|
|
|
///跳到待付款页面
|
|
|
|
// cancel();
|
|
|
|
BotToast.showText(text: '缴费失败');
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
cancel();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
child: '去缴费'.text.black.size(32.sp).bold.make(),
|
|
|
|
child: '去缴费'.text.black.size(32.sp).bold.make(),
|
|
|
|
);
|
|
|
|
);
|
|
|
|