From a9877004f436bb9f53173c1692de345726e0e521 Mon Sep 17 00:00:00 2001
From: zhongshujie <2862698242@qq.com>
Date: 星期五, 20 十二月 2024 17:52:52 +0800
Subject: [PATCH] 优化(题干加东西)

---
 packagePersonal/pages/myCollection/index.js |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/packagePersonal/pages/myCollection/index.js b/packagePersonal/pages/myCollection/index.js
index d47e1ac..ad65241 100644
--- a/packagePersonal/pages/myCollection/index.js
+++ b/packagePersonal/pages/myCollection/index.js
@@ -184,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