From 34d93e1f2906cd3443b63e9ed42618668957984c Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Tue, 8 Mar 2022 16:31:36 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E5=90=8E=E5=88=B7=E6=96=B0?= =?UTF-8?q?=E9=A6=96=E9=A1=B5=EF=BC=8C=E8=87=AA=E5=8A=A8=E9=80=80=E5=87=BA?= =?UTF-8?q?=E7=99=BB=E5=BD=95=EF=BC=8C=E7=99=BB=E5=BD=95=E9=A1=B5=E8=83=8C?= =?UTF-8?q?=E6=99=AF=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layouts/header/index.vue | 18 +- src/layouts/home/index.vue | 40 +++-- src/pages/account/login/index.vue | 269 +++++++++++++----------------- src/setting.js | 2 + 4 files changed, 154 insertions(+), 175 deletions(-) diff --git a/src/layouts/header/index.vue b/src/layouts/header/index.vue index 00c61f1..bcc8594 100644 --- a/src/layouts/header/index.vue +++ b/src/layouts/header/index.vue @@ -23,11 +23,9 @@ -
- - - 登录 - +
+ + 登录
@@ -116,6 +114,10 @@ export default { avatar: userInfo.userAvatars, userName: userInfo.userName }) + // 如果没有用户名,说明是客户,那就从客户接口里去取 + userInfo.userName || this.$get(this.api.isClient).then(res => { + res.customerName && this.setInfo({userName: res.customerName}) + }).catch(res => {}) }).catch(err => { }) }, hideSetting() { @@ -131,10 +133,7 @@ export default { } }, toLogin() { - this.$refs.nav.jump({ - index: '/login', - title: '登录' - }) + window.open(this.$router.resolve('/login').href) }, // 跳转到管理员后台 toManager() { @@ -209,7 +208,6 @@ export default { display: flex; justify-content: space-between; align-items: center; - max-width: $max-width; min-width: $min-width; padding: 0 80px 0 10px; margin: 0 auto; diff --git a/src/layouts/home/index.vue b/src/layouts/home/index.vue index 9b496bf..4692c1c 100644 --- a/src/layouts/home/index.vue +++ b/src/layouts/home/index.vue @@ -1,18 +1,10 @@ -