<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, '打开文档成功')
          }
        })
      }
    })
  },

  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
  • 2021-11-17
  • 2021-12-09
  • 2022-02-12
  • 2021-07-08
猜你喜欢
  • 2021-12-23
  • 2021-12-09
  • 2022-01-28
  • 2022-12-23
  • 2022-02-14
  • 2021-05-31
  • 2021-06-15
相关资源
相似解决方案