修改物业缴费支付成功后的逻辑

This commit is contained in:
赵毅 2025-09-29 15:44:48 +08:00
parent c118145c8b
commit 94a17c7107

View File

@ -515,22 +515,21 @@ export default {
uni.showModal({
title: '提示',
content: '确定使用物业公积金支付?',
success: async function (res) {
success: async (res) => {
if (res.confirm) {
await request(apiArr.createPayOrder, "POST", payParams).then((res) => {
const params = {
order_pay_id: res.id,
}
request(apiArr.tradeQuery, "POST", params).then(res => {
if (res && res.pay_status == 1) {
uni.showToast({
title: '支付成功',
icon: 'success',
duration: 2000
});
this.getRoomSelect();
this.getUserGovenmentMoney();
}
console.log("🚀 ~ createPay ~ res:", res)
uni.showToast({
title: '支付成功',
icon: 'success',
duration: 2000
});
this.getRoomSelect();
this.getUserGovenmentMoney();
})
});
} else if (res.cancel) {