From 558845242a07b68f42fa1802c45ab2769395d8b8 Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期一, 29 四月 2024 14:31:30 +0800 Subject: [PATCH] 合并代码 --- packagePersonal/pages/sampleBooks/index.js | 19 +++++++++++++++---- 1 files changed, 15 insertions(+), 4 deletions(-) diff --git a/packagePersonal/pages/sampleBooks/index.js b/packagePersonal/pages/sampleBooks/index.js index 0fd34e4..08b89f3 100644 --- a/packagePersonal/pages/sampleBooks/index.js +++ b/packagePersonal/pages/sampleBooks/index.js @@ -9,8 +9,7 @@ active: 0, topicIdOrRefCode: "applyEntityBook", active1: 0, - tabList: [ - { + tabList: [{ label: '鍏ㄩ儴', value: 'all', }, @@ -51,7 +50,6 @@ active: options.tabActive, active1: options.stateTab }) - console.log(this.data.active) if (this.data.active == '1') { this.setData({ topicIdOrRefCode: 'applyBook', @@ -95,7 +93,10 @@ that.setData({ skeletonLoding: true, active1: item.detail.value, - queryFilter: info.value == 'all' ? [] : [{ field: 'State', value: info.value }], + queryFilter: info.value == 'all' ? [] : [{ + field: 'State', + value: info.value + }], list: [], page: 1, bottomLoading: false, @@ -116,6 +117,7 @@ field: 'CreateDate' } }).then((res) => { + console.log(res.datas); try { if (res.datas.length > 0) { res.datas.forEach((item) => { @@ -152,6 +154,15 @@ }) }, + goBookDetails(e) { + const { + book + } = e.currentTarget.dataset; + wx.navigateTo({ + url: `/packageBookService/pages/bookServices/detail/index?id=${book.id}&name=${book.title}`, + }); + }, + /** * 椤甸潰鐩稿叧浜嬩欢澶勭悊鍑芥暟--鐩戝惉鐢ㄦ埛涓嬫媺鍔ㄤ綔 */ -- Gitblit v1.9.1