From 90910363f0e3f19c3e1461f7653cd5581f6bc97d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=94=90=E6=98=8E=E6=98=8E?= <970899069@qq.com> Date: Thu, 13 Jan 2022 17:48:40 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=B8=AA=E4=BA=BA=E4=B8=AD?= =?UTF-8?q?=E5=BF=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/user/index.vue | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/pages/user/index.vue b/pages/user/index.vue index 941bd02..726353f 100644 --- a/pages/user/index.vue +++ b/pages/user/index.vue @@ -84,16 +84,6 @@ - ZH钱包 @@ -104,18 +94,13 @@ 健康档案 - + 地址管理 - - - 设置 - - 退出登录 @@ -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()