317 lines
14 KiB
HTML
317 lines
14 KiB
HTML
<!DOCTYPE html><html lang="zh-CN" style=""><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=Inter:wght@400;500;600;700&family=Manrope:wght@600;700;800&family=Be+Vietnam+Pro:wght@400;500&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": {
|
|
"surface-container-highest": "#e3e2e0",
|
|
"success-green": "#2D6A4F",
|
|
"inverse-primary": "#ffb3ae",
|
|
"on-secondary": "#ffffff",
|
|
"surface-bright": "#faf9f7",
|
|
"tertiary-fixed": "#dae5dd",
|
|
"on-tertiary-container": "#c2cdc6",
|
|
"on-primary-fixed-variant": "#910817",
|
|
"tertiary-container": "#4e5852",
|
|
"heritage-red": "#A61D24",
|
|
"inverse-on-surface": "#f1f1ef",
|
|
"surface-variant": "#e3e2e0",
|
|
"inverse-surface": "#2f3130",
|
|
"secondary-fixed": "#ffe088",
|
|
"on-tertiary-fixed-variant": "#3f4943",
|
|
"background": "#faf9f7",
|
|
"secondary": "#735c00",
|
|
"surface-container-low": "#f4f3f1",
|
|
"primary-container": "#a61d24",
|
|
"on-error-container": "#93000a",
|
|
"surface-dim": "#dadad8",
|
|
"on-error": "#ffffff",
|
|
"error": "#ba1a1a",
|
|
"tertiary-fixed-dim": "#bec9c2",
|
|
"primary": "#820012",
|
|
"surface": "#faf9f7",
|
|
"on-surface-variant": "#5a413f",
|
|
"on-primary-fixed": "#410004",
|
|
"on-tertiary": "#ffffff",
|
|
"surface-container": "#efeeec",
|
|
"primary-fixed-dim": "#ffb3ae",
|
|
"aged-amber": "#FFBF00",
|
|
"on-secondary-container": "#745c00",
|
|
"subtle-gray": "#999999",
|
|
"outline": "#8d706e",
|
|
"on-tertiary-fixed": "#141e19",
|
|
"outline-variant": "#e2bebc",
|
|
"surface-container-high": "#e9e8e6",
|
|
"secondary-fixed-dim": "#e9c349",
|
|
"status-blue": "#2A6EBB",
|
|
"on-background": "#1a1c1b",
|
|
"secondary-container": "#fed65b",
|
|
"error-container": "#ffdad6",
|
|
"on-secondary-fixed-variant": "#574500",
|
|
"on-surface": "#1a1c1b",
|
|
"on-secondary-fixed": "#241a00",
|
|
"primary-fixed": "#ffdad7",
|
|
"surface-container-lowest": "#ffffff",
|
|
"on-primary": "#ffffff",
|
|
"on-primary-container": "#ffb9b4",
|
|
"tertiary": "#37413b",
|
|
"ink-black": "#1A1A1A",
|
|
"surface-tint": "#b3272c"
|
|
},
|
|
"borderRadius": {
|
|
"DEFAULT": "0.25rem",
|
|
"lg": "0.5rem",
|
|
"xl": "0.75rem",
|
|
"full": "9999px"
|
|
},
|
|
"spacing": {
|
|
"stack-md": "16px",
|
|
"stack-sm": "4px",
|
|
"stack-lg": "32px",
|
|
"base": "8px",
|
|
"margin-page": "20px",
|
|
"gutter-card": "12px"
|
|
},
|
|
"fontFamily": {
|
|
"label-md": ["Inter"],
|
|
"coupon-amount": ["Manrope"],
|
|
"headline-lg-mobile": ["Manrope"],
|
|
"body-md": ["Be Vietnam Pro"],
|
|
"headline-lg": ["Manrope"],
|
|
"headline-md": ["Manrope"],
|
|
"headline-xl": ["Manrope"],
|
|
"body-lg": ["Be Vietnam Pro"]
|
|
},
|
|
"fontSize": {
|
|
"label-md": ["12px", {"lineHeight": "16px", "letterSpacing": "0.05em", "fontWeight": "500"}],
|
|
"coupon-amount": ["28px", {"lineHeight": "28px", "fontWeight": "700"}],
|
|
"headline-lg-mobile": ["20px", {"lineHeight": "28px", "fontWeight": "600"}],
|
|
"body-md": ["14px", {"lineHeight": "20px", "fontWeight": "400"}],
|
|
"headline-lg": ["24px", {"lineHeight": "32px", "fontWeight": "600"}],
|
|
"headline-md": ["18px", {"lineHeight": "26px", "fontWeight": "600"}],
|
|
"headline-xl": ["32px", {"lineHeight": "40px", "letterSpacing": "-0.02em", "fontWeight": "700"}],
|
|
"body-lg": ["16px", {"lineHeight": "24px", "fontWeight": "400"}]
|
|
}
|
|
},
|
|
},
|
|
}
|
|
</script>
|
|
<style>
|
|
.material-symbols-outlined {
|
|
font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
|
|
}
|
|
.notch-left, .notch-right {
|
|
position: absolute;
|
|
top: 50%;
|
|
width: 12px;
|
|
height: 12px;
|
|
background-color: #faf9f7; /* Matches surface color */
|
|
border-radius: 50%;
|
|
transform: translateY(-50%);
|
|
}
|
|
.notch-left { left: -6px; }
|
|
.notch-right { right: -6px; }
|
|
|
|
.glass-header {
|
|
backdrop-filter: blur(12px);
|
|
background: rgba(250, 249, 247, 0.8);
|
|
}
|
|
</style>
|
|
<style>
|
|
body {
|
|
min-height: max(884px, 100dvh);
|
|
}
|
|
</style>
|
|
</head>
|
|
<body class="bg-surface text-on-surface font-body-md antialiased pb-32">
|
|
<!-- TopAppBar (JSON Mapping) -->
|
|
<header class="fixed top-0 w-full flex justify-between items-center px-margin-page h-14 bg-surface-container-low z-50 shadow-sm glass-header">
|
|
<div class="flex items-center gap-4">
|
|
<span class="material-symbols-outlined text-primary" data-icon="menu">arrow_back</span>
|
|
<h1 class="font-headline-lg-mobile text-headline-lg-mobile font-bold text-heritage-red">推广码管理</h1>
|
|
</div>
|
|
<div class="flex items-center gap-2">
|
|
|
|
</div>
|
|
</header>
|
|
<main class="pt-20 px-margin-page">
|
|
<!-- Overview Stats Hero -->
|
|
<section class="mb-stack-lg bg-heritage-red rounded-xl p-6 text-white shadow-lg relative overflow-hidden">
|
|
<div class="relative z-10">
|
|
<p class="text-label-md font-label-md opacity-80 mb-1">本月累计推广收益</p>
|
|
<h2 class="text-headline-xl font-headline-xl mb-4">¥ 128,450.00</h2>
|
|
<div class="grid grid-cols-3 gap-2 border-t border-white/20 pt-4">
|
|
<div>
|
|
<p class="text-[10px] uppercase tracking-wider opacity-70">总扫码</p>
|
|
<p class="font-bold text-lg">4,291</p>
|
|
</div>
|
|
<div>
|
|
<p class="text-[10px] uppercase tracking-wider opacity-70">新增注册</p>
|
|
<p class="font-bold text-lg">852</p>
|
|
</div>
|
|
<div>
|
|
<p class="text-[10px] uppercase tracking-wider opacity-70">转化率</p>
|
|
<p class="font-bold text-lg">19.8%</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- Decorative circle -->
|
|
<div class="absolute -right-12 -top-12 w-48 h-48 bg-white/10 rounded-full blur-3xl"></div>
|
|
</section>
|
|
<!-- Search & Filter Bar -->
|
|
<div class="flex gap-3 mb-stack-md">
|
|
<div class="relative flex-1">
|
|
<span class="material-symbols-outlined absolute left-3 top-1/2 -translate-y-1/2 text-subtle-gray text-lg" data-icon="search">search</span>
|
|
<input class="w-full pl-10 pr-4 py-2.5 bg-white border-none rounded-xl text-sm focus:ring-1 focus:ring-heritage-red shadow-sm" placeholder="搜索城市或场景" type="text">
|
|
</div>
|
|
<button class="bg-white p-2.5 rounded-xl shadow-sm text-on-surface-variant">
|
|
<span class="material-symbols-outlined align-middle" data-icon="filter_list">filter_list</span>
|
|
</button>
|
|
</div>
|
|
<!-- CodeList -->
|
|
<div class="space-y-4">
|
|
<!-- CodeCard 1 -->
|
|
<div class="bg-surface-container-lowest rounded-xl p-4 shadow-[0px_4px_20px_rgba(166,29,36,0.05)] border border-transparent hover:border-heritage-red/10 transition-all">
|
|
<div class="flex justify-between items-start mb-4">
|
|
<div class="flex items-center gap-3">
|
|
<div class="w-12 h-12 rounded-lg bg-surface-container flex items-center justify-center">
|
|
<span class="material-symbols-outlined text-heritage-red" data-icon="qr_code_2">qr_code_2</span>
|
|
</div>
|
|
<div>
|
|
<div class="flex items-center gap-2">
|
|
<h3 class="font-headline-md text-headline-md text-ink-black">洛阳市</h3>
|
|
<span class="px-2 py-0.5 bg-aged-amber/10 text-secondary text-[10px] font-bold rounded uppercase">品鉴会</span>
|
|
</div>
|
|
<p class="text-label-md font-label-md text-subtle-gray">ID: DK-PROMO-00129</p>
|
|
</div>
|
|
</div>
|
|
<button class="text-subtle-gray hover:text-heritage-red transition-colors">
|
|
<span class="material-symbols-outlined" data-icon="more_vert">more_vert</span>
|
|
</button>
|
|
</div>
|
|
<!-- Stats Grid -->
|
|
<div class="grid grid-cols-3 gap-4 bg-surface rounded-lg p-3 mb-4">
|
|
<div class="text-center">
|
|
<p class="text-[10px] text-subtle-gray mb-1">扫码UV</p>
|
|
<p class="font-semibold text-ink-black">1,240</p>
|
|
</div>
|
|
<div class="text-center border-x border-surface-container-highest">
|
|
<p class="text-[10px] text-subtle-gray mb-1">注册数</p>
|
|
<p class="font-semibold text-ink-black">312</p>
|
|
</div>
|
|
<div class="text-center">
|
|
<p class="text-[10px] text-subtle-gray mb-1">GMV</p>
|
|
<p class="font-semibold text-heritage-red">¥45.2k</p>
|
|
</div>
|
|
</div>
|
|
<!-- Actions -->
|
|
<div class="flex gap-2">
|
|
<button class="flex-1 flex items-center justify-center gap-2 py-2.5 rounded-lg border border-heritage-red text-heritage-red font-semibold text-sm active:scale-95 transition-transform">
|
|
<span class="material-symbols-outlined text-lg" data-icon="download">download</span>
|
|
下载码
|
|
</button>
|
|
<button class="flex-1 flex items-center justify-center gap-2 py-2.5 rounded-lg bg-surface-container-high text-on-surface-variant font-semibold text-sm active:scale-95 transition-transform">
|
|
<span class="material-symbols-outlined text-lg" data-icon="visibility">visibility</span>
|
|
查看详情
|
|
</button>
|
|
</div>
|
|
</div>
|
|
<!-- CodeCard 2 -->
|
|
<div class="bg-surface-container-lowest rounded-xl p-4 shadow-[0px_4px_20px_rgba(166,29,36,0.05)] border border-transparent">
|
|
<div class="flex justify-between items-start mb-4">
|
|
<div class="flex items-center gap-3">
|
|
<div class="w-12 h-12 rounded-lg bg-surface-container flex items-center justify-center">
|
|
<span class="material-symbols-outlined text-heritage-red" data-icon="qr_code_2">qr_code_2</span>
|
|
</div>
|
|
<div>
|
|
<div class="flex items-center gap-2">
|
|
<h3 class="font-headline-md text-headline-md text-ink-black">郑州市</h3>
|
|
<span class="px-2 py-0.5 bg-aged-amber/10 text-secondary text-[10px] font-bold rounded uppercase">高端餐饮</span>
|
|
</div>
|
|
<p class="text-label-md font-label-md text-subtle-gray">ID: DK-PROMO-00130</p>
|
|
</div>
|
|
</div>
|
|
<button class="text-subtle-gray">
|
|
<span class="material-symbols-outlined" data-icon="more_vert">more_vert</span>
|
|
</button>
|
|
</div>
|
|
<div class="grid grid-cols-3 gap-4 bg-surface rounded-lg p-3 mb-4">
|
|
<div class="text-center">
|
|
<p class="text-[10px] text-subtle-gray mb-1">扫码UV</p>
|
|
<p class="font-semibold text-ink-black">892</p>
|
|
</div>
|
|
<div class="text-center border-x border-surface-container-highest">
|
|
<p class="text-[10px] text-subtle-gray mb-1">注册数</p>
|
|
<p class="font-semibold text-ink-black">156</p>
|
|
</div>
|
|
<div class="text-center">
|
|
<p class="text-[10px] text-subtle-gray mb-1">GMV</p>
|
|
<p class="font-semibold text-heritage-red">¥28.1k</p>
|
|
</div>
|
|
</div>
|
|
<div class="flex gap-2">
|
|
<button class="flex-1 flex items-center justify-center gap-2 py-2.5 rounded-lg border border-heritage-red text-heritage-red font-semibold text-sm">
|
|
<span class="material-symbols-outlined text-lg" data-icon="download">download</span>
|
|
下载码
|
|
</button>
|
|
<button class="flex-1 flex items-center justify-center gap-2 py-2.5 rounded-lg bg-surface-container-high text-on-surface-variant font-semibold text-sm">
|
|
<span class="material-symbols-outlined text-lg" data-icon="visibility">visibility</span>
|
|
查看详情
|
|
</button>
|
|
</div>
|
|
</div>
|
|
<!-- Promotional Banner (Visual Depth) -->
|
|
<div class="relative w-full h-32 rounded-xl overflow-hidden shadow-md">
|
|
|
|
|
|
</div>
|
|
<!-- CodeCard 3 -->
|
|
|
|
</div>
|
|
</main>
|
|
<!-- Bottom Navigation (JSON Mapping) -->
|
|
|
|
<!-- Floating Generate Button -->
|
|
<div class="fixed bottom-20 left-0 w-full px-margin-page pointer-events-none">
|
|
<button class="w-full pointer-events-auto flex items-center justify-center gap-3 bg-heritage-red text-white py-4 rounded-xl font-bold shadow-2xl active:scale-[0.98] transition-all">
|
|
<span class="material-symbols-outlined" data-icon="add_circle">add_circle</span>生成新推广码
|
|
</button>
|
|
</div>
|
|
<script>
|
|
// Micro-interactions
|
|
document.querySelectorAll('button').forEach(button => {
|
|
button.addEventListener('touchstart', function() {
|
|
this.classList.add('opacity-80');
|
|
});
|
|
button.addEventListener('touchend', function() {
|
|
this.classList.remove('opacity-80');
|
|
});
|
|
});
|
|
|
|
// Floating action button visibility on scroll
|
|
let lastScroll = 0;
|
|
const fab = document.querySelector('.fixed.bottom-20');
|
|
window.addEventListener('scroll', () => {
|
|
const currentScroll = window.pageYOffset;
|
|
if (currentScroll > lastScroll && currentScroll > 200) {
|
|
fab.style.transform = 'translateY(120px)';
|
|
fab.style.opacity = '0';
|
|
} else {
|
|
fab.style.transform = 'translateY(0)';
|
|
fab.style.opacity = '1';
|
|
}
|
|
fab.style.transition = 'all 0.4s cubic-bezier(0.4, 0, 0.2, 1)';
|
|
lastScroll = currentScroll;
|
|
});
|
|
</script>
|
|
|
|
|
|
</body></html> |