收藏
回答

canvas 下载图片失败?

url = https://static-s1.haoyayee.com/project/202003/43b593841bb743e2a27c94a912d3aa51.jpg

//临时图片路径
getTempFile: function (url) {
  wx.showLoading({});
  let that = this;
  wx.downloadFile({
    url: url,
    success: function (res) {
      console.log("url===>", url)
      console.log("res===>", res)
      console.log("res.tempFilePath===>", res.tempFilePath)

      that.goodsInfoImg=res.tempFilePath

      //继续生成商品的小程序码
      that.downloadSkuQrCode(that.qrCode);
    },
    fail: function (err) { }
  });
},
发布之后 渲染不出来 一直在加载中


回答关注问题邀请回答
收藏
登录 后发表内容
问题标签