litian
2024-04-08 e6a156a6a8bb6f1d3a17e9310269f53c56e10b42
packagePersonal/pages/sampleBooks/index.js
@@ -9,8 +9,7 @@
    active: 0,
    topicIdOrRefCode: "applyEntityBook",
    active1: 0,
    tabList: [
      {
    tabList: [{
        label: '全部',
        value: 'all',
      },
@@ -51,7 +50,6 @@
        active: options.tabActive,
        active1: options.stateTab
      })
      console.log(this.data.active)
      if (this.data.active == '1') {
        this.setData({
          topicIdOrRefCode: 'applyBook',
@@ -95,7 +93,10 @@
    that.setData({
      skeletonLoding: true,
      active1: item.detail.value,
      queryFilter: info.value == 'all' ? [] : [{ field: 'State', value: info.value }],
      queryFilter: info.value == 'all' ? [] : [{
        field: 'State',
        value: info.value
      }],
      list: [],
      page: 1,
      bottomLoading: false,
@@ -142,6 +143,8 @@
          })
        } else {
          this.setData({
            list: [],
            pageTotalCount: 0,
            skeletonLoding: false,
            loading: false
          })
@@ -152,6 +155,15 @@
    })
  },
  goBookDetails(e) {
    const {
      book
    } = e.currentTarget.dataset;
    wx.navigateTo({
      url: `/packageBookService/pages/bookServices/detail/index?id=${book.id}&name=${book.title}`,
    });
  },
  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */