wx.downloadFile({
url: this.data.imgurl,// 这里使用的是网络资源的图片
success: (res) => {
console.log("res:", res);
wx.showShareImageMenu({
path: res.tempFilePath
})
},
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就行
用网络资源的图片是没有问题的 换本地的就不行了