From 2ee8ddb1ecac7df4198e54e08ec7f22daf4b07c0 Mon Sep 17 00:00:00 2001 From: QYF-GitLab1 <1940665526@qq.com> Date: 星期五, 03 一月 2025 16:57:38 +0800 Subject: [PATCH] 111 --- pages/study/index.js | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/pages/study/index.js b/pages/study/index.js index 943c756..a925f80 100644 --- a/pages/study/index.js +++ b/pages/study/index.js @@ -241,16 +241,17 @@ const { book } = e.currentTarget.dataset; + console.log(book); if (this.data.active == 0) { wx.navigateTo({ url: `/packageBookService/pages/bookServices/detail/index?id=${book.product.id}&name=${book.product.name}`, }); } - // if (this.data.active == 1) { - // wx.navigateTo({ - // url: `/pages/digitalCourses/digitalCoursesDetails/index?id=${book.product.id}`, - // }); - // } + if (this.data.active == 1) { + wx.navigateTo({ + url: `/pages/digitalCourses/digitalCoursesDetails/index?id=${book.product.id}&path=${book.product.linkPathList[1] + '\\' + book.product.id}`, + }); + } if (this.data.active == 2) { wx.navigateTo({ url: `/pages/digitalTextbooks/digitalTextbooksDetails/index?id=${book.product.id}`, -- Gitblit v1.9.1