闫增涛
2024-03-28 b6923adb7b6a5fcbe4a2eaa06e1ebe0e044ba0e2
pages/bibliographyList/index.js
@@ -7,6 +7,7 @@
     * 页面的初始数据
     */
    data: {
      downloadLoadin: false,
      isMore: null,
      higherList: [],
      vocationalList: [],
@@ -18,7 +19,8 @@
      BarHeight: '',
      navBarHeight: '',
      start: 1,
      tabValue: ''
      tabValue: '',
      keyword: ''
    },
    /**
@@ -105,17 +107,20 @@
      if (value === '0') {
        console.log(value);
        this.setData({
          tabValue: value
          tabValue: value,
          isMore: false
        })
      } else if (value === '1') {
        console.log(value);
        this.setData({
          tabValue: value
          tabValue: value,
          isMore: false
        })
      } else if (value === '2') {
        console.log(value);
        this.setData({
          tabValue: value
          tabValue: value,
          isMore: false
        })
      }
    },
@@ -123,6 +128,7 @@
    //高等教育
    higherGet(keyword) {
      console.log(keyword, 'keyword');
      let searchObj = {
        'Name*': keyword,
        '||author*': keyword,
@@ -248,6 +254,9 @@
    },
    downloadData(event) {
      this.setData({
        downloadLoadin: true
      })
      console.log(111);
      const item = event.currentTarget.dataset.item;
      // console.log(item.datas.freeFile.Value);
@@ -277,6 +286,13 @@
          console.log('下载文件失败', res);
        }
      });
      setTimeout(() => {
        this.setData({
          downloadLoadin: false
        });
      }, 2000);
    },
    onSearchSubmit: function (e) {
      const keyword = e.detail.value;
@@ -285,6 +301,7 @@
      this.higherGet(keyword)
      this.vocationalGet(keyword)
      this.teacherGet(keyword)
    },
@@ -357,15 +374,21 @@
    },
    onPullDownRefresh() {
      let keyword = this.data.value
      this.setData({
        start: 1
        start: 1,
      })
      this.vocationalGet()
      this.higherGet()
      this.teacherGet()
      this.higherGet(keyword)
      this.vocationalGet(keyword)
      this.teacherGet(keyword)
    },