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) {