图片链接是没有后缀名https://api.aalives.com/invite/show_posters?user_id=19&posters_id=17
uni.previewImage({
current: ‘https://api.aalives.com/invite/show_posters?user_id=19&posters_id=17’,
urls: [‘https://api.aalives.com/invite/show_posters?user_id=19&posters_id=17’]
})
没有后缀名,我这样写是可以保存的
uni.downloadFile({
url: that.userinfo_.invite_url,
success: (res) => {
if (res.statusCode === 200) {
var tempFilePath=res.tempFilePath
uni.saveImageToPhotosAlbum({
filePath: tempFilePath,
success: function () {
uni.showToast({title:'二维码已保存到手机相册',icon:'none',duration: 2000});
}
});
}
}
});