feat(frontend): 拆分双站点品牌与主题层

This commit is contained in:
yml
2026-11-16 20:03:00 +08:00
parent ac9717a5d8
commit 4f8edce1cf
95 changed files with 1831 additions and 1062 deletions
+59 -47
View File
@@ -5,7 +5,7 @@
min-height: 100vh;
max-width: 100vw;
overflow-x: clip;
background: #f8fafc;
background: var(--brand-canvas);
}
.pc-topbar {
@@ -46,11 +46,15 @@
height: 38px;
place-items: center;
border-radius: 11px;
background: linear-gradient(135deg, #ff7a1a 0%, #ff5200 100%);
background: linear-gradient(
135deg,
var(--brand-primary-hover) 0%,
var(--brand-primary-strong) 100%
);
color: #ffffff;
font-size: 20px;
font-weight: 900;
box-shadow: 0 3px 10px rgba(255, 106, 0, 0.28);
box-shadow: 0 3px 10px rgb(var(--brand-primary-rgb) / 0.28);
}
.pc-brand-logo-img {
@@ -78,7 +82,7 @@
font-size: 17px;
font-weight: 900;
letter-spacing: -0.02em;
color: #0f172a;
color: var(--brand-ink);
}
.pc-brand-sub {
@@ -106,7 +110,7 @@
gap: 6px;
padding: 8px 16px;
border-radius: 10px;
color: #64748b;
color: var(--brand-muted);
font-size: 14px;
font-weight: 700;
text-decoration: none;
@@ -134,12 +138,12 @@
.pc-nav-link:hover {
background: #f1f5f9;
color: #0f172a;
color: var(--brand-ink);
}
.pc-nav-link.router-link-active {
background: #fff7ed;
color: #ff6a00;
background: var(--brand-primary-soft);
color: var(--brand-primary);
font-weight: 800;
}
@@ -162,15 +166,15 @@
.pc-search:focus-within {
background: #fff;
border-color: #ff8533;
box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.12);
border-color: var(--brand-primary-hover);
box-shadow: 0 0 0 3px rgb(var(--brand-primary-rgb) / 0.12);
}
.pc-search input {
border: none;
outline: none;
background: transparent;
color: #0f172a;
color: var(--brand-ink);
font-size: 13px;
font-weight: 500;
width: 100%;
@@ -188,7 +192,7 @@
}
.pc-search:focus-within .el-icon {
color: #ff6a00;
color: var(--brand-primary);
}
/* ========== 用户操作区 ========== */
@@ -220,10 +224,10 @@
}
.pc-icon-link:hover {
background: #fff7ed;
background: var(--brand-primary-soft);
border-color: #ffd4b0;
color: #ff6a00;
box-shadow: 0 2px 8px rgba(255, 106, 0, 0.08);
color: var(--brand-primary);
box-shadow: 0 2px 8px rgb(var(--brand-primary-rgb) / 0.08);
}
.service-link {
@@ -231,10 +235,10 @@
min-width: 82px;
justify-content: center;
padding: 0 16px;
border-color: #fed7aa;
border-color: var(--brand-border);
border-radius: 999px;
background: #fff7ed;
color: #ea580c;
background: var(--brand-primary-soft);
color: var(--brand-primary-strong);
font-size: 13px;
font-weight: 700;
}
@@ -248,7 +252,7 @@
.service-link:hover {
background: #ffedd5;
border-color: #fdba74;
color: #c2410c;
color: var(--brand-primary-strong);
box-shadow: 0 3px 10px rgba(234, 88, 12, 0.12);
transform: translateY(-1px);
}
@@ -270,7 +274,7 @@
.pc-login-link:hover {
background: #e2e8f0;
color: #0f172a;
color: var(--brand-ink);
}
.pc-post-link {
@@ -280,18 +284,22 @@
padding: 0 18px;
height: 38px;
border-radius: 999px;
background: linear-gradient(135deg, #ff7a1a 0%, #ff5200 100%);
background: linear-gradient(
135deg,
var(--brand-primary-hover) 0%,
var(--brand-primary-strong) 100%
);
color: #ffffff;
font-size: 13px;
font-weight: 800;
text-decoration: none;
box-shadow: 0 3px 10px rgba(255, 106, 0, 0.24);
box-shadow: 0 3px 10px rgb(var(--brand-primary-rgb) / 0.24);
transition: all 0.2s ease;
}
.pc-post-link:hover {
background: linear-gradient(135deg, #ff8533 0%, #ff6214 100%);
box-shadow: 0 5px 14px rgba(255, 106, 0, 0.32);
background: linear-gradient(135deg, var(--brand-primary-hover) 0%, #ff6214 100%);
box-shadow: 0 5px 14px rgb(var(--brand-primary-rgb) / 0.32);
transform: translateY(-1px);
}
@@ -321,7 +329,7 @@
.pc-user-trigger.active {
background: #fffaf5;
border-color: #ffd4b0;
box-shadow: 0 3px 10px rgba(255, 106, 0, 0.08);
box-shadow: 0 3px 10px rgb(var(--brand-primary-rgb) / 0.08);
}
.pc-avatar-chip {
@@ -331,7 +339,11 @@
place-items: center;
border-radius: 50%;
overflow: hidden;
background: linear-gradient(135deg, #ff7a1a 0%, #ff5200 100%);
background: linear-gradient(
135deg,
var(--brand-primary-hover) 0%,
var(--brand-primary-strong) 100%
);
color: #fff;
font-size: 13px;
font-weight: 800;
@@ -351,7 +363,7 @@
.pc-user-name {
max-width: 100px;
overflow: hidden;
color: #0f172a;
color: var(--brand-ink);
font-size: 13px;
font-weight: 700;
text-overflow: ellipsis;
@@ -418,8 +430,8 @@
}
.pc-growth-badge.is-peak {
background: #fff7ed;
color: #ea580c;
background: var(--brand-primary-soft);
color: var(--brand-primary-strong);
}
.pc-growth-badge.is-distribution {
@@ -435,7 +447,7 @@
.pc-realname-badge.is-pending,
.dropdown-status.is-pending {
background: #fff7ed;
background: var(--brand-primary-soft);
color: #f97316;
}
@@ -448,7 +460,7 @@
.pc-realname-badge.is-unverified,
.dropdown-status.is-unverified {
background: #f1f5f9;
color: #64748b;
color: var(--brand-muted);
}
.arrow-icon {
@@ -510,7 +522,7 @@
min-height: 62px;
padding: 11px 12px;
border-radius: 12px;
background: #f8fafc;
background: var(--brand-canvas);
}
.dropdown-growth-panel span {
@@ -556,7 +568,7 @@
.dropdown-item:hover {
background: #fff3e8;
color: #ff6a00;
color: var(--brand-primary);
transform: translateX(4px);
}
@@ -567,7 +579,7 @@
}
.dropdown-item:hover .el-icon {
color: #ff6a00;
color: var(--brand-primary);
}
.dropdown-item.logout {
@@ -602,7 +614,7 @@
min-height: 42px;
padding: 0 12px;
border-radius: 10px;
background: #f8fafc;
background: var(--brand-canvas);
color: #475569;
font-size: 13px;
font-weight: 800;
@@ -625,12 +637,12 @@
.dropdown-basic-item:hover {
background: #fff3e8;
color: #ff6a00;
color: var(--brand-primary);
transform: translateY(-1px);
}
.dropdown-basic-item:hover .el-icon {
color: #ff6a00;
color: var(--brand-primary);
}
.dropdown-service-group {
@@ -642,20 +654,20 @@
align-items: center;
justify-content: space-between;
padding: 0 2px 8px;
color: #17233d;
color: var(--brand-ink);
font-size: 14px;
font-weight: 900;
}
.dropdown-service-more {
color: #64748b;
color: var(--brand-muted);
font-size: 12px;
font-weight: 800;
text-decoration: none;
}
.dropdown-service-more:hover {
color: #ff6a00;
color: var(--brand-primary);
}
.dropdown-service-grid {
@@ -678,7 +690,7 @@
gap: 6px;
padding: 8px 4px;
border-radius: 10px;
background: #f8fafc;
background: var(--brand-canvas);
color: #475569;
font-size: 12px;
font-weight: 800;
@@ -686,13 +698,13 @@
}
.dropdown-service-card .el-icon {
color: #ff6a00;
color: var(--brand-primary);
font-size: 18px;
}
.dropdown-service-card:hover {
background: #fff3e8;
color: #ff6a00;
color: var(--brand-primary);
transform: translateY(-1px);
}
@@ -710,7 +722,7 @@
gap: 6px;
padding: 8px 4px;
border-radius: 10px;
background: #f8fafc;
background: var(--brand-canvas);
color: #475569;
font-size: 12px;
font-weight: 800;
@@ -718,18 +730,18 @@
}
.dropdown-seller-card .el-icon {
color: #ff6a00;
color: var(--brand-primary);
font-size: 18px;
}
.dropdown-seller-card:hover {
background: #fff3e8;
color: #ff6a00;
color: var(--brand-primary);
transform: translateY(-1px);
}
.dropdown-seller-card:hover .el-icon {
color: #ff6a00;
color: var(--brand-primary);
}
/* 下拉动画 */
+3 -8
View File
@@ -27,6 +27,7 @@ import {
} from '@element-plus/icons-vue'
import { ensureSupportChat, resolveSupportScene } from '@/features/chats/api/chats'
import { useChatUnreadCount } from '@/features/chats/composables/useChatUnreadCount'
import SiteBrandLogo from '@/sites/SiteBrandLogo.vue'
import { useDistributionSiteStore } from '@/stores/distributionSite'
import { useSessionStore } from '@/stores/session'
@@ -146,16 +147,10 @@ async function handleSupportClick() {
</script>
<template>
<div class="pc-app-shell">
<div class="pc-app-shell" :class="`site-${siteStore.siteKey}`">
<header class="pc-topbar">
<RouterLink class="pc-brand" to="/">
<img
v-if="siteStore.logoUrl"
:src="siteStore.logoUrl"
alt="Site Logo"
class="pc-brand-logo-img"
/>
<span v-else class="pc-brand-mark">{{ siteStore.brandMark }}</span>
<SiteBrandLogo :height="40" variant="seal" />
<div class="pc-brand-info">
<div class="pc-brand-title-row">
<span class="pc-brand-text">{{ siteStore.siteName }}</span>