| | |
| | | }, |
| | | |
| | | resourceDetailsData() { |
| | | wx.showLoading({ |
| | | title: '正在加载...', |
| | | }); |
| | | let query = { |
| | | path: '*', |
| | | queryType: '*', |
| | |
| | | //刚进来的时候调用 |
| | | 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') { |
| | |
| | | this.setData({ |
| | | naturalResources |
| | | }) |
| | | console.log('ppt', this.data.naturalResources); |
| | | wx.hideLoading(); |
| | | }) |
| | | } |
| | | |
| | | }, |
| | | |
| | | handleTap: function () { |