闫增涛
2024-04-29 558845242a07b68f42fa1802c45ab2769395d8b8
packagePersonal/pages/sampleBooks/index.js
@@ -9,8 +9,7 @@
    active: 0,
    topicIdOrRefCode: "applyEntityBook",
    active1: 0,
    tabList: [
      {
    tabList: [{
        label: '全部',
        value: 'all',
      },
@@ -94,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,
@@ -115,6 +117,7 @@
        field: 'CreateDate'
      }
    }).then((res) => {
      console.log(res.datas);
      try {
        if (res.datas.length > 0) {
          res.datas.forEach((item) => {
@@ -151,6 +154,15 @@
    })
  },
  goBookDetails(e) {
    const {
      book
    } = e.currentTarget.dataset;
    wx.navigateTo({
      url: `/packageBookService/pages/bookServices/detail/index?id=${book.id}&name=${book.title}`,
    });
  },
  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */