From dc934dfd63fecff84d0bf996418e041b9bd4ea59 Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期二, 30 四月 2024 18:16:13 +0800 Subject: [PATCH] bug修改 --- packagePersonal/pages/myCollection/index.js | 13 ++++++++----- 1 files changed, 8 insertions(+), 5 deletions(-) diff --git a/packagePersonal/pages/myCollection/index.js b/packagePersonal/pages/myCollection/index.js index 11f17f1..3c4adf6 100644 --- a/packagePersonal/pages/myCollection/index.js +++ b/packagePersonal/pages/myCollection/index.js @@ -7,8 +7,7 @@ data: { active: 0, activeName: "FavoriteBookCity", - tabList: [ - { + tabList: [{ label: '鍥句功', key: 0, linkType: 'FavoriteBookCity', @@ -36,10 +35,11 @@ * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍔犺浇 */ onLoad(options) { - console.log(options); + // this.getDataList(false); + }, + onShow() { this.getDataList(false); }, - /** * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍒濇娓叉煋瀹屾垚 */ @@ -91,6 +91,7 @@ }) } else { this.setData({ + list: [], skeletonLoding: false, loading: false }) @@ -175,7 +176,9 @@ }) }, goBookDetails(e) { - const { book } = e.currentTarget.dataset; + const { + book + } = e.currentTarget.dataset; wx.navigateTo({ url: `/packageBookService/pages/bookServices/detail/index?id=${book.id}&name=${book.name}`, }); -- Gitblit v1.9.1