From dfca64c71e4b06989e66f5d68fc5d89d98386b7b Mon Sep 17 00:00:00 2001 From: zhangyongtian <1181606322@qq.com> Date: Wed, 11 Sep 2024 12:49:49 +0800 Subject: [PATCH] fix: 预览状态下的办理记录不显示编辑图标 --- gz-wxparty/pages/myRegisterList/index.js | 30 +++++++++++++++++++++++++++++- 1 files changed, 29 insertions(+), 1 deletions(-) diff --git a/gz-wxparty/pages/myRegisterList/index.js b/gz-wxparty/pages/myRegisterList/index.js index f6d2055..847fb0c 100644 --- a/gz-wxparty/pages/myRegisterList/index.js +++ b/gz-wxparty/pages/myRegisterList/index.js @@ -147,6 +147,24 @@ } }, + // 前往查看 + AiModalClick(e) { + let item = e.currentTarget.dataset.item; + wx.navigateTo({ + url: '../../pages/AIAide/index?caseDes=' + item.caseDes + '&caseClaim=' + item.caseClaim + '&caseId=' + item.caseId + }); + this.setData({ + AiModal: false + }) + }, + + // 关闭AI弹窗 + addClosePopup() { + this.setData({ + AiModal: false + }) + }, + /** * 生命周期函数--监听页面加载 */ @@ -154,5 +172,15 @@ this.pageQuery(this.data.search) }, - + onShow() { + let AICase = wx.getStorageSync('AICase') || ''; + if (AICase) { + this.setData({ + AiModal: AICase + }) + wx.removeStorage({ + key: 'AICase' + }) + } + } }) \ No newline at end of file -- Gitblit v1.8.0