litian
2024-03-29 437634b6c3f4fb1fd05a64f62feb0d8501e0360d
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() {