wx.showShareImageMenu分享图不能用本地的吗?我换本地图片点击没有分享图片弹窗?

小程序 文章 2021-12-13 15:00 1761 0 全屏看文

AI助手支持GPT4.0

wx.showShareImageMenu分享图不能用本地的吗?我换本地图片点击没有分享图片弹窗?Can't share images with wx.showShareImageMenu be used locally? I change the local picture and click the pop-up window without sharing the picture?

wx.showShareImageMenu分享图不能用本地的吗?我换本地图片点击没有分享图片弹窗?

 wx.downloadFile({

      url: this.data.imgurl,// 这里使用的是网络资源的图片

      success: (res=> {

          console.log("res:", res);

          wx.showShareImageMenu({

              path: res.tempFilePath

          })

      },


wx. downloadFile({ url: this.data.imgurl,// [UNK][UNK]使[UNK][UNK][UNK]络资源[UNK]图片success: (res) => { console.log("res:", res); wx.showShareImageMenu({ path: res.tempFilePath }) },

回答:

小勇童学🍊:

用网络资源的图片是没有问题的 换本地的就不行了

纸玫瑰:

本地图片是不是也download了 ? 本地图片直接wx.showShareImageMenu就行

Mr.Zhao:

小勇童学🍊:是不是用本地图片就不能用  wx.downloadFile
Mr.Zhao:是的
小勇童学🍊:网络图片 才需要用 wx.downloadFile这个对吧  我懂了  感谢赵老师
帕提曼:考吗抵扣钱我给你打电话问问
小勇童学🍊:啥意思???

-EOF-

AI助手支持GPT4.0