|
|
|
@ -1,7 +1,7 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<div :class="['navbar', { 'teacher-navbar': role === 3 }]">
|
|
|
|
<div :class="['navbar', { 'teacher-navbar': role === 3 }]">
|
|
|
|
<!-- 背景装饰 -->
|
|
|
|
<!-- 背景装饰 -->
|
|
|
|
<svg class="nav-bg-decoration" viewBox="0 0 1920 60" preserveAspectRatio="xMidYMid slice">
|
|
|
|
<svg v-if="role !== 3" class="nav-bg-decoration" viewBox="0 0 1920 60" preserveAspectRatio="xMidYMid slice">
|
|
|
|
<defs>
|
|
|
|
<defs>
|
|
|
|
<linearGradient id="navGrad" x1="0%" y1="0%" x2="100%" y2="100%">
|
|
|
|
<linearGradient id="navGrad" x1="0%" y1="0%" x2="100%" y2="100%">
|
|
|
|
<stop offset="0%" style="stop-color:#001529;stop-opacity:0.95" />
|
|
|
|
<stop offset="0%" style="stop-color:#001529;stop-opacity:0.95" />
|
|
|
|
@ -25,6 +25,23 @@
|
|
|
|
<circle cx="1500" cy="20" r="1.5" fill="#00ff9d" opacity="0.25" />
|
|
|
|
<circle cx="1500" cy="20" r="1.5" fill="#00ff9d" opacity="0.25" />
|
|
|
|
<circle cx="1800" cy="40" r="2" fill="#00aaff" opacity="0.3" />
|
|
|
|
<circle cx="1800" cy="40" r="2" fill="#00aaff" opacity="0.3" />
|
|
|
|
</svg>
|
|
|
|
</svg>
|
|
|
|
|
|
|
|
<!-- 教师端亮色装饰:浅色底纹 + 蓝色点缀,保持科技感 -->
|
|
|
|
|
|
|
|
<svg v-else class="nav-bg-decoration" viewBox="0 0 1920 60" preserveAspectRatio="xMidYMid slice">
|
|
|
|
|
|
|
|
<defs>
|
|
|
|
|
|
|
|
<linearGradient id="teacherGlowLine" x1="0%" y1="0%" x2="100%" y2="0%">
|
|
|
|
|
|
|
|
<stop offset="0%" style="stop-color:#1e88e5;stop-opacity:0" />
|
|
|
|
|
|
|
|
<stop offset="50%" style="stop-color:#1e88e5;stop-opacity:0.45" />
|
|
|
|
|
|
|
|
<stop offset="100%" style="stop-color:#1e88e5;stop-opacity:0" />
|
|
|
|
|
|
|
|
</linearGradient>
|
|
|
|
|
|
|
|
</defs>
|
|
|
|
|
|
|
|
<line x1="0" y1="59" x2="1920" y2="59" stroke="url(#teacherGlowLine)" stroke-width="1" />
|
|
|
|
|
|
|
|
<circle cx="180" cy="22" r="2" fill="#1e88e5" opacity="0.25" />
|
|
|
|
|
|
|
|
<circle cx="460" cy="36" r="1.5" fill="#42a5f5" opacity="0.3" />
|
|
|
|
|
|
|
|
<circle cx="820" cy="18" r="2" fill="#1e88e5" opacity="0.2" />
|
|
|
|
|
|
|
|
<circle cx="1180" cy="32" r="1.5" fill="#42a5f5" opacity="0.28" />
|
|
|
|
|
|
|
|
<circle cx="1540" cy="24" r="2" fill="#1e88e5" opacity="0.22" />
|
|
|
|
|
|
|
|
<circle cx="1780" cy="38" r="1.5" fill="#42a5f5" opacity="0.26" />
|
|
|
|
|
|
|
|
</svg>
|
|
|
|
|
|
|
|
|
|
|
|
<div :class="[role !== 3 ? 'navTitle' : 'TnavTitle']">
|
|
|
|
<div :class="[role !== 3 ? 'navTitle' : 'TnavTitle']">
|
|
|
|
<div class="logo-area">
|
|
|
|
<div class="logo-area">
|
|
|
|
@ -55,7 +72,7 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="divider"></div>
|
|
|
|
<div class="divider"></div>
|
|
|
|
<div class="avatar-container">
|
|
|
|
<div class="avatar-container">
|
|
|
|
<el-dropdown @command="handleCommand" class="right-menu-item hover-effect" trigger="click">
|
|
|
|
<el-dropdown @command="handleCommand" class="right-menu-item hover-effect" trigger="click" :popper-class="role === 3 ? 'teacher-dropdown-popper' : ''">
|
|
|
|
<div class="avatar-wrapper">
|
|
|
|
<div class="avatar-wrapper">
|
|
|
|
<div class="avatar-ring">
|
|
|
|
<div class="avatar-ring">
|
|
|
|
<img src="../../assets/images/头像.webp" class="user-avatar" />
|
|
|
|
<img src="../../assets/images/头像.webp" class="user-avatar" />
|
|
|
|
@ -297,7 +314,7 @@ onMounted(() => {
|
|
|
|
display: flex;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
align-items: center;
|
|
|
|
padding: 0 20px;
|
|
|
|
padding: 0 20px;
|
|
|
|
background: linear-gradient(90deg, rgba(0, 60, 120, 0.5), rgba(0, 30, 60, 0.3) 60%, transparent);
|
|
|
|
background: linear-gradient(90deg, rgba(30, 136, 229, 0.08), rgba(66, 165, 245, 0.04) 60%, transparent);
|
|
|
|
backdrop-filter: blur(10px);
|
|
|
|
backdrop-filter: blur(10px);
|
|
|
|
|
|
|
|
|
|
|
|
.logo-area {
|
|
|
|
.logo-area {
|
|
|
|
@ -306,16 +323,16 @@ onMounted(() => {
|
|
|
|
gap: 12px;
|
|
|
|
gap: 12px;
|
|
|
|
|
|
|
|
|
|
|
|
.logo-icon {
|
|
|
|
.logo-icon {
|
|
|
|
filter: drop-shadow(0 0 8px rgba(0, 170, 255, 0.5));
|
|
|
|
filter: drop-shadow(0 0 6px rgba(30, 136, 229, 0.35));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
span {
|
|
|
|
span {
|
|
|
|
font-size: 15px;
|
|
|
|
font-size: 15px;
|
|
|
|
font-family: var(--student-font-base);
|
|
|
|
font-family: var(--student-font-base);
|
|
|
|
font-weight: 600;
|
|
|
|
font-weight: 700;
|
|
|
|
color: #fff;
|
|
|
|
color: #1e3a5f;
|
|
|
|
letter-spacing: 1px;
|
|
|
|
letter-spacing: 1px;
|
|
|
|
text-shadow: 0 0 12px rgba(80, 200, 255, 0.4);
|
|
|
|
text-shadow: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -537,28 +554,179 @@ onMounted(() => {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.teacher-navbar {
|
|
|
|
.teacher-navbar {
|
|
|
|
background: linear-gradient(135deg, rgba(5, 20, 40, 0.98), rgba(10, 35, 60, 0.95)) !important;
|
|
|
|
// 教师端亮色主题:浅色玻璃质感 + 蓝色点缀,保持科技感
|
|
|
|
border-bottom: 1px solid rgba(60, 192, 255, 0.2);
|
|
|
|
background: linear-gradient(135deg, #ffffff 0%, #f3f8ff 50%, #eaf2fb 100%) !important;
|
|
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
|
|
|
|
border-bottom: 1px solid rgba(30, 136, 229, 0.18);
|
|
|
|
|
|
|
|
box-shadow: 0 6px 24px rgba(30, 60, 100, 0.08);
|
|
|
|
backdrop-filter: blur(20px);
|
|
|
|
backdrop-filter: blur(20px);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 菜单项:浅色文字 + 轻量描边
|
|
|
|
|
|
|
|
.el-ment {
|
|
|
|
|
|
|
|
color: #3a5a7a;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.el-ment-item {
|
|
|
|
|
|
|
|
color: #3a5a7a;
|
|
|
|
|
|
|
|
background: rgba(30, 136, 229, 0.06);
|
|
|
|
|
|
|
|
border: 1px solid rgba(30, 136, 229, 0.12);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.menu-indicator {
|
|
|
|
|
|
|
|
background: linear-gradient(90deg, transparent, #1e88e5, transparent);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
|
|
|
color: #1e88e5;
|
|
|
|
|
|
|
|
background: rgba(30, 136, 229, 0.12);
|
|
|
|
|
|
|
|
border-color: rgba(30, 136, 229, 0.28);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.menu-indicator {
|
|
|
|
|
|
|
|
background: linear-gradient(90deg, transparent, #1e88e5, transparent);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.el-ment-item-active {
|
|
|
|
|
|
|
|
color: #1e88e5;
|
|
|
|
|
|
|
|
background: linear-gradient(135deg, rgba(30, 136, 229, 0.18), rgba(66, 165, 245, 0.08));
|
|
|
|
|
|
|
|
border-color: rgba(30, 136, 229, 0.4);
|
|
|
|
|
|
|
|
box-shadow: 0 4px 14px rgba(30, 136, 229, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.6);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.menu-indicator {
|
|
|
|
|
|
|
|
background: linear-gradient(90deg, transparent, #1e88e5, transparent);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
|
|
|
|
background: linear-gradient(90deg, transparent, rgba(30, 136, 229, 0.7), transparent);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
&.teacher-nav {
|
|
|
|
|
|
|
|
.el-ment-item {
|
|
|
|
|
|
|
|
color: #3a5a7a;
|
|
|
|
|
|
|
|
background: rgba(30, 136, 229, 0.05);
|
|
|
|
|
|
|
|
border: 1px solid rgba(30, 136, 229, 0.1);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
|
|
|
color: #1e88e5;
|
|
|
|
|
|
|
|
background: rgba(30, 136, 229, 0.12);
|
|
|
|
|
|
|
|
border-color: rgba(30, 136, 229, 0.28);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.el-ment-item-active {
|
|
|
|
|
|
|
|
color: #1e88e5;
|
|
|
|
|
|
|
|
background: linear-gradient(135deg, rgba(30, 136, 229, 0.2), rgba(66, 165, 245, 0.1));
|
|
|
|
|
|
|
|
border-color: rgba(30, 136, 229, 0.45);
|
|
|
|
|
|
|
|
box-shadow: 0 4px 16px rgba(30, 136, 229, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.6);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.menu-indicator {
|
|
|
|
|
|
|
|
background: linear-gradient(90deg, transparent, #1e88e5, transparent);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 右侧区域:浅色背景渐变
|
|
|
|
.right-menu {
|
|
|
|
.right-menu {
|
|
|
|
background: linear-gradient(90deg, transparent, rgba(0, 40, 80, 0.4));
|
|
|
|
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.search-box {
|
|
|
|
.search-box {
|
|
|
|
background: rgba(60, 180, 255, 0.08) !important;
|
|
|
|
background: rgba(30, 136, 229, 0.08) !important;
|
|
|
|
border-color: rgba(60, 180, 255, 0.15) !important;
|
|
|
|
border-color: rgba(30, 136, 229, 0.18) !important;
|
|
|
|
|
|
|
|
color: rgba(30, 90, 140, 0.7) !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
|
|
|
background: rgba(30, 136, 229, 0.14) !important;
|
|
|
|
|
|
|
|
border-color: rgba(30, 136, 229, 0.32) !important;
|
|
|
|
|
|
|
|
color: #1e88e5 !important;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.avatar-wrapper {
|
|
|
|
.divider {
|
|
|
|
background: rgba(60, 180, 255, 0.08) !important;
|
|
|
|
background: linear-gradient(180deg, transparent, rgba(30, 136, 229, 0.35), transparent);
|
|
|
|
border-color: rgba(60, 180, 255, 0.15) !important;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.avatar-ring {
|
|
|
|
.avatar-container .avatar-wrapper {
|
|
|
|
background: linear-gradient(135deg, #00aaff, #00ff9d) !important;
|
|
|
|
background: rgba(30, 136, 229, 0.08) !important;
|
|
|
|
box-shadow: 0 0 12px rgba(0, 170, 255, 0.5) !important;
|
|
|
|
border-color: rgba(30, 136, 229, 0.18) !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
|
|
|
background: rgba(30, 136, 229, 0.16) !important;
|
|
|
|
|
|
|
|
border-color: rgba(30, 136, 229, 0.32) !important;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.avatar-ring {
|
|
|
|
|
|
|
|
background: linear-gradient(135deg, #1e88e5, #42a5f5) !important;
|
|
|
|
|
|
|
|
box-shadow: 0 0 10px rgba(30, 136, 229, 0.35) !important;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.dropdown-icon {
|
|
|
|
|
|
|
|
color: rgba(30, 90, 140, 0.7);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 教师端下拉面板:亮色玻璃质感(dropdown teleport 到 body,需使用 popper-class 选择器)
|
|
|
|
|
|
|
|
.teacher-dropdown-popper {
|
|
|
|
|
|
|
|
.dropdown-panel {
|
|
|
|
|
|
|
|
background: linear-gradient(160deg, #ffffff 0%, #f3f8ff 50%, #eaf2fb 100%);
|
|
|
|
|
|
|
|
border: 1px solid rgba(30, 136, 229, 0.25);
|
|
|
|
|
|
|
|
box-shadow: 0 15px 40px rgba(30, 60, 100, 0.18), 0 0 20px rgba(30, 136, 229, 0.08);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.dropdown-header {
|
|
|
|
|
|
|
|
background: linear-gradient(135deg, rgba(30, 136, 229, 0.1), rgba(66, 165, 245, 0.05));
|
|
|
|
|
|
|
|
border-bottom: 1px solid rgba(30, 136, 229, 0.15);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.user-info {
|
|
|
|
|
|
|
|
.user-name {
|
|
|
|
|
|
|
|
color: #1e3a5f;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.user-role {
|
|
|
|
|
|
|
|
color: #1e88e5;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.dropdown-divider {
|
|
|
|
|
|
|
|
background: linear-gradient(90deg, transparent, rgba(30, 136, 229, 0.25), transparent);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.dropdown-menu-custom {
|
|
|
|
|
|
|
|
.dropdown-item {
|
|
|
|
|
|
|
|
color: #3a5a7a !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
svg {
|
|
|
|
|
|
|
|
color: rgba(30, 136, 229, 0.8);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
|
|
|
background: linear-gradient(135deg, rgba(30, 136, 229, 0.14), rgba(66, 165, 245, 0.06)) !important;
|
|
|
|
|
|
|
|
color: #1e88e5 !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
svg {
|
|
|
|
|
|
|
|
color: #1e88e5;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
&.logout {
|
|
|
|
|
|
|
|
color: rgba(200, 80, 80, 0.85) !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
svg {
|
|
|
|
|
|
|
|
color: rgba(220, 100, 100, 0.8);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
|
|
|
background: linear-gradient(135deg, rgba(220, 80, 80, 0.14), rgba(200, 60, 60, 0.06)) !important;
|
|
|
|
|
|
|
|
color: #d63030 !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
svg {
|
|
|
|
|
|
|
|
color: #d63030;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|