From 9d4161a65aea66deffc74eee029a7ae6f30003b2 Mon Sep 17 00:00:00 2001 From: liujiangyong Date: Tue, 14 Mar 2023 11:51:08 +0800 Subject: [PATCH] =?UTF-8?q?(fixed)=209272=20=E4=BF=AE=E6=94=B9=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E5=A4=84=E7=90=86=E8=B7=B3=E8=BD=AC=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- weapp/package/troubleshooting/index.js | 25 ++++++++++--------- .../troubleshooting/shootingForm/index.js | 3 +-- 2 files changed, 14 insertions(+), 14 deletions(-) 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,