闫增涛
2024-05-07 4a9955330070cf8abd78d95aaa2067d9a06a88c3
pages/retrievalPage/index.js
@@ -125,7 +125,6 @@
    this.bibliographyGet()
  },
  //标签的切换
  onTabsChange(event) {
    const value = event.detail.value
@@ -219,8 +218,6 @@
      ...searchObj,
      ...fields
    }
    let courseObj = {}
    if (this.data.searchVal) {
      courseObj = {
@@ -229,7 +226,6 @@
        '||isbn*': this.data.searchVal.trim(),
        '||seriesName*': this.data.searchVal.trim()
      }
    }
    //课程
    let queryCourse = {
@@ -412,7 +408,6 @@
      data: body
    }).then((resp) => {
      console.log(resp, 'resp');
      //图书       0
      const data1 = resp[0]
      const datas1 = handleQueryResourceListData({
@@ -422,12 +417,7 @@
      this.setData({
        bookData: datas1,
        bookTotal: data1.totalCount,
      })
      //数字课程    1
      const data2 = resp[1]
      const datas2 = handleQueryResourceListData({
@@ -438,9 +428,6 @@
        courseData: datas2,
        courseTotal: data2.totalCount
      })
      // 数字教材    2
      const data3 = resp[2]
      const datas3 = handleQueryResourceListData({
@@ -451,15 +438,12 @@
        digitalTextbooksData: datas3,
        digitalTextbooksTotal: data3.totalCount
      })
      // 专题研讨   3
      const data4 = resp[3]
      const datas4 = handleQueryResourceListData({
        datas: data4.datas,
        fields
      })
      this.setData({
        seminarData: datas4,
        seminarTotal: data4.totalCount
@@ -470,7 +454,6 @@
        datas: data5.datas,
        fields
      })
      datas5.forEach((items) => {
        items.subtitleName = items.subtitle + items.name
      })
@@ -479,18 +462,12 @@
        biblioClassificationData: datas5,
        biblioClassificationTotal: data5.totalCount
      })
      this.setData({
        loading: false,
        hidden: false,
      })
    })
    wx.stopPullDownRefresh()
  },
  bibliographyGet() {
    let bibliographyObj = {}
@@ -534,9 +511,7 @@
    wx.stopPullDownRefresh()
  },
  downloadData(event) {
    console.log(111);
    const item = event.currentTarget.dataset.item;
    // console.log(item.datas.freeFile.Value);
    const URL = app.config.requestCtx + '/file/api/ApiDownload?md5=' + item.datas.freeFile.Value
    item.determine = false
    console.log(URL, 'URL');