提交法律援助和财税援助,调整我的页面
This commit is contained in:
@@ -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}`,
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
|
Reference in New Issue
Block a user