yiming
2024-06-04 1fa826006ce5458722eb68bdbd814b08bd6baad3
pages/retrievalPage/index.js
@@ -38,7 +38,8 @@
      page: 1,
      total: 0,
    },
    tabValue: '0'
    tabValue: '0',
    tabPanelstyle: 'display:flex;justify-content:center;align-items:center;',
  },
  /**
@@ -554,6 +555,7 @@
   * 页面上拉触底事件的处理函数
   */
  onReachBottom(e) {
    console.log(this.data.tabValue);
    if (this.data.tabValue == 0) {
      console.log(0);
      if (this.data.bookData.length < this.data.bookTotal) {
@@ -867,4 +869,10 @@
      }
    }
  },
  onTabsClick(event) {
    console.log(`Click tab, tab-panel value is ${event.detail.value}.`);
  },
  tabClick() {
    console.log(2323);
  }
})