From d225f5383bf4714777435dc03d93593e65a1868a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=94=90=E6=98=8E=E6=98=8E?= <970899069@qq.com> Date: Mon, 13 Jun 2022 18:15:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=B8=AA=E4=BA=BA=E4=B8=AD?= =?UTF-8?q?=E5=BF=83=E9=9A=90=E8=97=8F=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/user/index.vue | 74 +- unpackage/dist/dev/app-plus/app-service.js | 354 ++-- unpackage/dist/dev/app-plus/app-view.js | 2135 ++++++++++---------- 3 files changed, 1374 insertions(+), 1189 deletions(-) diff --git a/pages/user/index.vue b/pages/user/index.vue index 19df399..e062e63 100644 --- a/pages/user/index.vue +++ b/pages/user/index.vue @@ -23,8 +23,8 @@ - - + + {{serial === '' ? '共力会员': 'NO:' + serial}} @@ -33,17 +33,21 @@ {{userInfo.isOpenVip ? '开通': '续费'}} - + - + 共力分 {{account.glz}} - + DT积分 {{account.dt}} - + + + + + @@ -71,13 +75,25 @@ 退换货 - + + + + + 共力分钱包 + + + + + DT积分钱包 + + + + + 导出助记词 + + + - - - 导出助记词 - - 地址管理 @@ -181,10 +197,14 @@ serial : '', hasPassword : false, showIv : false, - iv : '' + iv : '', + // 是否显示钱包 + isWallet : false, + walletNum : 0 }; }, - onShow() { + onShow() { + if(uni.getStorageSync('isWalleNum') != '' && uni.getStorageSync('isWalleNum') === 1) this.isWallet = true this.getInfo(); }, methods: { @@ -279,6 +299,25 @@ } }); }, + // 连续点击 + onNum(){ + if(this.isWallet){ + return + } + this.walletNum++ + this.$refs.onTimeCount.reset(); + this.$refs.onTimeCount.start(); + if(this.walletNum >= 7){ + uni.showToast({ + title: '已开启共力钱包', + icon : 'none' + }) + this.isWallet = true + this.walletNum = 0 + this.$refs.onTimeCount.pause(); + uni.setStorageSync('isWalleNum', 1) + } + }, // 复制助记词 copyWord() { uni.setClipboardData({ @@ -293,6 +332,7 @@ } }); }, + // 检查版本更新 updateApp(){ uni.showLoading({ title: '检查更新' @@ -362,7 +402,11 @@ }; -