支持微信公众号跳转账单

This commit is contained in:
2025-06-11 08:59:40 +08:00
parent 7772b3de1a
commit a36faa9bcb
5 changed files with 12 additions and 10 deletions

View File

@@ -38,14 +38,15 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad(options) {
const { id, time } = options;
const { id, time, tenement } = options;
const that = this;
loadingFunc(async () => {
await that.init(id, time);
await that.init(id, time, tenement);
})
},
async init(id, time) {
const { code, message, detail, amount } = await getReportDetail(id)
async init(id, time, tenement) {
console.log("time:", tenement)
const { code, message, detail, amount } = await getReportDetail(id, tenement)
if (code !== OK) {
alertInfo(message)
return;