load: function () {
this.setData({
loadingHidden: false
})
let _that = this;
wx.downloadFile({
url: 'https://xxxxxx/xxx/exportInvoiceInfo?sessionKey='+app.globalData.sessionKey+'¤tTime='+new Date().getTime(),
success: function (res) {
var filePath = res.tempFilePath;
console.log(res)
//页面显示加载动画
wx.openDocument({
filePath: filePath,
success: function (res) {
_that.setData({
loadingHidden: true
})
console.log('打开文档成功')
}
})
}
})
}
你好,在其他的浏览器可以正常打开吗?麻烦提供可以复现的链接看看。