From b39c972062c4d95554db7207aa4c9eb93d3adae8 Mon Sep 17 00:00:00 2001 From: liuwh <964324856@qq.com> Date: Sat, 14 Sep 2024 15:58:37 +0800 Subject: [PATCH] 提交 --- gz-wxparty/pages/myRegisterList/index.js | 62 +++++++++++++++++++++++-------- 1 files changed, 46 insertions(+), 16 deletions(-) diff --git a/gz-wxparty/pages/myRegisterList/index.js b/gz-wxparty/pages/myRegisterList/index.js index 847fb0c..9df6b6f 100644 --- a/gz-wxparty/pages/myRegisterList/index.js +++ b/gz-wxparty/pages/myRegisterList/index.js @@ -57,6 +57,7 @@ // 关闭筛选框 addClosePopup() { + console.log('111', 11); this.setData({ showModal: false }) @@ -133,7 +134,9 @@ ...i, plaintiffNames: i.plaintiffList.length > 0 ? i.plaintiffList.map(i => i.trueName).join('、') : '-', defendantNames: i.defendantList.length > 0 ? i.defendantList.map(i => i.trueName).join('、') : '-', - show: index === 0 ? true : false + show: index === 0 ? true : false, + newAgreeContent: i.agreeContent ? i.agreeContent?.length > 75 ? i.agreeContent.slice(0, 75) + '...' : i.agreeContent : '', + agreeContentShow: i.agreeContent?.length > 75 ? true : false, })), total: res.data.totalElements || 0 }); @@ -158,29 +161,56 @@ }) }, - // 关闭AI弹窗 - addClosePopup() { + // 展示协议要点 + agreeContentClick(e) { + let item = e.currentTarget.dataset.item; this.setData({ - AiModal: false + showData: { + visible: true, + title: item.agreeContent + } }) }, + + agreeContentClosePopup(e) { + this.setData({ + showData: { + visible: false, + title: '' + } + }) + }, + + // 评价 + evaluate(e) { + let id = e.currentTarget.dataset.id; + wx.navigateTo({ + url: '../../pages/evaluate/index?id=' + id + }); + }, + + // 关闭AI弹窗 + // addClosePopup() { + // this.setData({ + // AiModal: false + // }) + // }, /** * 生命周期函数--监听页面加载 */ - onLoad(options) { - this.pageQuery(this.data.search) - }, + onLoad(options) {}, onShow() { - let AICase = wx.getStorageSync('AICase') || ''; - if (AICase) { - this.setData({ - AiModal: AICase - }) - wx.removeStorage({ - key: 'AICase' - }) - } + this.pageQuery(this.data.search) + // 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