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 @@ }; -