This commit is contained in:
Mrhongxing committed 2026-11-15 00:50:52 +08:00
1 parent 7328396f0b
commit 1f289a73f9
17 files changed
+1412 -239

No files matched your search

+11 -9
View File
@@ -2,6 +2,7 @@
import { computed, ref } from 'vue';
import { useRoute, useRouter } from 'vue-router';
import { useUserInfoStore } from './stores/UserInfo'
import Popup from './components/popUP.vue'
const router = useRoute();
const navigation = useRouter();
@@ -35,10 +36,10 @@ function logout() {
<span>天泽汽修</span>
</a>
<nav class="nav-links" aria-label="主导航">
<a :class="{ active: isActiveNav('/main') }" href="/main">首页</a>
<a :class="{ active: isActiveNav('/maintenance') }" href="/maintenance">车辆保养</a>
<a :class="{ active: isActiveNav('/bill') }" href="/bill">维修服务</a>
<a :class="{ active: isActiveNav('/contact') }" href="/contact">联系我们</a>
<a :class="{ active: isActiveNav('/userinfo') }" href="/userinfo">首页</a>
<a :class="{ active: isActiveNav('/wait') }" href="/wait">车辆保养</a>
<a :class="{ active: isActiveNav('/wait1') }" href="/wait1">维修服务</a>
<a :class="{ active: isActiveNav('/wait2') }" href="/wait2">联系我们</a>
</nav>
<div class="topbar-actions">
<button class="icon-button" aria-label="搜索服务">
@@ -56,7 +57,7 @@ function logout() {
</button>
<div class="user-menu" :class="{ open: showLogoutMenu }">
<button class="user-trigger" type="button" aria-label="打开用户菜单" @click="toggleLogoutMenu">
<span class="user-avatar">泽</span>
<span class="user-avatar">{{ userStore.userInfo?.plateNumber.slice(0) || '客' }}</span>
<span class="user-name">在线客服</span>
</button>
<button class="logout-menu" type="button" @click="logout">退出登录</button>
@@ -76,8 +77,8 @@ function logout() {
<nav class="nav-links" aria-label="主导航">
<a :class="{ active: isActiveNav('/adduser') }" href="/adduser">添加用户</a>
<a :class="{ active: isActiveNav('/search') }" href="/search">用户查询</a>
<a :class="{ active: isActiveNav('/bill') }" href="/bill">维修服务</a>
<a :class="{ active: isActiveNav('/contact') }" href="/contact">联系我们</a>
<a :class="{ active: isActiveNav('/wait1') }" href="/wait1">维修服务</a>
<a :class="{ active: isActiveNav('/wait2') }" href="/wait2">联系我们</a>
</nav>
<div class="topbar-actions">
<button class="icon-button" aria-label="搜索服务">
@@ -95,14 +96,15 @@ function logout() {
</button>
<div class="user-menu" :class="{ open: showLogoutMenu }">
<button class="user-trigger" type="button" aria-label="打开用户菜单" @click="toggleLogoutMenu">
<span class="user-avatar">泽</span>
<span class="user-name">在线客服</span>
<span class="user-avatar">{{ userStore.userInfo?.plateNumber.slice(0) || '客' }}</span>
<!--<span class="user-name">{{ userStore.userInfo?.plateNumber || '客人' }}</span>-->
</button>
<button class="logout-menu" type="button" @click="logout">退出登录</button>
</div>
</div>
</header>
<router-view />
<Popup />
<!-- <HelloWorld /> -->
</template>
<style scoped>