调整个人中心
This commit is contained in:
@@ -84,16 +84,6 @@
|
||||
</view>
|
||||
<!-- 功能块 -->
|
||||
<view class="btns-box">
|
||||
<!-- <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>
|
||||
</view>
|
||||
<view class="btns-box-item" @click="$Router.push({name: 'WalletProperty'})">
|
||||
<image class="icon" src="@/static/user/userIcon_01.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/userIcon_00.png" mode="widthFix"></image>
|
||||
ZH钱包
|
||||
@@ -104,18 +94,13 @@
|
||||
健康档案
|
||||
<uni-icons class="forward" type="forward" color="#999"></uni-icons>
|
||||
</view>
|
||||
<view class="btns-box-item" @click="$Router.push({name: 'Address', params: {type: 'edit'}})">
|
||||
<view class="btns-box-item" @click="onBtn('Address', {type: 'edit'})">
|
||||
<image class="icon" src="@/static/user/userIcon_03.png" mode="widthFix"></image>
|
||||
地址管理
|
||||
<uni-icons class="forward" type="forward" color="#999"></uni-icons>
|
||||
</view>
|
||||
</view>
|
||||
<view class="btns-box">
|
||||
<view class="btns-box-item">
|
||||
<image class="icon" src="@/static/user/userIcon_04.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/userIcon_05.png" mode="widthFix"></image>
|
||||
退出登录
|
||||
@@ -204,6 +189,14 @@
|
||||
if(this.userInfo.is_wallet) this.$Router.push({name: 'WalletProperty'})
|
||||
else this.$Router.push({name: 'WalletAdd'})
|
||||
},
|
||||
// 按钮导航
|
||||
onBtn(name, params){
|
||||
if(this.$store.state.token === ''){
|
||||
this.Login()
|
||||
return
|
||||
}
|
||||
this.$Router.push({name, params})
|
||||
},
|
||||
// 登录
|
||||
Login(){
|
||||
const Auth = new userAuth()
|
||||
|
||||
Reference in New Issue
Block a user