|
@@ -1,4 +1,12 @@
|
|
<div class="app-container">
|
|
<div class="app-container">
|
|
|
|
+ <!-- 根据当前路由显示不同的导航 -->
|
|
|
|
+@if (isDesignerRoute) {
|
|
|
|
+ <!-- 设计师导航 -->
|
|
|
|
+ <app-designer-nav userName="设计师用户" [onlineHours]="4.8">
|
|
|
|
+ <router-outlet></router-outlet>
|
|
|
|
+ </app-designer-nav>
|
|
|
|
+} @else {
|
|
|
|
+ <!-- 客服导航 -->
|
|
<!-- 顶部导航栏 -->
|
|
<!-- 顶部导航栏 -->
|
|
<header class="top-navbar">
|
|
<header class="top-navbar">
|
|
<div class="navbar-left">
|
|
<div class="navbar-left">
|
|
@@ -17,7 +25,7 @@
|
|
<input
|
|
<input
|
|
type="text"
|
|
type="text"
|
|
[(ngModel)]="searchTerm"
|
|
[(ngModel)]="searchTerm"
|
|
- placeholder="搜索项目、客户或动态..."
|
|
|
|
|
|
+ placeholder="搜索客户、订单或项目..."
|
|
class="search-input"
|
|
class="search-input"
|
|
/>
|
|
/>
|
|
<button class="search-button">
|
|
<button class="search-button">
|
|
@@ -37,8 +45,8 @@
|
|
<span class="notification-badge">3</span>
|
|
<span class="notification-badge">3</span>
|
|
</button>
|
|
</button>
|
|
<div class="user-profile">
|
|
<div class="user-profile">
|
|
- <img src="https://picsum.photos/id/64/40/40" alt="用户头像" class="user-avatar">
|
|
|
|
- <span class="user-name">客服小李</span>
|
|
|
|
|
|
+ <img src="https://picsum.photos/id/823/40/40" alt="用户头像" class="user-avatar">
|
|
|
|
+ <span class="user-name">客服小张</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
</header>
|
|
@@ -48,30 +56,29 @@
|
|
<!-- 左侧侧边栏 -->
|
|
<!-- 左侧侧边栏 -->
|
|
<aside class="sidebar" [class.collapsed]="!sidebarOpen">
|
|
<aside class="sidebar" [class.collapsed]="!sidebarOpen">
|
|
<nav class="sidebar-nav">
|
|
<nav class="sidebar-nav">
|
|
- <a href="/customer-service/dashboard" class="nav-item" routerLinkActive="active">
|
|
|
|
|
|
+ <a href="/dashboard" class="nav-item" routerLinkActive="active">
|
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor">
|
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor">
|
|
<path d="M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z"></path>
|
|
<path d="M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z"></path>
|
|
</svg>
|
|
</svg>
|
|
<span>工作台</span>
|
|
<span>工作台</span>
|
|
</a>
|
|
</a>
|
|
- <a href="/customer-service/consultation-order" class="nav-item" routerLinkActive="active">
|
|
|
|
|
|
+ <a href="/customer-consultation" class="nav-item" routerLinkActive="active">
|
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor">
|
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor">
|
|
<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path>
|
|
<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path>
|
|
</svg>
|
|
</svg>
|
|
<span>客户咨询</span>
|
|
<span>客户咨询</span>
|
|
</a>
|
|
</a>
|
|
- <a href="/customer-service/project-list" class="nav-item" routerLinkActive="active">
|
|
|
|
|
|
+ <a href="/project-list" class="nav-item" routerLinkActive="active">
|
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor">
|
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor">
|
|
- <line x1="8" y1="6" x2="21" y2="6"></line>
|
|
|
|
- <line x1="8" y1="12" x2="21" y2="12"></line>
|
|
|
|
- <line x1="8" y1="18" x2="21" y2="18"></line>
|
|
|
|
- <line x1="3" y1="6" x2="3.01" y2="6"></line>
|
|
|
|
- <line x1="3" y1="12" x2="3.01" y2="12"></line>
|
|
|
|
- <line x1="3" y1="18" x2="3.01" y2="18"></line>
|
|
|
|
|
|
+ <path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path>
|
|
|
|
+ <polyline points="14 2 14 8 20 8"></polyline>
|
|
|
|
+ <line x1="16" y1="13" x2="8" y2="13"></line>
|
|
|
|
+ <line x1="16" y1="17" x2="8" y2="17"></line>
|
|
|
|
+ <polyline points="10 9 9 9 8 9"></polyline>
|
|
</svg>
|
|
</svg>
|
|
<span>项目列表</span>
|
|
<span>项目列表</span>
|
|
</a>
|
|
</a>
|
|
- <a href="/customer-service/case-library" class="nav-item" routerLinkActive="active">
|
|
|
|
|
|
+ <a href="/case-library" class="nav-item" routerLinkActive="active">
|
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor">
|
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor">
|
|
<path d="M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"></path>
|
|
<path d="M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"></path>
|
|
<path d="M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"></path>
|
|
<path d="M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"></path>
|
|
@@ -82,7 +89,7 @@
|
|
|
|
|
|
<div class="sidebar-footer">
|
|
<div class="sidebar-footer">
|
|
<div class="storage-info">
|
|
<div class="storage-info">
|
|
- <span>在线时长: 4.5h</span>
|
|
|
|
|
|
+ <span>存储空间: 2.5GB / 10GB</span>
|
|
</div>
|
|
</div>
|
|
<button class="logout-btn">
|
|
<button class="logout-btn">
|
|
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor">
|
|
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor">
|
|
@@ -97,7 +104,8 @@
|
|
|
|
|
|
<!-- 中间内容区 -->
|
|
<!-- 中间内容区 -->
|
|
<div class="content-wrapper" [class.expanded]="!sidebarOpen">
|
|
<div class="content-wrapper" [class.expanded]="!sidebarOpen">
|
|
- <router-outlet />
|
|
|
|
|
|
+ <router-outlet></router-outlet>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
</main>
|
|
|
|
+}
|
|
</div>
|
|
</div>
|