From ff6cf6f7f9447e7ed34b2b7e852a42de6bfdf43f Mon Sep 17 00:00:00 2001
From: Enzo <1284707383@qq.com>
Date: Wed, 7 Jul 2021 16:00:21 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BA=8C=E6=9C=9F=E6=B5=B7=E6=8A=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/bill/bill.vue | 36 ++++++++++++++++++++++++++++++++++--
1 file changed, 34 insertions(+), 2 deletions(-)
diff --git a/pages/bill/bill.vue b/pages/bill/bill.vue
index cd0b91b..d87b7c9 100644
--- a/pages/bill/bill.vue
+++ b/pages/bill/bill.vue
@@ -3,6 +3,11 @@
+
+
+
-
+
@@ -50,6 +55,33 @@
}
},
methods: {
+ saveAvatar() {
+ var that = this
+ wx.saveImageToPhotosAlbum({
+ filePath: that.info.avatar,
+ success(res) {
+ wx.showModal({
+ content: '图片已保存到相册,赶紧晒一下吧~',
+ showCancel: false,
+ confirmText: '好的',
+ confirmColor: '#333',
+ success: function(res) {
+ if (res.confirm) {
+ console.log('用户点击确定');
+ that.maskHidden = false
+ }
+ },
+ fail: function(res) {
+ that.maskHidden = false
+ console.log(res)
+ }
+ })
+ },
+ fail(err) {
+ console.log(err)
+ }
+ })
+ },
qrR(data) {
this.base64Img = data;
console.log('base64',this.base64Img)
@@ -118,7 +150,7 @@
});
}, 200);
},
- baocun() {
+ saveBill() {
var that = this
wx.saveImageToPhotosAlbum({
filePath: that.imagePath,