468 lines
21 KiB
HTML
468 lines
21 KiB
HTML
<!DOCTYPE html><html lang="zh-CN" style="width: 390px; height: 1127px; overflow: hidden; position: relative;"><head>
|
|
<meta charset="utf-8">
|
|
<meta content="width=device-width, initial-scale=1.0" name="viewport">
|
|
<title>杜康总部管理中心</title>
|
|
<script src="https://cdn.tailwindcss.com?plugins=forms,container-queries"></script>
|
|
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap" rel="stylesheet">
|
|
<link href="https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&family=Inter:wght@400;500;600&family=Be+Vietnam+Pro:wght@400;500;600&display=swap" rel="stylesheet">
|
|
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap" rel="stylesheet">
|
|
<script id="tailwind-config">
|
|
tailwind.config = {
|
|
darkMode: "class",
|
|
theme: {
|
|
extend: {
|
|
"colors": {
|
|
"tertiary-container": "#4e5852",
|
|
"status-blue": "#2A6EBB",
|
|
"primary-fixed": "#ffdad7",
|
|
"on-primary": "#ffffff",
|
|
"outline-variant": "#e2bebc",
|
|
"on-error-container": "#93000a",
|
|
"surface-bright": "#faf9f7",
|
|
"primary-container": "#a61d24",
|
|
"surface-container-highest": "#e3e2e0",
|
|
"on-error": "#ffffff",
|
|
"surface-dim": "#dadad8",
|
|
"on-primary-fixed": "#410004",
|
|
"on-secondary-fixed": "#241a00",
|
|
"tertiary-fixed-dim": "#bec9c2",
|
|
"on-tertiary-fixed-variant": "#3f4943",
|
|
"ink-black": "#1A1A1A",
|
|
"surface-tint": "#b3272c",
|
|
"error": "#ba1a1a",
|
|
"on-tertiary-container": "#c2cdc6",
|
|
"on-secondary": "#ffffff",
|
|
"on-background": "#1a1c1b",
|
|
"surface-container-low": "#f4f3f1",
|
|
"surface": "#faf9f7",
|
|
"surface-container-high": "#e9e8e6",
|
|
"surface-container": "#efeeec",
|
|
"on-surface-variant": "#5a413f",
|
|
"aged-amber": "#FFBF00",
|
|
"inverse-on-surface": "#f1f1ef",
|
|
"tertiary": "#37413b",
|
|
"on-secondary-container": "#745c00",
|
|
"on-primary-container": "#ffb9b4",
|
|
"heritage-red": "#A61D24",
|
|
"success-green": "#2D6A4F",
|
|
"secondary-fixed-dim": "#e9c349",
|
|
"secondary-fixed": "#ffe088",
|
|
"secondary": "#735c00",
|
|
"subtle-gray": "#999999",
|
|
"surface-variant": "#e3e2e0",
|
|
"on-primary-fixed-variant": "#910817",
|
|
"primary": "#820012",
|
|
"surface-container-lowest": "#ffffff",
|
|
"outline": "#8d706e",
|
|
"inverse-surface": "#2f3130",
|
|
"inverse-primary": "#ffb3ae",
|
|
"tertiary-fixed": "#dae5dd",
|
|
"on-tertiary-fixed": "#141e19",
|
|
"on-surface": "#1a1c1b",
|
|
"background": "#faf9f7",
|
|
"error-container": "#ffdad6",
|
|
"secondary-container": "#fed65b",
|
|
"on-tertiary": "#ffffff",
|
|
"on-secondary-fixed-variant": "#574500",
|
|
"primary-fixed-dim": "#ffb3ae"
|
|
},
|
|
"borderRadius": {
|
|
"DEFAULT": "0.25rem",
|
|
"lg": "0.5rem",
|
|
"xl": "0.75rem",
|
|
"full": "9999px"
|
|
},
|
|
"spacing": {
|
|
"stack-sm": "4px",
|
|
"stack-lg": "32px",
|
|
"stack-md": "16px",
|
|
"margin-page": "20px",
|
|
"gutter-card": "12px",
|
|
"base": "8px"
|
|
},
|
|
"fontFamily": {
|
|
"label-md": ["Inter"],
|
|
"headline-xl": ["Manrope"],
|
|
"headline-md": ["Manrope"],
|
|
"body-lg": ["Be Vietnam Pro"],
|
|
"headline-lg-mobile": ["Manrope"],
|
|
"headline-lg": ["Manrope"],
|
|
"coupon-amount": ["Manrope"],
|
|
"body-md": ["Be Vietnam Pro"]
|
|
},
|
|
"fontSize": {
|
|
"label-md": ["12px", {"lineHeight": "16px", "letterSpacing": "0.05em", "fontWeight": "500"}],
|
|
"headline-xl": ["32px", {"lineHeight": "40px", "letterSpacing": "-0.02em", "fontWeight": "700"}],
|
|
"headline-md": ["18px", {"lineHeight": "26px", "fontWeight": "600"}],
|
|
"body-lg": ["16px", {"lineHeight": "24px", "fontWeight": "400"}],
|
|
"headline-lg-mobile": ["20px", {"lineHeight": "28px", "fontWeight": "600"}],
|
|
"headline-lg": ["24px", {"lineHeight": "32px", "fontWeight": "600"}],
|
|
"coupon-amount": ["28px", {"lineHeight": "28px", "fontWeight": "700"}],
|
|
"body-md": ["14px", {"lineHeight": "20px", "fontWeight": "400"}]
|
|
}
|
|
},
|
|
},
|
|
}
|
|
</script>
|
|
<style>
|
|
.material-symbols-outlined {
|
|
font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
}
|
|
body {
|
|
background-color: #F9F8F6; /* Heritage Modernism Base */
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
.bento-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 12px;
|
|
}
|
|
.bento-item-large {
|
|
grid-column: span 2;
|
|
}
|
|
</style>
|
|
<style>
|
|
.ripple {
|
|
position: absolute;
|
|
border-radius: 50%;
|
|
transform: scale(0);
|
|
animation: ripple 600ms linear;
|
|
background-color: rgba(166, 29, 36, 0.1);
|
|
}
|
|
@keyframes ripple {
|
|
to {
|
|
transform: scale(4);
|
|
opacity: 0;
|
|
}
|
|
}
|
|
</style><style>
|
|
.ripple {
|
|
position: absolute;
|
|
border-radius: 50%;
|
|
transform: scale(0);
|
|
animation: ripple 600ms linear;
|
|
background-color: rgba(166, 29, 36, 0.1);
|
|
}
|
|
@keyframes ripple {
|
|
to {
|
|
transform: scale(4);
|
|
opacity: 0;
|
|
}
|
|
}
|
|
</style><style>
|
|
.ripple {
|
|
position: absolute;
|
|
border-radius: 50%;
|
|
transform: scale(0);
|
|
animation: ripple 600ms linear;
|
|
background-color: rgba(166, 29, 36, 0.1);
|
|
}
|
|
@keyframes ripple {
|
|
to {
|
|
transform: scale(4);
|
|
opacity: 0;
|
|
}
|
|
}
|
|
</style><style>
|
|
.ripple {
|
|
position: absolute;
|
|
border-radius: 50%;
|
|
transform: scale(0);
|
|
animation: ripple 600ms linear;
|
|
background-color: rgba(166, 29, 36, 0.1);
|
|
}
|
|
@keyframes ripple {
|
|
to {
|
|
transform: scale(4);
|
|
opacity: 0;
|
|
}
|
|
}
|
|
</style><style>
|
|
.ripple {
|
|
position: absolute;
|
|
border-radius: 50%;
|
|
transform: scale(0);
|
|
animation: ripple 600ms linear;
|
|
background-color: rgba(166, 29, 36, 0.1);
|
|
}
|
|
@keyframes ripple {
|
|
to {
|
|
transform: scale(4);
|
|
opacity: 0;
|
|
}
|
|
}
|
|
</style><style>
|
|
.ripple {
|
|
position: absolute;
|
|
border-radius: 50%;
|
|
transform: scale(0);
|
|
animation: ripple 600ms linear;
|
|
background-color: rgba(166, 29, 36, 0.1);
|
|
}
|
|
@keyframes ripple {
|
|
to {
|
|
transform: scale(4);
|
|
opacity: 0;
|
|
}
|
|
}
|
|
</style><style>
|
|
.ripple {
|
|
position: absolute;
|
|
border-radius: 50%;
|
|
transform: scale(0);
|
|
animation: ripple 600ms linear;
|
|
background-color: rgba(166, 29, 36, 0.1);
|
|
}
|
|
@keyframes ripple {
|
|
to {
|
|
transform: scale(4);
|
|
opacity: 0;
|
|
}
|
|
}
|
|
</style><style>
|
|
.ripple {
|
|
position: absolute;
|
|
border-radius: 50%;
|
|
transform: scale(0);
|
|
animation: ripple 600ms linear;
|
|
background-color: rgba(166, 29, 36, 0.1);
|
|
}
|
|
@keyframes ripple {
|
|
to {
|
|
transform: scale(4);
|
|
opacity: 0;
|
|
}
|
|
}
|
|
</style><style>
|
|
.ripple {
|
|
position: absolute;
|
|
border-radius: 50%;
|
|
transform: scale(0);
|
|
animation: ripple 600ms linear;
|
|
background-color: rgba(166, 29, 36, 0.1);
|
|
}
|
|
@keyframes ripple {
|
|
to {
|
|
transform: scale(4);
|
|
opacity: 0;
|
|
}
|
|
}
|
|
</style><style>
|
|
.ripple {
|
|
position: absolute;
|
|
border-radius: 50%;
|
|
transform: scale(0);
|
|
animation: ripple 600ms linear;
|
|
background-color: rgba(166, 29, 36, 0.1);
|
|
}
|
|
@keyframes ripple {
|
|
to {
|
|
transform: scale(4);
|
|
opacity: 0;
|
|
}
|
|
}
|
|
</style></head>
|
|
<body class="font-body-md text-on-surface mb-24">
|
|
<!-- TopAppBar -->
|
|
<header class="flex justify-between items-center w-full px-margin-page py-base fixed top-0 z-50 bg-surface dark:bg-surface-dim shadow-sm">
|
|
<div class="flex items-center gap-3">
|
|
<span class="font-headline-lg-mobile text-headline-lg-mobile text-heritage-red font-bold">杜康总部管理</span>
|
|
</div>
|
|
<button class="w-10 h-10 flex items-center justify-center rounded-full hover:bg-surface-container-high transition-colors active:scale-95 duration-150">
|
|
<span class="material-symbols-outlined text-heritage-red">notifications</span>
|
|
</button>
|
|
</header>
|
|
<main class="pt-20 px-margin-page space-y-4">
|
|
<!-- Data Overview Section -->
|
|
<section class="mt-4">
|
|
<div class="flex items-center justify-between mb-4">
|
|
<h2 class="font-headline-md text-headline-md text-ink-black">今日概况</h2>
|
|
<span class="text-label-md font-label-md text-subtle-gray">更新于 09:42</span>
|
|
</div>
|
|
<div class="space-y-3"><div class="grid grid-cols-4 gap-2">
|
|
<div class="bg-surface-container-lowest rounded-xl shadow-[0px_4px_20px_rgba(166,29,36,0.05)] border border-outline-variant/10 flex flex-col items-center py-3 px-1">
|
|
<span class="text-[10px] font-label-md text-subtle-gray mb-1">订单数</span>
|
|
<span class="text-body-md font-bold text-ink-black">156</span>
|
|
</div>
|
|
<div class="bg-surface-container-lowest rounded-xl shadow-[0px_4px_20px_rgba(166,29,36,0.05)] border border-outline-variant/10 flex flex-col items-center py-3 px-1">
|
|
<span class="text-[10px] font-label-md text-subtle-gray mb-1">新增用户</span>
|
|
<span class="text-body-md font-bold text-ink-black">42</span>
|
|
</div>
|
|
<div class="bg-surface-container-lowest rounded-xl shadow-[0px_4px_20px_rgba(166,29,36,0.05)] border border-outline-variant/10 flex flex-col items-center py-3 px-1">
|
|
<span class="text-[10px] font-label-md text-subtle-gray mb-1">核销笔数</span>
|
|
<span class="text-body-md font-bold text-ink-black">132</span>
|
|
</div>
|
|
<div class="bg-surface-container-lowest rounded-xl shadow-[0px_4px_20px_rgba(166,29,36,0.05)] border border-outline-variant/10 flex flex-col items-center py-3 px-1">
|
|
<span class="text-[10px] font-label-md text-subtle-gray mb-1">新增门店</span>
|
|
<span class="text-body-md font-bold text-ink-black">3</span>
|
|
</div>
|
|
</div>
|
|
<div class="grid grid-cols-3 gap-3">
|
|
<div class="bg-surface-container-lowest rounded-xl shadow-[0px_4px_20px_rgba(166,29,36,0.05)] border border-outline-variant/10 flex flex-col items-center py-3">
|
|
<span class="text-label-md font-label-md text-subtle-gray mb-1">今日GMV</span>
|
|
<span class="text-headline-md font-headline-md text-heritage-red">¥12,480</span>
|
|
</div>
|
|
<div class="bg-surface-container-lowest rounded-xl shadow-[0px_4px_20px_rgba(166,29,36,0.05)] border border-outline-variant/10 flex flex-col items-center py-3">
|
|
<span class="text-label-md font-label-md text-subtle-gray mb-1">累计GMV</span>
|
|
<span class="text-headline-md font-headline-md text-ink-black">¥428k</span>
|
|
</div>
|
|
<div class="bg-surface-container-lowest rounded-xl shadow-[0px_4px_20px_rgba(166,29,36,0.05)] border border-outline-variant/10 flex flex-col items-center py-3">
|
|
<span class="text-label-md font-label-md text-subtle-gray mb-1">核销金额</span>
|
|
<span class="text-headline-md font-headline-md text-heritage-red">¥8,640</span>
|
|
</div>
|
|
</div></div>
|
|
</section><section class="mt-4">
|
|
<div class="flex items-center justify-between mb-4">
|
|
<h2 class="font-headline-md text-headline-md text-ink-black">待办预警</h2>
|
|
<button class="text-label-md font-label-md text-heritage-red flex items-center">
|
|
查看全部 <span class="material-symbols-outlined text-[16px] ml-1">arrow_forward</span>
|
|
</button>
|
|
</div>
|
|
<div class="bg-error-container/30 border border-error/10 rounded-xl p-4 flex items-center justify-between">
|
|
<div class="flex items-center gap-3">
|
|
<span class="material-symbols-outlined text-error">warning</span>
|
|
<div class="flex flex-col">
|
|
<span class="text-body-md font-bold text-ink-black">订单 #8802 已超时 2.5h</span>
|
|
<span class="text-label-md text-subtle-gray">请尽快处理该异常订单</span>
|
|
</div>
|
|
</div>
|
|
<div class="flex gap-1">
|
|
<div class="w-1.5 h-1.5 rounded-full bg-error"></div>
|
|
<div class="w-1.5 h-1.5 rounded-full bg-error/30"></div>
|
|
<div class="w-1.5 h-1.5 rounded-full bg-error/30"></div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
<!-- Functional Bento Grid -->
|
|
<section>
|
|
<h2 class="font-headline-md text-headline-md text-ink-black mb-4">核心管理</h2>
|
|
<div class="bento-grid">
|
|
<!-- City Management -->
|
|
<button class="flex flex-col items-start bg-surface-container-lowest rounded-xl shadow-[0px_4px_20px_rgba(166,29,36,0.05)] border border-outline-variant/10 hover:bg-surface-container-high transition-all active:scale-[0.98] duration-150 text-left p-4">
|
|
<div class="w-10 h-10 rounded-lg bg-primary-fixed-dim/20 flex items-center justify-center mb-2">
|
|
<span class="material-symbols-outlined text-heritage-red">location_city</span>
|
|
</div>
|
|
<span class="font-headline-md text-headline-md text-ink-black">开城管理</span>
|
|
<span class="text-label-md font-label-md text-subtle-gray mt-1">区域拓展与商圈管理</span>
|
|
</button>
|
|
<!-- Order Center -->
|
|
<button class="flex flex-col items-start bg-surface-container-lowest rounded-xl shadow-[0px_4px_20px_rgba(166,29,36,0.05)] border border-outline-variant/10 hover:bg-surface-container-high transition-all active:scale-[0.98] duration-150 text-left p-4 relative">
|
|
<div class="w-10 h-10 rounded-lg bg-primary-fixed-dim/20 flex items-center justify-center mb-2">
|
|
<span class="material-symbols-outlined text-heritage-red">receipt_long</span>
|
|
</div>
|
|
<span class="font-headline-md text-headline-md text-ink-black">订单中心</span>
|
|
<span class="text-label-md font-label-md text-subtle-gray mt-1">全链路订单监控</span>
|
|
<div class="absolute top-3 right-3 w-5 h-5 bg-heritage-red text-on-primary text-[10px] font-bold flex items-center justify-center rounded-full shadow-sm">2</div></button>
|
|
<!-- Product Management -->
|
|
<button class="bento-item-large flex items-center bg-surface-container-lowest rounded-xl shadow-[0px_4px_20px_rgba(166,29,36,0.05)] border border-outline-variant/10 hover:bg-surface-container-high transition-all active:scale-[0.98] duration-150 text-left p-4">
|
|
<div class="w-12 h-12 rounded-lg bg-primary-fixed-dim/20 flex items-center justify-center mr-4 shrink-0 mb-2">
|
|
<span class="material-symbols-outlined text-heritage-red" style="font-variation-settings: 'FILL' 1;">liquor</span>
|
|
</div>
|
|
<div class="flex-1">
|
|
<span class="font-headline-md text-headline-md text-ink-black block">商品管理</span>
|
|
<span class="text-label-md font-label-md text-subtle-gray mt-1">杜康系列酒品与餐券库</span>
|
|
</div>
|
|
<span class="material-symbols-outlined text-subtle-gray">chevron_right</span>
|
|
</button>
|
|
<!-- Campaign Management -->
|
|
|
|
<!-- Promo Codes -->
|
|
<button class="flex flex-col items-start bg-surface-container-lowest rounded-xl shadow-[0px_4px_20px_rgba(166,29,36,0.05)] border border-outline-variant/10 hover:bg-surface-container-high transition-all active:scale-[0.98] duration-150 text-left p-4">
|
|
<div class="w-10 h-10 rounded-lg bg-primary-fixed-dim/20 flex items-center justify-center mb-2">
|
|
<span class="material-symbols-outlined text-heritage-red">qr_code_2</span>
|
|
</div>
|
|
<span class="font-headline-md text-headline-md text-ink-black">推广码</span>
|
|
<span class="text-label-md font-label-md text-subtle-gray mt-1">渠道推广链路跟踪</span>
|
|
</button>
|
|
<button class="flex flex-col items-start bg-surface-container-lowest rounded-xl shadow-[0px_4px_20px_rgba(166,29,36,0.05)] border border-outline-variant/10 hover:bg-surface-container-high transition-all active:scale-[0.98] duration-150 text-left p-4">
|
|
<div class="w-10 h-10 rounded-lg bg-primary-fixed-dim/20 flex items-center justify-center mb-2">
|
|
<span class="material-symbols-outlined text-heritage-red">analytics</span>
|
|
</div>
|
|
<span class="font-headline-md text-headline-md text-ink-black">数据报表</span>
|
|
<span class="text-label-md font-label-md text-subtle-gray mt-1">全链路经营数据看板</span>
|
|
</button></div>
|
|
</section>
|
|
<!-- Dynamic Insights (Editorial Style) -->
|
|
<section class="pb-10">
|
|
<div class="space-y-4">
|
|
</div>
|
|
</section>
|
|
</main>
|
|
<!-- BottomNavBar -->
|
|
<nav class="fixed bottom-0 left-0 w-full flex justify-around items-center px-4 py-3 bg-surface dark:bg-surface-dim z-50 rounded-t-xl shadow-[0px_-4px_20px_rgba(166,29,36,0.05)] border-t border-outline-variant/20 pb-10">
|
|
<!-- Active Tab: 管理中心 -->
|
|
<button class="flex flex-col items-center justify-center text-heritage-red bg-primary-fixed-dim/20 rounded-xl px-3 py-1 active:scale-90 duration-200 transition-all">
|
|
<span class="material-symbols-outlined" style="font-variation-settings: 'FILL' 1;">dashboard</span>
|
|
<span class="font-label-md text-label-md">管理中心</span>
|
|
</button>
|
|
<button class="flex flex-col items-center justify-center text-tertiary-container opacity-70 hover:bg-surface-container-low active:scale-90 duration-200 transition-all">
|
|
<span class="material-symbols-outlined">fact_check</span>
|
|
<span class="font-label-md text-label-md">门店审核</span>
|
|
</button>
|
|
<button class="flex flex-col items-center justify-center text-tertiary-container opacity-70 hover:bg-surface-container-low active:scale-90 duration-200 transition-all">
|
|
<span class="material-symbols-outlined">account_balance_wallet</span>
|
|
<span class="font-label-md text-label-md">结算中心</span>
|
|
</button>
|
|
<button class="flex flex-col items-center justify-center text-tertiary-container opacity-70 hover:bg-surface-container-low active:scale-90 duration-200 transition-all">
|
|
<span class="material-symbols-outlined">support_agent</span>
|
|
<span class="font-label-md text-label-md">客服中心</span>
|
|
</button>
|
|
</nav>
|
|
<script>
|
|
// Micro-interactions for functional buttons
|
|
document.querySelectorAll('button').forEach(button => {
|
|
button.addEventListener('touchstart', function() {
|
|
this.classList.add('opacity-80');
|
|
});
|
|
button.addEventListener('touchend', function() {
|
|
this.classList.remove('opacity-80');
|
|
});
|
|
});
|
|
|
|
// Simple mock ripple effect
|
|
function createRipple(event) {
|
|
const button = event.currentTarget;
|
|
const circle = document.createElement("span");
|
|
const diameter = Math.max(button.clientWidth, button.clientHeight);
|
|
const radius = diameter / 2;
|
|
|
|
circle.style.width = circle.style.height = `${diameter}px`;
|
|
circle.style.left = `${event.clientX - button.offsetLeft - radius}px`;
|
|
circle.style.top = `${event.clientY - button.offsetTop - radius}px`;
|
|
circle.classList.add("ripple");
|
|
|
|
const ripple = button.getElementsByClassName("ripple")[0];
|
|
if (ripple) { ripple.remove(); }
|
|
button.appendChild(circle);
|
|
}
|
|
|
|
// Add custom styles for ripple effect
|
|
const style = document.createElement('style');
|
|
style.innerHTML = `
|
|
.ripple {
|
|
position: absolute;
|
|
border-radius: 50%;
|
|
transform: scale(0);
|
|
animation: ripple 600ms linear;
|
|
background-color: rgba(166, 29, 36, 0.1);
|
|
}
|
|
@keyframes ripple {
|
|
to {
|
|
transform: scale(4);
|
|
opacity: 0;
|
|
}
|
|
}
|
|
`;
|
|
document.head.appendChild(style);
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</body></html> |