YM
2024-03-26 1c64c10f8dd88018c0d30de79237f3128173f118
pages/retrievalPage/index.js
@@ -41,7 +41,6 @@
    const menu = wx.getMenuButtonBoundingClientRect(); // 胶囊信息
    const navBarHeight = (menu.top - systInfo.statusBarHeight) * 2 + menu.height; // 导航栏高度
    this.setData({
      navBarHeight: navBarHeight,
      barHeight: systInfo.statusBarHeight,
      searchVal: options.searchVal
@@ -123,11 +122,17 @@
  //标签的切换
  onTabsChange(event) {
    const value = event.detail.value
    // if (this.data.bookData <= 0 || this.data.courseData <= 0 || this.data.digitalTextbooksData <= 0 || this.data.seminarData <= 0 || this.data.biblioClassificationData <= 0 || this.data.bookFairData <= 0) {
    //   this.setData({
    //     isMore: true
    //   })
    // }
    if (value === '0') {
      this.setData({
        tabValue: value,
        isMore: false
      })
    } else if (value === '1') {
      console.log(value, 'tab');
      this.setData({
@@ -419,7 +424,7 @@
      method: 'post',
      data: body
    }).then((resp) => {
      // console.log(resp);
      console.log(resp, 'resp');
      //图书       0
      const data1 = resp[0]
@@ -492,6 +497,9 @@
    })
    wx.stopPullDownRefresh()
  },
  bibliographyGet() {
@@ -533,6 +541,7 @@
      })
    })
    wx.stopPullDownRefresh()
  },
  downloadData(event) {
    console.log(111);
@@ -585,10 +594,7 @@
      url: '/pages/bookExhibitionDetails/index?id=' + item.id + '&bookName=' + item.name // 假设跳转到详情页面,并传递了id参数
    });
  },
  //触底函数
  onReachBottom() {
    console.log("上拉加载....");
  },
  //上拉函数
  onPullDownRefresh() {
    console.log("下拉刷新...");
@@ -717,5 +723,22 @@
  },
  // 下拉函数
  onPullDownRefresh() {
    if (this.data.tabValue == 4) {
      this.setData({
        "pageCount.page": 1
      })
      this.bibliographyGet()
    } else {
      this.setData({
        "pageCount.page": 1
      })
      this.retrievalPageGet()
    }
  },
})