diff --git a/src/main/resources/web/src/components/layout/AppHeader.vue b/src/main/resources/web/src/components/layout/AppHeader.vue index f2fb007..5624472 100644 --- a/src/main/resources/web/src/components/layout/AppHeader.vue +++ b/src/main/resources/web/src/components/layout/AppHeader.vue @@ -4,28 +4,107 @@

校园矿化水系统

-
-
- 用户头像 + +
+ + + + - 张管理员 -
\ No newline at end of file + +.dropdown-menu { + position: absolute; + top: 100%; + right: 0; + background: white; + border-radius: 8px; + box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04); + min-width: 240px; + z-index: 1001; + margin-top: 8px; + overflow: hidden; +} + +.user-menu-header { + padding: 16px; + display: flex; + align-items: center; + gap: 12px; + border-bottom: 1px solid #f0f0f0; +} + +.user-menu-avatar { + width: 40px; + height: 40px; + border-radius: 50%; + background: #f0f0f0; + overflow: hidden; +} + +.user-menu-avatar img { + width: 100%; + height: 100%; + object-fit: cover; +} + +.user-menu-info { + flex: 1; +} + +.user-menu-name { + font-weight: 500; + color: #333; + margin-bottom: 4px; +} + +.user-menu-role { + font-size: 12px; + color: #666; +} + +.dropdown-divider { + height: 1px; + background: #f0f0f0; + margin: 4px 0; +} + +.dropdown-item { + display: flex; + align-items: center; + gap: 12px; + padding: 12px 16px; + cursor: pointer; + transition: background-color 0.3s; + color: #333; + font-size: 14px; +} + +.dropdown-item:hover { + background: #f5f5f5; +} + +.dropdown-item i { + width: 16px; + height: 16px; + display: inline-block; +} + +.icon-switch::before { + content: "🔄"; +} + +.icon-logout::before { + content: "🚪"; +} + diff --git a/src/main/resources/web/src/views/LoginView.vue b/src/main/resources/web/src/views/LoginView.vue index d798e05..31f1b8f 100644 --- a/src/main/resources/web/src/views/LoginView.vue +++ b/src/main/resources/web/src/views/LoginView.vue @@ -44,7 +44,6 @@ 记住我 - 忘记密码?