litian
2024-09-30 e5f45ec9c2eabaa3e4241caad2d49c3629eaf0c8
packageDomain/pages/resourceDetails/document/index.js
@@ -166,6 +166,9 @@
  },
  resourceDetailsData() {
    wx.showLoading({
      title: '正在加载...',
    });
    let query = {
      path: '*',
      queryType: '*',
@@ -283,23 +286,26 @@
  //刚进来的时候调用
  handleTeachData(item) {
    //图片
    if (item.selectType == 'picture') {
      this.setData({
        showData: item.file ? app.config.requestCtx + '/file/api/ApiDownload?md5=' + item.file : app.config.requestCtx + '/file/api/ApiDownload?md5=' + item.freeFile,
      })
      console.log(this.data.showData, 'showData');
      wx.hideLoading();
    }
    // 下载文件zip
    if (item.selectType == 'zip') {
      this.setData({
        zipData: item
      })
      wx.hideLoading();
    }
    //网页
    if (item.selectType == 'webpage') {
      this.setData({
        webpageSrc: item.jsek_link
      })
      wx.hideLoading();
    }
    //文档等
    if (item.selectType == 'pdf' || item.selectType == 'document') {
@@ -316,9 +322,10 @@
        this.setData({
          naturalResources
        })
        console.log('ppt', this.data.naturalResources);
        wx.hideLoading();
      })
    }
  },
  handleTap: function () {