| | |
| | | break; |
| | | case "2": |
| | | //智能在线咨询 |
| | | url = "" |
| | | return; |
| | | url = "/pages/module_consult/consulthome/consulthome" |
| | | break; |
| | | case "3": |
| | | //在线守法学习 |
| | | |
| | |
| | | // url = "/pages/text/text" |
| | | let bodyUrl = e.currentTarget.dataset.url |
| | | let fileType = e.currentTarget.dataset.filetype |
| | | wx.showLoading({ |
| | | title: ' 文件下载中', |
| | | mask: true, |
| | | }) |
| | | wx.downloadFile({ |
| | | // 示例 url,并非真实存在 |
| | | url: bodyUrl, |
| | | success: function (res) { |
| | | wx.hideLoading() |
| | | const filePath = res.tempFilePath |
| | | var t = filePath.split('.')[filePath.split('.').length - 1] |
| | | wx.openDocument({ |
| | | filePath: filePath, |
| | | success: function (res) { |