完善钱包模块,修改密码,导出助记词
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
direction="column"
|
||||
></u-notice-bar>
|
||||
</view>
|
||||
<view class="btn">开通</view>
|
||||
<view class="btn" @click="openVip">开通</view>
|
||||
</view>
|
||||
<!-- 健康数据 -->
|
||||
<view class="health-flex">
|
||||
@@ -84,7 +84,7 @@
|
||||
</view>
|
||||
<!-- 功能块 -->
|
||||
<view class="btns-box">
|
||||
<view class="btns-box-item" @click="$Router.push({name: 'WalletAdd'})">
|
||||
<!-- <view class="btns-box-item" @click="$Router.push({name: 'WalletAdd'})">
|
||||
<image class="icon" src="@/static/user/icon_00.png" mode="widthFix"></image>
|
||||
ZH钱包(首次)
|
||||
<uni-icons class="forward" type="forward" color="#999"></uni-icons>
|
||||
@@ -93,6 +93,11 @@
|
||||
<image class="icon" src="@/static/user/icon_00.png" mode="widthFix"></image>
|
||||
ZH钱包(钱包)
|
||||
<uni-icons class="forward" type="forward" color="#999"></uni-icons>
|
||||
</view> -->
|
||||
<view class="btns-box-item" @click="onWallet">
|
||||
<image class="icon" src="@/static/user/icon_00.png" mode="widthFix"></image>
|
||||
ZH钱包
|
||||
<uni-icons class="forward" type="forward" color="#999"></uni-icons>
|
||||
</view>
|
||||
<view class="btns-box-item">
|
||||
<image class="icon" src="@/static/user/icon_00.png" mode="widthFix"></image>
|
||||
@@ -106,17 +111,16 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="btns-box">
|
||||
<view class="btns-box-item">
|
||||
<image class="icon" src="@/static/user/icon_03.png" mode="widthFix"></image>
|
||||
设置
|
||||
<uni-icons class="forward" type="forward" color="#999"></uni-icons>
|
||||
</view>
|
||||
<view class="btns-box-item" @click="logOut">
|
||||
<image class="icon" src="@/static/user/icon_03.png" mode="widthFix"></image>
|
||||
退出登录
|
||||
<uni-icons class="forward" type="forward" color="#999"></uni-icons>
|
||||
</view>
|
||||
</view>
|
||||
<view class="footer-text">
|
||||
<view>ZH生态俱乐部</view>
|
||||
<view>All Rights Reserved. ZH Eco Club</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -141,12 +145,36 @@
|
||||
getInfo(){
|
||||
if(this.$store.state.token === '') return
|
||||
info().then(res => {
|
||||
console.log(res)
|
||||
uni.setNavigationBarTitle({
|
||||
title: res.nickname
|
||||
})
|
||||
|
||||
this.userInfo = res
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
},
|
||||
// 开通会员
|
||||
openVip(){
|
||||
if(this.$store.state.token === ''){
|
||||
this.Login()
|
||||
return
|
||||
}
|
||||
console.log("开通会员")
|
||||
},
|
||||
// 开通钱包
|
||||
onWallet(){
|
||||
if(this.$store.state.token === ''){
|
||||
this.Login()
|
||||
return
|
||||
}
|
||||
if(this.userInfo.is_wallet) this.$Router.push({name: 'WalletProperty'})
|
||||
else this.$Router.push({name: 'WalletAdd'})
|
||||
},
|
||||
// 登录
|
||||
Login(){
|
||||
const Auth = new userAuth()
|
||||
@@ -165,6 +193,13 @@
|
||||
background: $window-color;
|
||||
min-height: 100vh;
|
||||
}
|
||||
// 版权信息
|
||||
.footer-text{
|
||||
text-align: center;
|
||||
font-size: $title-size-sm;
|
||||
padding: $padding $padding $padding*2;
|
||||
color: $text-gray-m;
|
||||
}
|
||||
// 用户信息
|
||||
.info-box{
|
||||
position: relative;
|
||||
|
||||
Reference in New Issue
Block a user