修改物业缴费支付成功后的逻辑
This commit is contained in:
parent
c118145c8b
commit
94a17c7107
@ -515,22 +515,21 @@ export default {
|
|||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: '提示',
|
title: '提示',
|
||||||
content: '确定使用物业公积金支付?',
|
content: '确定使用物业公积金支付?',
|
||||||
success: async function (res) {
|
success: async (res) => {
|
||||||
if (res.confirm) {
|
if (res.confirm) {
|
||||||
await request(apiArr.createPayOrder, "POST", payParams).then((res) => {
|
await request(apiArr.createPayOrder, "POST", payParams).then((res) => {
|
||||||
const params = {
|
const params = {
|
||||||
order_pay_id: res.id,
|
order_pay_id: res.id,
|
||||||
}
|
}
|
||||||
request(apiArr.tradeQuery, "POST", params).then(res => {
|
request(apiArr.tradeQuery, "POST", params).then(res => {
|
||||||
if (res && res.pay_status == 1) {
|
console.log("🚀 ~ createPay ~ res:", res)
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '支付成功',
|
title: '支付成功',
|
||||||
icon: 'success',
|
icon: 'success',
|
||||||
duration: 2000
|
duration: 2000
|
||||||
});
|
});
|
||||||
this.getRoomSelect();
|
this.getRoomSelect();
|
||||||
this.getUserGovenmentMoney();
|
this.getUserGovenmentMoney();
|
||||||
}
|
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
} else if (res.cancel) {
|
} else if (res.cancel) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user