From a1afeba9df7999b6e77c67d0ea1f69bfd1af4ebd Mon Sep 17 00:00:00 2001 From: hzj <1304805162@qq.com> Date: Tue, 11 Nov 2025 11:57:30 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E4=B8=BB=E6=92=AD=E4=B8=AD=E5=BF=83?= =?UTF-8?q?=E7=AD=89=E9=A1=B5=E9=9D=A2):=20=E4=BF=AE=E6=94=B9=E5=90=8D?= =?UTF-8?q?=E7=A7=B0=E8=BF=87=E9=95=BF=E6=8C=A4=E5=8E=8B=E5=A4=B4=E5=83=8F?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 4 ++-- src/views/{ => Host}/HostCenterView.vue | 17 ++++++++++++----- src/views/{ => Host}/HostSettingView.vue | 17 +++++++++++++---- 3 files changed, 27 insertions(+), 11 deletions(-) rename src/views/{ => Host}/HostCenterView.vue (96%) rename src/views/{ => Host}/HostSettingView.vue (91%) diff --git a/src/router/index.js b/src/router/index.js index 11e97d5..4357578 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -19,7 +19,7 @@ const router = createRouter({ { path: '/host-center', name: 'host-center', - component: () => import('../views/HostCenterView.vue'), + component: () => import('../views/Host/HostCenterView.vue'), meta: { requiresAuth: true }, }, { @@ -73,7 +73,7 @@ const router = createRouter({ { path: '/host-setting', name: 'host-setting', - component: () => import('../views/HostSettingView.vue'), + component: () => import('../views/Host/HostSettingView.vue'), meta: { requiresAuth: true }, }, { diff --git a/src/views/HostCenterView.vue b/src/views/Host/HostCenterView.vue similarity index 96% rename from src/views/HostCenterView.vue rename to src/views/Host/HostCenterView.vue index cec2f36..6df2fb9 100644 --- a/src/views/HostCenterView.vue +++ b/src/views/Host/HostCenterView.vue @@ -15,7 +15,7 @@
{{ t('my_account') }} - +
@@ -32,11 +32,13 @@ {{ getAvatarPlaceholder() }}
-
{{ userInfo.userNickname || userInfo.name }}
+
+ {{ userInfo.userNickname || userInfo.name }}111111111111111111111111 +
ID: {{ userInfo.id }}
@@ -120,7 +122,7 @@ import { isInApp } from '@/utils/appBridge.js' import { getTeamMemberWork } from '@/api/teamBill.js' import { getUserId } from '@/utils/userStore.js' import { getUserIdentity } from '@/api/wallet.js' -import { clearSelectedPayee } from '../utils/payeeStore.js' +import { clearSelectedPayee } from '@/utils/payeeStore.js' import workReportBox from '@/components/HostCenter/workReportBox.vue' import { setDocumentDirection } from '@/locales/i18n' @@ -271,7 +273,7 @@ onMounted(() => { width: 100vw; min-height: 100vh; background-color: #ffffff; - background-image: url(../assets/images/secondBg.png); + background-image: url(../../assets/images/secondBg.png); } .content { @@ -343,6 +345,7 @@ onMounted(() => { .user-info { flex: 1; + min-width: 0; } .user-name { @@ -350,6 +353,10 @@ onMounted(() => { font-size: 16px; font-weight: 600; color: #333; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + width: 100%; } .user-id { diff --git a/src/views/HostSettingView.vue b/src/views/Host/HostSettingView.vue similarity index 91% rename from src/views/HostSettingView.vue rename to src/views/Host/HostSettingView.vue index 0360b84..0c316f9 100644 --- a/src/views/HostSettingView.vue +++ b/src/views/Host/HostSettingView.vue @@ -18,7 +18,7 @@ src="/src/assets/icon/agency.png" alt="" height="25px" - style="display: block; margin-left: 8px" + style="display: block; flex-shrink: 0; margin-left: 8px" /> @@ -30,10 +30,11 @@ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); display: flex; justify-content: space-between; + gap: 4px; " > -
+
-
-
+
+
{{ userInfo.userNickname || '' }}