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 || '' }}