pull/1/head
张萌 3 years ago
commit 8748a649a1

@ -263,11 +263,19 @@ class _Pay {
///app
String get jcookOrderCheckAlipay => '/app/user/alipay/jcookOrderCheckAlipay';
///
///
String get createPrepaymentOrder => '/app/user/alipay/createPrepaymentOrder';
///app
///
String get prepaymentOrderCheckAlipay => '/app/user/alipay/prepaymentOrderCheckAlipay';
///
String get createLivingExpensesOrder => '/app/user/alipay/createLivingExpensesOrder';
///
String get livingExpensesOrderCheckAlipay => '/app/user/alipay/livingExpensesOrderCheckAlipay';
}
@ -282,5 +290,4 @@ class _LifePay{
String get findEstateBalance => '/app/user/livingExpenses/findEstateBalance';
}

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

@ -201,14 +201,19 @@ class _ChatCardDetailState extends State<ChatCardDetail> {
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
32.hb,
if (!widget.model.content!.isEmptyOrNull)
widget.model.content!.text
.size(28.sp)
.color(ktextSubColor)
.make(),
32.hb,
_renderImage(),
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
32.hb,
if (!widget.model.content!.isEmptyOrNull)
widget.model.content!.text
.size(28.sp)
.color(ktextSubColor)
.make(),
32.hb,
_renderImage(),
],
).paddingOnly(left: 115.w),
20.hb,
TopicWidgets(
topicTags: widget.model.topicTags,

Loading…
Cancel
Save