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
@@ -114,7 +114,7 @@ const props = withDefaults(
.trial-preview-container {
margin-top: 12px;
padding: 12px 14px;
background: #f8fafc;
background: var(--brand-canvas);
border: 1px solid #e2e8f0;
border-radius: 8px;
font-size: 13px;
@@ -191,13 +191,13 @@ const props = withDefaults(
.main-metric .label {
font-size: 12px;
color: #64748b;
color: var(--brand-muted);
}
.main-metric .value {
font-size: 16px;
font-weight: 700;
color: #0f172a;
color: var(--brand-ink);
}
.main-metric .value.income {
@@ -80,8 +80,8 @@ const emit = defineEmits<{
place-items: center;
border: 0;
border-radius: 18px;
background: #f8fafc;
color: #64748b;
background: var(--brand-canvas);
color: var(--brand-muted);
}
.payway-tip {
@@ -106,8 +106,8 @@ function payWayLabel(payWay?: string) {
place-items: center;
border: 0;
border-radius: 18px;
background: #f8fafc;
color: #64748b;
background: var(--brand-canvas);
color: var(--brand-muted);
}
.mobile-pay-body {
@@ -140,7 +140,7 @@ function payWayLabel(payWay?: string) {
.mobile-pay-desc {
margin: 8px 0 18px;
color: #64748b;
color: var(--brand-muted);
font-size: 12px;
line-height: 1.5;
}
@@ -384,14 +384,14 @@ const hasContent = computed(() => Boolean(snapshot.value))
gap: 4px;
padding: 10px 12px;
border-radius: 8px;
background: #f8fafc;
background: var(--brand-canvas);
}
.kv-item span {
color: #94a3b8;
font-size: 12px;
}
.kv-item strong {
color: #0f172a;
color: var(--brand-ink);
font-size: 13px;
font-weight: 600;
word-break: break-word;
@@ -415,7 +415,7 @@ const hasContent = computed(() => Boolean(snapshot.value))
display: inline-block;
padding: 6px 10px;
border-radius: 999px;
background: #fff7ed;
background: var(--brand-primary-soft);
color: #9a3412;
font-size: 12px;
margin-bottom: 6px;
@@ -497,7 +497,7 @@ const hasContent = computed(() => Boolean(snapshot.value))
}
.kv-row em {
font-style: normal;
color: #0f172a;
color: var(--brand-ink);
text-align: right;
word-break: break-word;
}
@@ -289,7 +289,7 @@ const checkoutContent = computed(() => splitCheckoutContent(props.order.checkout
.summary-row span {
font-size: 12px;
color: #64748b;
color: var(--brand-muted);
line-height: 1.35;
}
@@ -323,12 +323,12 @@ const checkoutContent = computed(() => splitCheckoutContent(props.order.checkout
.summary-note {
margin-top: 4px;
padding: 8px 10px;
background: #f8fafc;
background: var(--brand-canvas);
border-radius: 6px;
}
.summary-note.warning {
background: #fff7ed;
background: var(--brand-primary-soft);
}
.summary-note.system {
@@ -338,7 +338,7 @@ const checkoutContent = computed(() => splitCheckoutContent(props.order.checkout
.summary-note label {
display: block;
margin-bottom: 2px;
color: #64748b;
color: var(--brand-muted);
font-size: 11px;
font-weight: 700;
}
@@ -370,7 +370,7 @@ const checkoutContent = computed(() => splitCheckoutContent(props.order.checkout
padding: 8px 10px;
border: 1px solid #eef1f5;
border-radius: 6px;
background: #f8fafc;
background: var(--brand-canvas);
}
.note-block.system {
@@ -141,7 +141,7 @@ const recordEntries = computed(() =>
width: 7px;
height: 7px;
border-radius: 50%;
background: #ff6a00;
background: var(--brand-primary);
}
.timeline-time {
@@ -161,7 +161,7 @@ const recordEntries = computed(() =>
display: grid;
gap: 6px;
font-size: 13px;
color: #64748b;
color: var(--brand-muted);
line-height: 1.55;
}
@@ -176,7 +176,7 @@ const recordEntries = computed(() =>
.remark-block {
border-color: #e2e8f0;
background: #f8fafc;
background: var(--brand-canvas);
}
.system-block {
@@ -250,7 +250,7 @@ const recordEntries = computed(() =>
height: 11px;
border: 2px solid #ffffff;
border-radius: 50%;
background: #ff6a00;
background: var(--brand-primary);
}
.log-content-wrap {
@@ -319,7 +319,7 @@ function updateNumberField(field: 'coin_consumed_m' | 'otherAmountYuan', event:
}
.section-header.compact span {
color: #64748b;
color: var(--brand-muted);
font-size: 12px;
}
@@ -364,7 +364,7 @@ function updateNumberField(field: 'coin_consumed_m' | 'otherAmountYuan', event:
padding: 2px 8px;
border-radius: 999px;
background: #f1f5f9;
color: #64748b;
color: var(--brand-muted);
font-size: 12px;
font-weight: 700;
}
@@ -400,7 +400,7 @@ function updateNumberField(field: 'coin_consumed_m' | 'otherAmountYuan', event:
}
.amount-highlight {
color: #ff6a00;
color: var(--brand-primary);
font-weight: 700;
font-size: 13px;
}
@@ -444,7 +444,7 @@ function updateNumberField(field: 'coin_consumed_m' | 'otherAmountYuan', event:
.checkout-resource-amount {
min-width: 72px;
text-align: right;
color: #ff6a00;
color: var(--brand-primary);
font-weight: 700;
font-size: 15px;
}
@@ -479,7 +479,7 @@ function updateNumberField(field: 'coin_consumed_m' | 'otherAmountYuan', event:
}
.checkout-number-card.deposit {
border-color: #fed7aa;
border-color: var(--brand-border);
background: #fffaf3;
}
@@ -512,13 +512,13 @@ function updateNumberField(field: 'coin_consumed_m' | 'otherAmountYuan', event:
}
.checkout-number-card.deposit .checkout-number-title span {
color: #c2410c;
color: var(--brand-primary-strong);
background: #ffedd5;
}
.checkout-number-copy p {
margin: 0;
color: #64748b;
color: var(--brand-muted);
font-size: 12px;
line-height: 1.5;
}
@@ -576,7 +576,7 @@ function updateNumberField(field: 'coin_consumed_m' | 'otherAmountYuan', event:
.checkout-deduct-preview strong,
.checkout-fee-preview strong {
color: #ff6a00;
color: var(--brand-primary);
font-size: 16px;
font-weight: 800;
}
@@ -723,10 +723,10 @@ function updateNumberField(field: 'coin_consumed_m' | 'otherAmountYuan', event:
.deposit-deduct-warning {
padding: 8px 10px;
border: 1px solid #fed7aa;
border: 1px solid var(--brand-border);
border-radius: 6px;
background: #fff7ed;
color: #c2410c;
background: var(--brand-primary-soft);
color: var(--brand-primary-strong);
font-size: 12px;
line-height: 1.5;
}
@@ -55,7 +55,7 @@ function choose(payWay: PaymentPayWay) {
<style scoped>
.pay-way-tip {
margin: 0 0 16px;
color: #64748b;
color: var(--brand-muted);
font-size: 14px;
}
@@ -192,7 +192,7 @@
}
.action-field {
background: #f8fafc;
background: var(--brand-canvas);
border-radius: 8px;
margin-bottom: 12px;
overflow: hidden;
@@ -346,9 +346,9 @@
}
.counter-input-wrapper:focus-within {
border-color: #ff6a00;
border-color: var(--brand-primary);
background: #ffffff;
box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.15);
box-shadow: 0 0 0 3px rgb(var(--brand-primary-rgb) / 0.15);
}
.counter-input-control {
@@ -359,7 +359,7 @@
outline: none;
font-size: 16px;
font-weight: 600;
color: #0f172a;
color: var(--brand-ink);
text-align: right;
padding: 0;
}
@@ -367,13 +367,13 @@
.counter-unit {
margin-left: 6px;
font-size: 13px;
color: #64748b;
color: var(--brand-muted);
font-weight: 600;
user-select: none;
}
.popup-field {
background: #f8fafc;
background: var(--brand-canvas);
border: 1.5px solid #e2e8f0;
border-radius: 8px;
margin-bottom: 12px;
@@ -384,9 +384,9 @@
}
.popup-field:focus-within {
border-color: #ff6a00;
border-color: var(--brand-primary);
background: #ffffff;
box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.15);
box-shadow: 0 0 0 3px rgb(var(--brand-primary-rgb) / 0.15);
}
/* iOS Safari:font-size < 16px 时聚焦会自动放大整个页面 */
@@ -3,7 +3,7 @@ import { readError } from '@/shared/utils/error'
import { onMounted, ref, computed, watch } from 'vue'
import { useRouter, useRoute } from 'vue-router'
import { showConfirmDialog, showToast } from 'vant'
import MobileBottomNav from '@/components/MobileBottomNav.vue'
import SiteMobileBottomNav from '@/sites/SiteMobileBottomNav.vue'
import {
fetchOrders,
@@ -527,7 +527,7 @@ async function copyListingCode(order: UserOrderListItem) {
@refresh="refreshPaymentStatus(false)"
/>
<MobileBottomNav />
<SiteMobileBottomNav />
</main>
</template>
@@ -55,7 +55,7 @@
}
.order-meta {
color: #64748b;
color: var(--brand-muted);
margin: 6px 0 10px;
}
@@ -110,7 +110,7 @@
.sidebar-hint {
margin: 0;
font-size: 12px;
color: #64748b;
color: var(--brand-muted);
line-height: 1.45;
}
@@ -196,7 +196,7 @@
}
.metric-card.highlight {
background: linear-gradient(135deg, #ff6a00 0%, #ee0979 100%);
background: linear-gradient(135deg, var(--brand-primary) 0%, #ee0979 100%);
border: none;
color: #ffffff;
}
@@ -224,7 +224,7 @@
.metric-label {
font-size: 12px;
color: #64748b;
color: var(--brand-muted);
font-weight: 500;
}
@@ -236,7 +236,7 @@
}
.metric-value.amount {
color: #ff6a00;
color: var(--brand-primary);
}
.metric-note {
@@ -268,7 +268,7 @@
.info-label {
font-size: 13px;
color: #64748b;
color: var(--brand-muted);
font-weight: 500;
}
@@ -312,7 +312,7 @@
}
.section-header.compact span {
color: #64748b;
color: var(--brand-muted);
font-size: 12px;
}
@@ -414,7 +414,7 @@
}
.secondary-action-card span {
color: #64748b;
color: var(--brand-muted);
font-size: 12px;
line-height: 1.45;
}
@@ -432,7 +432,7 @@
.form-hint {
margin: 0;
padding: 10px 12px;
background: #f8fafc;
background: var(--brand-canvas);
border-left: 3px solid #3b82f6;
color: #475569;
font-size: 13px;
@@ -565,7 +565,7 @@
.pay-way-tip {
margin: 0 0 16px 0;
color: #64748b;
color: var(--brand-muted);
font-size: 14px;
}
@@ -649,7 +649,7 @@
.pay-summary {
padding: 16px 20px;
background: #f8fafc;
background: var(--brand-canvas);
border-radius: 8px;
}
@@ -660,7 +660,7 @@
}
.pay-summary-row span {
color: #64748b;
color: var(--brand-muted);
font-size: 14px;
}
@@ -676,7 +676,7 @@
align-items: center;
gap: 20px;
padding: 24px;
background: #f8fafc;
background: var(--brand-canvas);
border-radius: 12px;
}
@@ -710,7 +710,7 @@
.pay-instructions p {
margin: 0;
color: #64748b;
color: var(--brand-muted);
font-size: 14px;
line-height: 1.7;
}
@@ -718,8 +718,8 @@
.pay-hint {
margin: 0;
padding: 16px;
background: #f8fafc;
color: #64748b;
background: var(--brand-canvas);
color: var(--brand-muted);
font-size: 14px;
text-align: center;
border-radius: 8px;
@@ -57,7 +57,7 @@
font-size: 22px;
font-weight: 900;
letter-spacing: -0.02em;
color: #0f172a;
color: var(--brand-ink);
line-height: 1.2;
}
@@ -66,16 +66,16 @@
align-items: center;
padding: 2px 10px;
border-radius: 999px;
background: #fff7ed;
border: 1px solid #fed7aa;
color: #ea580c;
background: var(--brand-primary-soft);
border: 1px solid var(--brand-border);
color: var(--brand-primary-strong);
font-size: 12px;
font-weight: 700;
}
.hero-subtitle {
margin: 0;
color: #64748b;
color: var(--brand-muted);
font-size: 13px;
font-weight: 500;
}
@@ -88,7 +88,7 @@
.orders-search-input :deep(.el-input__wrapper) {
border-radius: 999px;
padding: 4px 16px;
background: #f8fafc;
background: var(--brand-canvas);
box-shadow: 0 0 0 1px #e2e8f0 inset;
transition: all 0.2s ease;
}
@@ -96,8 +96,8 @@
.orders-search-input :deep(.el-input__wrapper.is-focus) {
background: #ffffff;
box-shadow:
0 0 0 1.5px #ff8533 inset,
0 0 0 4px rgba(255, 106, 0, 0.1) !important;
0 0 0 1.5px var(--brand-primary-hover) inset,
0 0 0 4px rgb(var(--brand-primary-rgb) / 0.1) !important;
}
.orders-search-input :deep(.el-input__inner) {
@@ -133,7 +133,7 @@
border: 1px solid transparent;
border-radius: 999px;
background: transparent;
color: #64748b;
color: var(--brand-muted);
font-size: 13px;
font-weight: 600;
cursor: pointer;
@@ -142,16 +142,16 @@
}
.orders-pill-tab:hover {
background: #f8fafc;
color: #0f172a;
background: var(--brand-canvas);
color: var(--brand-ink);
}
.orders-pill-tab.active {
background: #fff7ed;
background: var(--brand-primary-soft);
border-color: #ffd4b0;
color: #ea580c;
color: var(--brand-primary-strong);
font-weight: 800;
box-shadow: 0 2px 8px rgba(255, 106, 0, 0.1);
box-shadow: 0 2px 8px rgb(var(--brand-primary-rgb) / 0.1);
}
.tab-badge {
@@ -163,14 +163,14 @@
padding: 0 5px;
border-radius: 999px;
background: #f1f5f9;
color: #64748b;
color: var(--brand-muted);
font-size: 11px;
font-weight: 700;
transition: all 0.16s ease;
}
.tab-badge.is-active {
background: #ff6a00;
background: var(--brand-primary);
color: #ffffff;
}
@@ -198,7 +198,7 @@
}
.orders-table :deep(.el-table__header-wrapper th) {
background: #f8fafc;
background: var(--brand-canvas);
color: #475569;
font-weight: 700;
font-size: 13px;
@@ -259,9 +259,9 @@
}
.biz-tag.crash {
color: #ea580c;
background: #fff7ed;
border: 1px solid #fed7aa;
color: var(--brand-primary-strong);
background: var(--brand-primary-soft);
border: 1px solid var(--brand-border);
}
/* 身份角色标签 */
@@ -293,7 +293,7 @@
}
.role-tag.buyer {
color: #64748b;
color: var(--brand-muted);
background: #f1f5f9;
border: 1px solid #e2e8f0;
}
@@ -320,7 +320,7 @@
}
.copy-icon:hover {
color: #ff6a00;
color: var(--brand-primary);
}
/* 商品/账号单元格 */
@@ -387,7 +387,7 @@
.crash-product-info strong {
font-size: 14px;
font-weight: 600;
color: #0f172a;
color: var(--brand-ink);
line-height: 1.4;
overflow: hidden;
text-overflow: ellipsis;
@@ -437,7 +437,7 @@
.crash-product-info span {
font-size: 12px;
color: #64748b;
color: var(--brand-muted);
font-weight: 500;
}
@@ -451,7 +451,7 @@
.amount-value {
font-size: 15px;
font-weight: 800;
color: #0f172a;
color: var(--brand-ink);
font-feature-settings: 'tnum';
}
@@ -540,7 +540,7 @@
.order-card:hover {
border-color: #ffd4b0;
box-shadow: 0 4px 14px rgba(255, 106, 0, 0.08);
box-shadow: 0 4px 14px rgb(var(--brand-primary-rgb) / 0.08);
}
.card-header {
@@ -560,7 +560,7 @@
.card-title {
font-size: 15px;
font-weight: 700;
color: #0f172a;
color: var(--brand-ink);
margin-bottom: 12px;
line-height: 1.4;
}
@@ -581,7 +581,7 @@
.meta-label {
font-size: 13px;
color: #64748b;
color: var(--brand-muted);
}
.meta-value {
@@ -600,7 +600,7 @@
}
.meta-value.amount {
color: #ea580c;
color: var(--brand-primary-strong);
font-weight: 800;
font-size: 15px;
}
@@ -620,7 +620,7 @@
.status-label {
font-size: 13px;
font-weight: 700;
color: #0f172a;
color: var(--brand-ink);
}
.crash-status {
@@ -630,12 +630,12 @@
font-size: 12px;
font-weight: 700;
background: #f1f5f9;
color: #64748b;
color: var(--brand-muted);
}
.crash-status.pending_payment {
background: #fff7ed;
color: #ea580c;
background: var(--brand-primary-soft);
color: var(--brand-primary-strong);
}
.crash-status.paid {
@@ -644,7 +644,7 @@
}
.crash-status.receiving {
background: #fff7ed;
background: var(--brand-primary-soft);
color: #d97706;
}
@@ -655,7 +655,7 @@
.crash-status.cancelled,
.crash-status.refunded {
background: #f8fafc;
background: var(--brand-canvas);
color: #94a3b8;
}