wx.openDocument打不开文件怎么办?
[代码]exportRemXsl(e){[代码][代码] [代码][代码]let header = {[代码][代码] [代码][代码]cookie:[代码][代码]this[代码][代码].common.data.cookie,[代码][代码] [代码][代码]// 'content-type': "application/download"[代码][代码] [代码][代码]}[代码][代码] [代码][代码]wx.downloadFile({[代码][代码] [代码][代码]url: app.globalData.serverUrl + [代码][代码]'common/exportRemXls?remId='[代码] [代码]+ e.target.dataset.id,[代码][代码] [代码][代码]header:header,[代码][代码] [代码][代码]success: [代码][代码]function[代码] [代码](res) {[代码][代码] [代码][代码]let filePath = res.tempFilePath;[代码][代码] [代码][代码]console.log(res)[代码][代码] [代码][代码]wx.openDocument({[代码][代码] [代码][代码]fileType:[代码][代码]'xls'[代码][代码],[代码][代码] [代码][代码]filePath: filePath,[代码][代码] [代码][代码]success: [代码][代码]function[代码] [代码](res) {[代码][代码] [代码][代码]console.log([代码][代码]'打开文档成功'[代码][代码])[代码][代码] [代码][代码]},[代码][代码] [代码][代码]fail: [代码][代码]function[代码] [代码]() {[代码][代码] [代码][代码]console.log([代码][代码]'失败'[代码][代码], res)[代码][代码] [代码][代码]}[代码][代码] [代码][代码]})[代码][代码] [代码][代码]}[代码][代码] [代码][代码]})[代码][代码] [代码][代码]},[代码][图片] 后端java用HSSFWorkbook 生成的,安卓手机魅族16x ,微信是最新版本