From 80921e1122d8dcf8d0080015b00b8df5cadb90e6 Mon Sep 17 00:00:00 2001
From: litian <C21AF165>
Date: 星期五, 06 九月 2024 11:47:50 +0800
Subject: [PATCH] study

---
 pages/study/index.js |   53 +++++++++++++++++++++++++++++++++--------------------
 1 files changed, 33 insertions(+), 20 deletions(-)

diff --git a/pages/study/index.js b/pages/study/index.js
index 3346031..45af0a6 100644
--- a/pages/study/index.js
+++ b/pages/study/index.js
@@ -132,23 +132,23 @@
         titleBook: "鍥句功锛�" + res.totalSize + "鏈級",
       })
     })
-    let data1 = {
-      Size: 9999,
-      Start: 0,
-      sort: {
-        type: "Desc",
-        field: "CreateDate",
-      },
-      searchList: [{
-        keywords: 'jsek_digitalCourses',
-        field: "ProductType",
-      }],
-    }
-    app.MG.store.getPurchasedProductList(data1).then((res) => {
-      that.setData({
-        titleCourse: "璇剧▼锛�" + res.totalSize + "闂級",
-      })
-    })
+    // let data1 = {
+    //   Size: 9999,
+    //   Start: 0,
+    //   sort: {
+    //     type: "Desc",
+    //     field: "CreateDate",
+    //   },
+    //   searchList: [{
+    //     keywords: 'jsek_digitalCourses',
+    //     field: "ProductType",
+    //   }],
+    // }
+    // app.MG.store.getPurchasedProductList(data1).then((res) => {
+    //   that.setData({
+    //     titleCourse: "璇剧▼锛�" + res.totalSize + "闂級",
+    //   })
+    // })
     let data2 = {
       Size: 9999,
       Start: 0,
@@ -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: `/packageBookService/pages/bookServices/detail/index?id=${book.product.id}&name=${book.product.name}`,
+      // });
+    }
+    if (this.data.active == 2) {
+      wx.navigateTo({
+        url: `/pages/digitalTextbooks/digitalTextbooksDetails/index?id=${book.product.id}`,
+      });
+    }
+
   },
   /**
    * 椤甸潰鐩稿叧浜嬩欢澶勭悊鍑芥暟--鐩戝惉鐢ㄦ埛涓嬫媺鍔ㄤ綔

--
Gitblit v1.9.1