From 73c3507d82c06066d592d626ccd1a9a0961e0c5f Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期五, 19 七月 2024 20:10:26 +0800
Subject: [PATCH] ''
---
wechat_jiaxuan/components/disCase/index.js | 15 +++++++++------
1 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/wechat_jiaxuan/components/disCase/index.js b/wechat_jiaxuan/components/disCase/index.js
index 1059c35..f10577b 100644
--- a/wechat_jiaxuan/components/disCase/index.js
+++ b/wechat_jiaxuan/components/disCase/index.js
@@ -17,7 +17,7 @@
dataList: [],
pageNum: 1,
pageSize: 10,
- search: '',
+ query: '',
sortType: 'NORMAL',
catalogCode: 'whole_case'
},
@@ -28,7 +28,7 @@
getCatelist(){
const { catalogCode } = this.data
getCataLogTagList({
- catalogCode: 'real_case'
+ catalogCode
}).then(res => {
if(res.data && res.data.length > 0){
this.setData({
@@ -41,11 +41,13 @@
})
},
getList() {
- const { sortType, search, tagCodes, pageNum, pageSize } = this.data
+ const { sortType, query, tagCodes, pageNum, pageSize,catalogCode } = this.data
getZhongTaiWholecasePage({
- catalogCode: 'whole_case',tagCodes,pageNum,pageSize, sortType,search
+ catalogCode,pageNum,pageSize,tagCodes, sortType,query
}).then(res => {
- this.setData({ dataList: res.data.records })
+ if(res.data){
+ this.setData({ dataList: res.data.records })
+ }
})
},
statusChange(e) {
@@ -64,8 +66,9 @@
})
},
handleDetail(e) {
+ const id = e.currentTarget.dataset.id
wx.navigateTo({
- url: '/pages/detailDis/case',
+ url: '/pages/detailDis/case?id=' + id,
})
},
tagClick(e) {
--
Gitblit v1.9.3