新增个人中心隐藏功能
This commit is contained in:
@@ -23,8 +23,8 @@
|
||||
</view>
|
||||
<!-- 会员卡 -->
|
||||
<view class="vip-card">
|
||||
<view class="title">
|
||||
<image src="@/static/user/icon_06.png" mode="widthFix" />
|
||||
<view class="title" @click="onNum">
|
||||
<image src="@/static/user/icon_06.png" mode="widthFix"/>
|
||||
{{serial === '' ? '共力会员': 'NO:' + serial}}
|
||||
</view>
|
||||
<view class="subtitle">
|
||||
@@ -33,17 +33,21 @@
|
||||
</view>
|
||||
<view class="btn" @click="onBtn('Vip', {})">{{userInfo.isOpenVip ? '开通': '续费'}}</view>
|
||||
</view>
|
||||
<!-- 健康数据 -->
|
||||
<!-- 账户信息 -->
|
||||
<view class="health-flex">
|
||||
<view class="health-flex-item" @click="onBtn('AccountIntegral', {})">
|
||||
<view class="health-flex-item">
|
||||
<view class="title">共力分</view>
|
||||
<view class="num">{{account.glz}}</view>
|
||||
</view>
|
||||
<view class="health-flex-item" @click="onBtn('AccountDt', {})">
|
||||
<view class="health-flex-item">
|
||||
<view class="title">DT积分</view>
|
||||
<view class="num">{{account.dt}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 计时器 -->
|
||||
<view class="onTime">
|
||||
<u-count-down ref="onTimeCount" :time="2000" @finish="walletNum = 0" :autoStart="false"></u-count-down>
|
||||
</view>
|
||||
<!-- 订单 -->
|
||||
<view class="order-box">
|
||||
<view class="order-box-item" @click="onBtn('Order', { index: 0 })">
|
||||
@@ -71,13 +75,25 @@
|
||||
<view class="title">退换货</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 功能块 -->
|
||||
<!-- 功能块 -->
|
||||
<view class="btns-box" v-if="isWallet">
|
||||
<view class="btns-box-item" @click="onBtn('AccountIntegral', {})">
|
||||
<image class="icon" src="@/static/user/userIcon_02.png" mode="widthFix" />
|
||||
共力分钱包
|
||||
<uni-icons class="forward" type="forward" color="#999" />
|
||||
</view>
|
||||
<view class="btns-box-item" @click="onBtn('AccountDt', {})">
|
||||
<image class="icon" src="@/static/user/userIcon_02.png" mode="widthFix" />
|
||||
DT积分钱包
|
||||
<uni-icons class="forward" type="forward" color="#999" />
|
||||
</view>
|
||||
<view class="btns-box-item" @click="onMnemonic">
|
||||
<image class="icon" src="@/static/user/userIcon_02.png" mode="widthFix" />
|
||||
导出助记词
|
||||
<uni-icons class="forward" type="forward" color="#999" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="btns-box">
|
||||
<view class="btns-box-item" @click="onMnemonic">
|
||||
<image class="icon" src="@/static/user/userIcon_02.png" mode="widthFix" />
|
||||
导出助记词
|
||||
<uni-icons class="forward" type="forward" color="#999" />
|
||||
</view>
|
||||
<view class="btns-box-item" @click="onBtn('Address', { type: 'edit' })">
|
||||
<image class="icon" src="@/static/user/userIcon_03.png" mode="widthFix" />
|
||||
地址管理
|
||||
@@ -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 @@
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
<style lang="scss" scoped>
|
||||
.onTime{
|
||||
height: 0px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.content {
|
||||
background: $window-color;
|
||||
min-height: 100vh;
|
||||
|
||||
Reference in New Issue
Block a user