diff --git a/weapp/package/troubleshooting/index.js b/weapp/package/troubleshooting/index.js index 6abd359..f04b474 100644 --- a/weapp/package/troubleshooting/index.js +++ b/weapp/package/troubleshooting/index.js @@ -184,17 +184,25 @@ Page({ * 生命周期函数--监听页面加载 */ onLoad (options) { - Request.get(getStructuresUsers(), {}).then(res => { - this.setData({ - structList: res - }) - }) + }, /** * 生命周期函数--监听页面初次渲染完成 */ onReady () { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow () { + Request.get(getStructuresUsers(), {}).then(res => { + this.setData({ + structList: res + }) + }) this.getData({ type: 'backlog' }); @@ -210,13 +218,6 @@ Page({ } }, - /** - * 生命周期函数--监听页面显示 - */ - onShow () { - - }, - /** * 生命周期函数--监听页面隐藏 */ diff --git a/weapp/package/troubleshooting/shootingForm/index.js b/weapp/package/troubleshooting/shootingForm/index.js index b0a1c66..b737d0a 100644 --- a/weapp/package/troubleshooting/shootingForm/index.js +++ b/weapp/package/troubleshooting/shootingForm/index.js @@ -454,8 +454,7 @@ Page({ ...confirmData, state: nextState, }).then(res => { - wx.redirectTo({ - url: '/package/troubleshooting/index', + wx.navigateBack({ complete: () => { wx.showToast({ title: successMsg,