handleBaocun() {
var that = this
let ars = 'https:网址'
console.log( ars+that.qrcode)
uni.getImageInfo({
src: ars+that.qrcode,
success: function(image) {
console.log(image)
uni.saveImageToPhotosAlbum({
filePath: image.path,
success: function() {
uni.showModal({
title: '保存成功',
content: '图片已成功保存到相册',
showCancel: false
});
},
complete(res) {
console.log(res);
}
});
}
})
}
uni 点击保存到相册
最新推荐文章于 2024-05-21 14:37:51 发布