<view class=‘btn pay_now‘ style="border-radius:12rpx;" bindtap="saveImageToPhotosAlbum"> 导出Excel </view>
saveImageToPhotosAlbum() { wx.downloadFile({ url: `https://bcw.ishare-go.com/wapapi/upload/getUserOrderDetail?order_id=${this.data.order_id}`, success: function (res) { console.log(res, ‘1‘) const filePath = res.tempFilePath wx.openDocument({ filePath: filePath, success: function (res) { console.log(res, ‘打开文档成功‘) } }) } }) },