From 437634b6c3f4fb1fd05a64f62feb0d8501e0360d Mon Sep 17 00:00:00 2001
From: litian <C21AF165>
Date: 星期五, 29 三月 2024 16:03:20 +0800
Subject: [PATCH] yangshi

---
 pages/home/home.js |   36 +++++++++++++++++++++++++++---------
 1 files changed, 27 insertions(+), 9 deletions(-)

diff --git a/pages/home/home.js b/pages/home/home.js
index add28de..5122f72 100644
--- a/pages/home/home.js
+++ b/pages/home/home.js
@@ -16,7 +16,7 @@
     tabList: [], //鐩綍
     current: 1, //杞挱鍥惧弬鏁�
     autoplay: true, //杞挱鍥惧弬鏁�
-    duration: '500', //杞挱鍥惧弬鏁�
+    duration: '500', //杞挱鍥惧弬鏁� 
     interval: 5000, //杞挱鍥惧弬鏁�
     navigation: {
       type: 'dots'
@@ -303,8 +303,8 @@
   //鏁板瓧闃呰
   getReadBookList() {
     const obj = {
-      storeInfo: app.config.digitalTextbooks,
-      path: 'jsek_homepageDigitalTextbooks',
+      storeInfo: app.config.digitalRead,
+      path: 'jsek_homepageDigitalReading',
       coverSize: {
         width: 150
       },
@@ -412,11 +412,9 @@
     const {
       book
     } = e.currentTarget.dataset;
-    wx.showToast({
-      title: "寤鸿涓�",
-      icon: 'none',
-      duration: 1000
-    })
+    wx.navigateTo({
+      url: '/pages/home/digitalRead/index?productId=' + book.id,
+    });
   },
   goTextBookDetail(e) {
     const {
@@ -505,6 +503,10 @@
       wx.navigateTo({
         url: '/packageBookService/pages/bookServices/list/index?assorName=' + this.data.bookTypeData.name
       })
+    } else if (type == "shuziyuedu") {
+      wx.navigateTo({
+        url: '/pages/home/digitalRead/index'
+      })
     } else {
       wx.showToast({
         title: "寤鸿涓�",
@@ -518,8 +520,24 @@
 
   // 鐩戝惉婊氬姩鏉�
   onScroll(e) {
+    console.log(e)
     this.setData({
-      isWhite: e.detail.scrollTop > 10 ? true : false
+      isWhite: true
+    })
+    if (e.detail.scrollTop == 0) {
+      this.setData({
+        isWhite: false
+      })
+    }
+    // this.setData({
+    //   isWhite: e.detail.scrollTop > 20 ? true : false
+    // })
+  },
+
+  onScrollToTop(e) {
+
+    this.setData({
+      isWhite: e.detail.scrollTop > 50 ? true : false
     })
   },
   onRetrievalPage() {

--
Gitblit v1.9.1