From cf88306b1f6aade9f0c6c4fa5859872d3f177c4a Mon Sep 17 00:00:00 2001
From: zhangyongtian <1181606322@qq.com>
Date: Fri, 13 Sep 2024 14:56:29 +0800
Subject: [PATCH] Merge branch 'master' of http://120.79.193.119:9090/r/gzzfw/frontEnd/gzDyh

---
 gz-wxparty/pages/myRegisterList/index.js |   78 ++++++++++++++++++++++++++++++---------
 1 files changed, 60 insertions(+), 18 deletions(-)

diff --git a/gz-wxparty/pages/myRegisterList/index.js b/gz-wxparty/pages/myRegisterList/index.js
index e4fdbf1..cc3be1c 100644
--- a/gz-wxparty/pages/myRegisterList/index.js
+++ b/gz-wxparty/pages/myRegisterList/index.js
@@ -44,13 +44,7 @@
       label: '不予受理',
       value: '4'
     }],
-    dataList: [{
-      title: '',
-      show: true
-    }, {
-      title: '',
-      show: false
-    }]
+    dataList: []
   },
 
   // 查看
@@ -63,6 +57,7 @@
 
   // 关闭筛选框
   addClosePopup() {
+    console.log('111', 11);
     this.setData({
       showModal: false
     })
@@ -78,6 +73,7 @@
   searchSelect(e) {
     let idx = e.currentTarget.dataset.index;
     let item = e.currentTarget.dataset.item;
+    console.log('item', item);
     let searchData = {
       ...this.data.search,
       processStatus: item.value
@@ -88,19 +84,23 @@
         ...item,
         hover: index === idx ? true : false
       })),
-      searchValue: item.label
+      searchValue: item.label,
+      showModal: false
     })
   },
 
   // 切换tab
   threeTagChange(e) {
-    value = e.detail;
+    let value = e.detail;
+    console.log(value, );
+    let data = {
+      ...this.data.search,
+      personType: value.name,
+    }
     this.setData({
-      search: {
-        ...this.data.search,
-        personType: value,
-      }
+      search: data
     });
+    this.pageQuery(data)
   },
 
   // 折叠列表
@@ -122,14 +122,20 @@
       });
     }
     if (res.type) {
+      let list = []
       if (params.page === 1) {
-        this.data.data = res.data.content || [];
+        list = res.data.content || [];
       } else {
-        this.data.data = this.data.data.concat(res.data.content || []);
+        list = this.data.data.concat(res.data.content || []);
       }
       this.setData({
         search: params,
-        data: this.data.data,
+        dataList: list.map((i, index) => ({
+          ...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
+        })),
         total: res.data.totalElements || 0
       });
       if (type === 'onPullDownRefresh') {
@@ -142,12 +148,48 @@
     }
   },
 
+  // 前往查看
+  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
+    })
+  },
+
+  // 评价
+  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)
   },
 
-
+  onShow() {
+    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