对接支付

This commit is contained in:
zhouyanli
2026-07-28 16:04:50 +08:00
parent a3f35f95b5
commit 703078c4c4
6 changed files with 98 additions and 75 deletions

View File

@@ -111,17 +111,17 @@
};
// ===== 获取缴费列表 =====
const getPayList = async () => {
if (!isLogin.value) return;
try {
const res = await getTopUpSelectByResident({
residentUserId: uni.getStorageSync('userId')
})
paymentList.value = res.data || []
} catch (err) {
console.error('列表接口报错:', err)
}
};
// const getPayList = async () => {
// if (!isLogin.value) return;
// try {
// const res = await getTopUpSelectByResident({
// residentUserId: uni.getStorageSync('userId')
// })
// paymentList.value = res.data || []
// } catch (err) {
// console.error('列表接口报错:', err)
// }
// };
// ===== 生命周期 =====
onLoad(() => {
@@ -155,7 +155,7 @@
// 存入 storage 供 arrearsPayment 使用
uni.setStorageSync("arrearsPayment", paymentItem)
// 直接跳转支付页
uni.redirectTo({ url: "/pageSubPack/payment-list/arrearsPayment" })
uni.redirectTo({ url: "/pages/arrearsPayment/arrearsPayment" })
}
// ===== 点击事件(统一用 isLogin 判断) =====
@@ -185,7 +185,7 @@
return;
}
uni.setStorageSync('arrearsPayment', item)
uni.redirectTo({ url: '/pageSubPack/payment-list/arrearsPayment' })
uni.redirectTo({ url: '/pages/arrearsPayment/arrearsPayment' })
};
// 点击缴费记录