From 606018855ad2d5ad55f527b76e9652fdb58ed982 Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期一, 09 九月 2024 19:50:05 +0800
Subject: [PATCH] bug

---
 pages/home/home.js |   38 ++++++++++++++++++++++++++++++++------
 1 files changed, 32 insertions(+), 6 deletions(-)

diff --git a/pages/home/home.js b/pages/home/home.js
index b6977fe..3f7f267 100644
--- a/pages/home/home.js
+++ b/pages/home/home.js
@@ -248,9 +248,9 @@
     const obj = {
       storeInfo: "app.config.goodsStore",
       path: item.pathList + '\\' + item.id,
-      coverSize: {
-        width: 260
-      },
+      // coverSize: {
+      //   height: 205
+      // },
       paging: {
         start: 0,
         size: 4
@@ -446,6 +446,11 @@
     });
   },
   goSubjectDetail(e) {
+    // return wx.showToast({
+    //   title: "寤鸿涓�",
+    //   icon: 'none',
+    //   duration: 1000
+    // })
     const item = e.currentTarget.dataset.book
     console.log(item);
     wx.navigateTo({
@@ -453,11 +458,18 @@
     });
   },
   goCourseDetail(e) {
+    // return wx.showToast({
+    //   title: "寤鸿涓�",
+    //   icon: 'none',
+    //   duration: 1000
+    // })
+
     const {
       book
     } = e.currentTarget.dataset;
+    console.log(book);
     wx.navigateTo({
-      url: '/pages/digitalCourses/digitalCoursesDetails/index?id=' + book.id,
+      url: '/pages/digitalCourses/digitalCoursesDetails/index?id=' + book.id + '&path=' + book.idPath,
     });
   },
   goReadBookDetail(e) {
@@ -577,11 +589,21 @@
         url: '/pages/home/digitalRead/index'
       })
     } else if (type == "zhuantitaolun") {
+      // return wx.showToast({
+      //   title: "寤鸿涓�",
+      //   icon: 'none',
+      //   duration: 1000
+      // })
       wx.navigateTo({
         url: '/pages/specialDiscussion/index'
       })
 
     } else if (type == "jingxuankecheng") {
+      // return wx.showToast({
+      //   title: "寤鸿涓�",
+      //   icon: 'none',
+      //   duration: 1000
+      // })
       wx.navigateTo({
         url: '/pages/digitalCourses/index?courseTypeActive=' + this.data.courseTypeActive
       })
@@ -621,12 +643,16 @@
     if (this.data.scoll) {
       if (e.detail.scrollTop < 20) {
         this.data.scoll = false
-        this.isChange(false);
+        // 閬垮厤棰戠箒璋冪敤 setData
+        if (this.data.isWhite)
+          this.isChange(false);
       }
     } else {
       if (e.detail.scrollTop > 20) {
         this.data.scoll = true
-        this.isChange(true);
+        // 閬垮厤棰戠箒璋冪敤 setData
+        if (!this.data.isWhite)
+          this.isChange(true);
       }
     }
   },

--
Gitblit v1.9.1