feat: multi-module iteration
This commit is contained in:
@@ -0,0 +1,256 @@
|
||||
<!DOCTYPE html><html class="light" lang="zh-CN" style=""><head>
|
||||
<meta charset="utf-8">
|
||||
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
|
||||
<script src="https://cdn.tailwindcss.com?plugins=forms,container-queries"></script>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&family=Be+Vietnam+Pro:wght@400;500&family=Inter: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">
|
||||
<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-bright": "#faf9f7",
|
||||
"tertiary-fixed": "#dae5dd",
|
||||
"on-primary-fixed-variant": "#910817",
|
||||
"surface-container-lowest": "#ffffff",
|
||||
"secondary": "#735c00",
|
||||
"ink-black": "#1A1A1A",
|
||||
"primary-fixed-dim": "#ffb3ae",
|
||||
"inverse-surface": "#2f3130",
|
||||
"on-primary": "#ffffff",
|
||||
"on-tertiary": "#ffffff",
|
||||
"error": "#ba1a1a",
|
||||
"secondary-fixed": "#ffe088",
|
||||
"on-tertiary-fixed-variant": "#3f4943",
|
||||
"tertiary": "#37413b",
|
||||
"inverse-primary": "#ffb3ae",
|
||||
"primary-container": "#a61d24",
|
||||
"on-primary-container": "#ffb9b4",
|
||||
"primary-fixed": "#ffdad7",
|
||||
"surface-dim": "#dadad8",
|
||||
"on-secondary-container": "#745c00",
|
||||
"on-error": "#ffffff",
|
||||
"surface-container-low": "#f4f3f1",
|
||||
"surface-container-highest": "#e3e2e0",
|
||||
"subtle-gray": "#999999",
|
||||
"surface-container": "#efeeec",
|
||||
"secondary-fixed-dim": "#e9c349",
|
||||
"on-tertiary-fixed": "#141e19",
|
||||
"surface-variant": "#e3e2e0",
|
||||
"on-tertiary-container": "#c2cdc6",
|
||||
"inverse-on-surface": "#f1f1ef",
|
||||
"heritage-red": "#A61D24",
|
||||
"outline": "#8d706e",
|
||||
"surface-tint": "#b3272c",
|
||||
"on-secondary-fixed": "#241a00",
|
||||
"on-secondary-fixed-variant": "#574500",
|
||||
"on-error-container": "#93000a",
|
||||
"status-blue": "#2A6EBB",
|
||||
"outline-variant": "#e2bebc",
|
||||
"success-green": "#2D6A4F",
|
||||
"tertiary-fixed-dim": "#bec9c2",
|
||||
"secondary-container": "#fed65b",
|
||||
"on-secondary": "#ffffff",
|
||||
"background": "#faf9f7",
|
||||
"surface": "#faf9f7",
|
||||
"on-background": "#1a1c1b",
|
||||
"error-container": "#ffdad6",
|
||||
"tertiary-container": "#4e5852",
|
||||
"on-surface": "#1a1c1b",
|
||||
"aged-amber": "#FFBF00",
|
||||
"surface-container-high": "#e9e8e6",
|
||||
"primary": "#820012"
|
||||
},
|
||||
"borderRadius": {
|
||||
"DEFAULT": "0.25rem",
|
||||
"lg": "0.5rem",
|
||||
"xl": "0.75rem",
|
||||
"full": "9999px"
|
||||
},
|
||||
"spacing": {
|
||||
"gutter-card": "12px",
|
||||
"stack-md": "16px",
|
||||
"base": "8px",
|
||||
"stack-lg": "32px",
|
||||
"stack-sm": "4px",
|
||||
"margin-page": "20px"
|
||||
},
|
||||
"fontFamily": {
|
||||
"body-md": ["Be Vietnam Pro"],
|
||||
"coupon-amount": ["Manrope"],
|
||||
"label-md": ["Inter"],
|
||||
"headline-lg-mobile": ["Manrope"],
|
||||
"headline-lg": ["Manrope"],
|
||||
"headline-xl": ["Manrope"],
|
||||
"headline-md": ["Manrope"],
|
||||
"body-lg": ["Be Vietnam Pro"]
|
||||
},
|
||||
"fontSize": {
|
||||
"body-md": ["14px", {"lineHeight": "20px", "fontWeight": "400"}],
|
||||
"coupon-amount": ["28px", {"lineHeight": "28px", "fontWeight": "700"}],
|
||||
"label-md": ["12px", {"lineHeight": "16px", "letterSpacing": "0.05em", "fontWeight": "500"}],
|
||||
"headline-lg-mobile": ["20px", {"lineHeight": "28px", "fontWeight": "600"}],
|
||||
"headline-lg": ["24px", {"lineHeight": "32px", "fontWeight": "600"}],
|
||||
"headline-xl": ["32px", {"lineHeight": "40px", "letterSpacing": "-0.02em", "fontWeight": "700"}],
|
||||
"headline-md": ["18px", {"lineHeight": "26px", "fontWeight": "600"}],
|
||||
"body-lg": ["16px", {"lineHeight": "24px", "fontWeight": "400"}]
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
.material-symbols-outlined {
|
||||
font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
|
||||
}
|
||||
.notch-ticket {
|
||||
mask-image: radial-gradient(circle at 0 50%, transparent 8px, black 8.5px), radial-gradient(circle at 100% 50%, transparent 8px, black 8.5px);
|
||||
-webkit-mask-image: radial-gradient(circle at 0 50%, transparent 8px, black 8.5px), radial-gradient(circle at 100% 50%, transparent 8px, black 8.5px);
|
||||
}
|
||||
.grain-overlay {
|
||||
background-image: url("https://www.transparenttextures.com/patterns/felt.png");
|
||||
opacity: 0.03;
|
||||
pointer-events: none;
|
||||
}
|
||||
body {
|
||||
background-color: #faf9f7;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
body {
|
||||
min-height: max(884px, 100dvh);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body class="font-body-md text-on-background selection:bg-heritage-red selection:text-white">
|
||||
<!-- TopAppBar -->
|
||||
<header class="fixed top-0 w-full h-14 flex items-center px-margin-page bg-surface dark:bg-surface-dim shadow-sm z-50">
|
||||
<div class="flex items-center justify-between w-full">
|
||||
<button class="p-2 hover:bg-surface-container-highest transition-colors active:scale-95 duration-100 rounded-full">
|
||||
|
||||
</button>
|
||||
<h1 class="font-headline-lg-mobile text-headline-lg-mobile font-bold text-heritage-red">门店管理中心</h1>
|
||||
<button class="p-2 hover:bg-surface-container-highest transition-colors active:scale-95 duration-100 rounded-full">
|
||||
<span class="material-symbols-outlined text-primary dark:text-primary-fixed-dim">account_circle</span>
|
||||
</button>
|
||||
</div>
|
||||
</header>
|
||||
<main class="pt-14 pb-20 px-margin-page space-y-6">
|
||||
<!-- Top Section (Heritage Red Card) -->
|
||||
<section class="mt-4 relative overflow-hidden bg-heritage-red rounded-xl p-6 shadow-xl text-white">
|
||||
<div class="absolute inset-0 grain-overlay"></div>
|
||||
<div class="relative z-10">
|
||||
<div class="flex items-center space-x-2 mb-6">
|
||||
<span class="material-symbols-outlined" style="font-variation-settings: 'FILL' 1;">store</span>
|
||||
<h2 class="font-headline-md text-headline-md font-bold">洛阳老城店</h2>
|
||||
</div>
|
||||
<div class="grid grid-cols-2 gap-4">
|
||||
<div class="bg-white/10 backdrop-blur-sm rounded-lg p-4 border border-white/5">
|
||||
<p class="font-label-md text-label-md text-white/80 uppercase tracking-wider mb-1">今日核销笔数</p>
|
||||
<p class="font-headline-xl text-headline-xl font-bold">12</p>
|
||||
</div>
|
||||
<div class="bg-white/10 backdrop-blur-sm rounded-lg p-4 border border-white/5">
|
||||
<p class="font-label-md text-label-md text-white/80 uppercase tracking-wider mb-1">今日到账金额</p>
|
||||
<p class="font-headline-xl text-headline-xl font-bold font-coupon-amount"><span class="text-lg">¥</span>1,200</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Center Action: Scan QR Code -->
|
||||
<section class="flex flex-col items-center justify-center py-4">
|
||||
<button class="group relative w-32 h-32 rounded-full bg-aged-amber shadow-[0px_10px_30px_rgba(255,191,0,0.3)] flex items-center justify-center active:scale-90 transition-all duration-200 border-4 border-white">
|
||||
<div class="absolute inset-0 rounded-full animate-ping bg-aged-amber opacity-20"></div>
|
||||
<div class="flex flex-col items-center">
|
||||
<span class="material-symbols-outlined text-heritage-red text-5xl mb-1" style="font-variation-settings: 'FILL' 1;">qr_code_scanner</span>
|
||||
</div>
|
||||
</button>
|
||||
<p class="mt-4 font-headline-md text-headline-md text-heritage-red font-bold">扫码核销</p>
|
||||
</section>
|
||||
<!-- Middle Section: Business Status -->
|
||||
<section class="bg-white rounded-xl p-5 shadow-sm flex items-center justify-between border border-outline-variant/30">
|
||||
<div class="flex items-center space-x-3">
|
||||
<div class="w-10 h-10 rounded-full bg-success-green/10 flex items-center justify-center">
|
||||
<span class="material-symbols-outlined text-success-green" style="font-variation-settings: 'FILL' 1;">schedule</span>
|
||||
</div>
|
||||
<div>
|
||||
<h3 class="font-body-lg text-body-lg font-bold">营业状态</h3>
|
||||
<p class="text-label-md text-subtle-gray">当前正在营业中</p><p class="text-label-md text-subtle-gray mt-1">营业时间: 10:00 - 22:00</p>
|
||||
</div>
|
||||
</div>
|
||||
<label class="relative inline-flex items-center cursor-pointer">
|
||||
<input checked="" class="sr-only peer" type="checkbox">
|
||||
<div class="w-11 h-6 bg-surface-container-highest peer-focus:outline-none rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-success-green"></div>
|
||||
</label>
|
||||
</section>
|
||||
<!-- Bottom Section: Recent Records -->
|
||||
<section class="space-y-4">
|
||||
<div class="flex items-center justify-between">
|
||||
<h3 class="font-headline-md text-headline-md font-bold text-ink-black">核销记录</h3>
|
||||
<a class="text-label-md text-heritage-red font-bold flex items-center" href="#">
|
||||
查看全部 <span class="material-symbols-outlined text-sm ml-1">chevron_right</span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="space-y-3">
|
||||
<!-- Record 1 -->
|
||||
<div class="bg-white rounded-xl p-4 flex items-center justify-between border border-outline-variant/20 shadow-[0px_4px_20px_rgba(166,29,36,0.03)]"><div class="flex flex-col"><p class="text-label-md text-subtle-gray">核销时间</p><h4 class="font-body-lg text-body-lg font-bold">2026-06-18 14:20:05</h4></div><div class="text-right"><p class="text-label-md text-subtle-gray">核销金额</p><p class="font-headline-md text-heritage-red font-bold">¥299</p></div></div>
|
||||
<!-- Record 2 -->
|
||||
<div class="bg-white rounded-xl p-4 flex items-center justify-between border border-outline-variant/20 shadow-[0px_4px_20px_rgba(166,29,36,0.03)]"><div class="flex flex-col"><p class="text-label-md text-subtle-gray">核销时间</p><h4 class="font-body-lg text-body-lg font-bold">2026-06-18 13:45:12</h4></div><div class="text-right"><p class="text-label-md text-subtle-gray">核销金额</p><p class="font-headline-md text-heritage-red font-bold">¥1,200</p></div></div>
|
||||
<!-- Record 3 -->
|
||||
<div class="bg-white rounded-xl p-4 flex items-center justify-between border border-outline-variant/20 shadow-[0px_4px_20px_rgba(166,29,36,0.03)]"><div class="flex flex-col"><p class="text-label-md text-subtle-gray">核销时间</p><h4 class="font-body-lg text-body-lg font-bold">2026-06-18 11:10:30</h4></div><div class="text-right"><p class="text-label-md text-subtle-gray">核销金额</p><p class="font-headline-md text-heritage-red font-bold">¥199</p></div></div>
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
<!-- BottomNavBar -->
|
||||
<nav class="fixed bottom-0 w-full flex justify-around items-center h-16 px-4 pb-safe bg-surface-container-lowest dark:bg-inverse-surface shadow-lg z-50 rounded-t-xl border-t border-outline-variant">
|
||||
<a class="flex flex-col items-center justify-center text-heritage-red font-bold scale-110 transition-transform" href="#">
|
||||
<span class="material-symbols-outlined" style="font-variation-settings: "FILL" 1;">home</span>
|
||||
<span class="font-label-md text-label-md mt-1">首页</span>
|
||||
</a>
|
||||
<a class="flex flex-col items-center justify-center text-subtle-gray hover:text-heritage-red active:opacity-80 transition-opacity" href="#">
|
||||
<span class="material-symbols-outlined">receipt_long</span>
|
||||
<span class="font-label-md text-label-md mt-1">核销记录</span>
|
||||
</a>
|
||||
<a class="flex flex-col items-center justify-center text-subtle-gray hover:text-heritage-red active:opacity-80 transition-opacity" href="#">
|
||||
<span class="material-symbols-outlined">person</span>
|
||||
<span class="font-label-md text-label-md mt-1">我的</span>
|
||||
</a>
|
||||
</nav>
|
||||
<script>
|
||||
// Micro-interaction for the Scan Button
|
||||
const scanBtn = document.querySelector('.group');
|
||||
if (scanBtn) {
|
||||
scanBtn.addEventListener('click', function() {
|
||||
this.classList.add('scale-95');
|
||||
setTimeout(() => {
|
||||
this.classList.remove('scale-95');
|
||||
}, 200);
|
||||
});
|
||||
}
|
||||
|
||||
// Toggle Switch feedback
|
||||
const toggle = document.querySelector('input[type="checkbox"]');
|
||||
const statusText = document.querySelector('.text-label-md.text-subtle-gray');
|
||||
if (toggle && statusText) {
|
||||
toggle.addEventListener('change', function() {
|
||||
if(this.checked) {
|
||||
statusText.innerText = '当前正在营业中';
|
||||
statusText.classList.remove('text-error');
|
||||
statusText.classList.add('text-subtle-gray');
|
||||
} else {
|
||||
statusText.innerText = '当前已停止营业';
|
||||
statusText.classList.add('text-error');
|
||||
statusText.classList.remove('text-subtle-gray');
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</body></html>
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"title": "门店管理首页",
|
||||
"screenId": "4a4f4a2140b3476c999530d1a7ed288d",
|
||||
"category": "shop",
|
||||
"syncedAt": "2026-06-29T08:06:31.550Z"
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 27 KiB |
Reference in New Issue
Block a user