From f058f6f1b35f413000ea81d7df92b4bd021c6b6f Mon Sep 17 00:00:00 2001
From: QYF-GitLab1 <1940665526@qq.com>
Date: 星期二, 08 七月 2025 16:24:00 +0800
Subject: [PATCH] 销售方式跳转、扫码、Isbn弹框、出版日期

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

diff --git a/pages/study/index.js b/pages/study/index.js
index 3346031..fcd584b 100644
--- a/pages/study/index.js
+++ b/pages/study/index.js
@@ -64,6 +64,10 @@
           this.getStaticsSum();
           this.getDataList(false);
           this.getListCount()
+        } else {
+          wx.switchTab({
+            url: '/pages/home/home',
+          })
         }
       })
     } else {
@@ -241,9 +245,23 @@
     const {
       book
     } = e.currentTarget.dataset;
-    wx.navigateTo({
-      url: `/packageBookService/pages/bookServices/detail/index?id=${book.product.id}&name=${book.product.name}`,
-    });
+    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}&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