提交法律援助和财税援助,调整我的页面

This commit is contained in:
2024-11-29 15:36:18 +08:00
parent 520f44a25f
commit 3ad21ea708
15 changed files with 219 additions and 50 deletions

View File

@@ -1,5 +1,5 @@
import { getAidDetail } from "../../../service/system";
import { alertInfo } from "../../../utils/index";
import { alertInfo, loadingFunc } from "../../../utils/index";
import request from "../../../utils/request"
const { OK } = request;
// pages/aid/detail/index.js
@@ -21,7 +21,9 @@ Page({
const that = this;
const { type, id } = options;
this.setData({ type, id }, () => {
that.init();
loadingFunc(async () => {
that.init();
})
})
},
@@ -36,6 +38,12 @@ Page({
detail: data
})
},
connect() {
const { type, id } = this.data;
wx.navigateTo({
url: `/pages/aid/consult/index?type=${type}&id=${id}`,
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/