|
|
@@ -10,6 +10,7 @@
|
|
|
background: #0099ff;
|
|
|
border-radius: 10rpx;
|
|
|
margin: 50rpx auto;
|
|
|
+ font-size: 28rpx;
|
|
|
}
|
|
|
}
|
|
|
</style>
|
|
|
@@ -43,14 +44,22 @@
|
|
|
},
|
|
|
downloadCodeFun(){
|
|
|
uni.showLoading({
|
|
|
- title: '下载中'
|
|
|
+ title: '下载中..'
|
|
|
});
|
|
|
uni.downloadFile({
|
|
|
url: this.codeImg,
|
|
|
success: (res) => {
|
|
|
if (res.statusCode === 200) {
|
|
|
- uni.hideLoading();
|
|
|
- uni.showToast({title:'下载成功'})
|
|
|
+ console.log(res)
|
|
|
+ uni.saveImageToPhotosAlbum({
|
|
|
+ filePath: res.tempFilePath,
|
|
|
+ success: function (data) {
|
|
|
+ console.log(data)
|
|
|
+ uni.hideLoading();
|
|
|
+ uni.showToast({title:'下载成功!'})
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
});
|