From dd9ca4df1e2a72707de5ae4e57e081d89db01a36 Mon Sep 17 00:00:00 2001 From: QYF-GitLab1 <1940665526@qq.com> Date: 星期二, 31 十二月 2024 15:09:06 +0800 Subject: [PATCH] 批量操作 --- packagePersonal/pages/myCollection/index.js | 15 ++++++++++++++- 1 files changed, 14 insertions(+), 1 deletions(-) diff --git a/packagePersonal/pages/myCollection/index.js b/packagePersonal/pages/myCollection/index.js index 3c4adf6..ad65241 100644 --- a/packagePersonal/pages/myCollection/index.js +++ b/packagePersonal/pages/myCollection/index.js @@ -16,6 +16,11 @@ label: '璇剧▼', key: 1, linkType: 'Favoriteclass', + }, + { + label: '鏁板瓧鏁欐潗', + key: 2, + linkType: 'FavoriteTextBooks', } ], list: [], @@ -179,8 +184,16 @@ const { book } = e.currentTarget.dataset; + let url = '' + if (this.data.activeName == 'FavoriteBookCity') { + url = `/packageBookService/pages/bookServices/detail/index?id=${book.id}&name=${book.name}` + } else if (this.data.activeName == 'Favoriteclass') { + url = `/pages/digitalCourses/digitalCoursesDetails/index?id=${book.id}` + } else if (this.data.activeName == 'FavoriteTextBooks') { + url = `/pages/digitalTextbooks/digitalTextbooksDetails/index?id=${book.id}` + } wx.navigateTo({ - url: `/packageBookService/pages/bookServices/detail/index?id=${book.id}&name=${book.name}`, + url: url, }); }, -- Gitblit v1.9.1