uni.downloadFile({
url: 'https://ehcumh.oss-cn-hongkong.aliyuncs.com/met/logo2.png',
success: (res) => {
console.log(res.tempFilePath)
if (res.statusCode === 200) {
uni.share({
"provider": "sinaweibo",
"type": 0,
"summary": "标题",
"imageUrl":res.tempFilePath,
"href": "https://uniapp.dcloud.io",
success: function (res) {
console.log("success:" + JSON.stringify(res));
},
fail: function (err) {
console.log("fail:" + JSON.stringify(err));
}
})
}
}
});
uniapp 分享到微博
最新推荐文章于 2024-09-25 18:15:20 发布