From aff8d054df4a638f399dc8f15d98c19b9c9aa785 Mon Sep 17 00:00:00 2001
From: litian <C21AF165>
Date: 星期二, 29 四月 2025 10:11:25 +0800
Subject: [PATCH] 扫码视频播放

---
 pages/study/index.js |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/pages/study/index.js b/pages/study/index.js
index 0fc70a6..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,6 +245,7 @@
     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}`,
@@ -248,7 +253,7 @@
     }
     if (this.data.active == 1) {
       wx.navigateTo({
-        url: `/pages/digitalCourses/digitalCoursesDetails/index?id=${book.product.id}`,
+        url: `/pages/digitalCourses/digitalCoursesDetails/index?id=${book.product.id}&path=${book.product.linkPathList[1] + '\\' + book.product.id}`,
       });
     }
     if (this.data.active == 2) {

--
Gitblit v1.9.1