微信小程序官方文檔-分享圖片wx.showShareImageMenu
wx.showShareImageMenu功能描述
打開分享圖片彈窗语淘,可以將圖片發(fā)送給朋友朵栖、收藏或下載
注 :要分享的圖片地址岗钩,必須為本地路徑或臨時路徑
使用示例:
wx.downloadFile({
url: 'https://img0.baidu.com/it/u=3021883569,1259262591&fm=253&fmt=auto&app=120&f=JPEG?w=1140&h=641',
success: (res) => {
wx.showShareImageMenu({
path: res.tempFilePath
})
}
})
展示效果:
image.png