From 50bdb66e0539abd94880f331549c0cef81065caa Mon Sep 17 00:00:00 2001
From: litian <C21AF165>
Date: 星期五, 06 九月 2024 14:33:31 +0800
Subject: [PATCH] login

---
 pages/study/index.js |   19 ++++++++++++++++---
 1 files changed, 16 insertions(+), 3 deletions(-)

diff --git a/pages/study/index.js b/pages/study/index.js
index 3346031..943c756 100644
--- a/pages/study/index.js
+++ b/pages/study/index.js
@@ -241,9 +241,22 @@
     const {
       book
     } = e.currentTarget.dataset;
-    wx.navigateTo({
-      url: `/packageBookService/pages/bookServices/detail/index?id=${book.product.id}&name=${book.product.name}`,
-    });
+    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 == 2) {
+      wx.navigateTo({
+        url: `/pages/digitalTextbooks/digitalTextbooksDetails/index?id=${book.product.id}`,
+      });
+    }
+
   },
   /**
    * 椤甸潰鐩稿叧浜嬩欢澶勭悊鍑芥暟--鐩戝惉鐢ㄦ埛涓嬫媺鍔ㄤ綔

--
Gitblit v1.9.1