litian
2024-09-12 bbba5d26e9e26c910ed337dcb65f462752ee6dce
pages/home/home.js
@@ -463,9 +463,11 @@
    //   icon: 'none',
    //   duration: 1000
    // })
    const {
      book
    } = e.currentTarget.dataset;
    console.log(book);
    wx.navigateTo({
      url: '/pages/digitalCourses/digitalCoursesDetails/index?id=' + book.id + '&path=' + book.idPath,
    });
@@ -641,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);
      }
    }
  },
@@ -680,4 +686,10 @@
  },
  /**
   * 用户点击右上角分享
   */
  onShareAppMessage() {},
  onShareTimeline() {}
});