From d833349a69e5d9e08d1ab1318afa67655c771287 Mon Sep 17 00:00:00 2001 From: syt <854400391@qq.com> Date: Sun, 22 Sep 2024 21:37:21 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AB=8B=E5=8D=B3=E4=B8=8B=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/user/index.vue | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pages/user/index.vue b/pages/user/index.vue index 1c43712..421f0ae 100644 --- a/pages/user/index.vue +++ b/pages/user/index.vue @@ -135,7 +135,12 @@ + 保存相册 + + + 立即下载 + @@ -198,6 +203,12 @@ this.qr_code = this.userInfo.qr_code; uni.removeStorageSync("isShow") }, + download1(){ + let a = document.createElement("a"); + a.href = this.qr_code; + a.setAttribute("download", "mytag"); + a.click(); + }, openPage(index) { const that = this; if (index == 1) {