160 lines
10 KiB
HTML
160 lines
10 KiB
HTML
<!DOCTYPE html><html class="light" lang="zh-CN" style="width: 390px; height: 982px; overflow: hidden; position: relative;"><head>
|
|
<meta charset="utf-8">
|
|
<meta content="width=device-width, initial-scale=1.0" name="viewport">
|
|
<script src="https://cdn.tailwindcss.com?plugins=forms,container-queries"></script>
|
|
<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;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-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;
|
|
}
|
|
body {
|
|
background-color: #faf9f7;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
.order-scroll-container {
|
|
height: calc(100vh - 220px);
|
|
scrollbar-width: none;
|
|
}
|
|
.order-scroll-container::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
.card-red-shadow {
|
|
box-shadow: 0px 4px 20px rgba(166, 29, 36, 0.05);
|
|
}
|
|
</style>
|
|
<style>
|
|
body {
|
|
min-height: max(884px, 100dvh);
|
|
}
|
|
</style>
|
|
</head>
|
|
<body class="font-body-md text-on-surface">
|
|
<!-- TopAppBar -->
|
|
<header class="fixed top-0 w-full flex justify-between items-center px-margin-page h-14 bg-surface dark:bg-surface-dim z-50 shadow-sm"><div class="flex items-center gap-4 w-full"><button class="flex items-center justify-center w-8 h-8 rounded-full hover:bg-surface-container transition-colors"><span class="material-symbols-outlined text-on-surface" data-icon="arrow_back">arrow_back</span></button><div class="flex-1 flex items-center bg-surface-container-low px-3 py-1.5 rounded-full border border-outline-variant"><span class="material-symbols-outlined text-subtle-gray mr-2" data-icon="search">search</span><input autofocus="" class="bg-transparent border-none focus:ring-0 text-body-md w-full text-on-surface" placeholder="搜索订单号、手机号、城市" type="text"><span class="material-symbols-outlined text-subtle-gray cursor-pointer" data-icon="cancel">cancel</span></div></div></header>
|
|
<main class="pt-20 pb-24"><div class="px-margin-page pt-4 space-y-6"><!-- Filter Shortcuts --><div class="flex gap-2 overflow-x-auto scrollbar-hide pb-2"><button class="px-4 py-1.5 rounded-full bg-heritage-red text-white text-label-md font-label-md shrink-0">今日</button><button class="px-4 py-1.5 rounded-full bg-surface-container-high text-on-surface-variant text-label-md font-label-md shrink-0">昨日</button><button class="px-4 py-1.5 rounded-full bg-surface-container-high text-on-surface-variant text-label-md font-label-md shrink-0">近7天</button><button class="px-4 py-1.5 rounded-full bg-surface-container-high text-on-surface-variant text-label-md font-label-md shrink-0">本月</button></div><!-- Recent Searches --><section><div class="flex justify-between items-center mb-3"><h3 class="text-label-md font-semibold text-on-surface-variant">历史搜索</h3><span class="material-symbols-outlined text-subtle-gray text-[18px]" data-icon="delete">delete</span></div><div class="flex flex-wrap gap-2"><span class="px-3 py-1 rounded-lg bg-surface-container text-body-md text-on-surface">DK2023102401</span><span class="px-3 py-1 rounded-lg bg-surface-container text-body-md text-on-surface">188****8888</span><span class="px-3 py-1 rounded-lg bg-surface-container text-body-md text-on-surface">郑州</span><span class="px-3 py-1 rounded-lg bg-surface-container text-body-md text-on-surface">待发货</span></div></section><!-- Search Suggestions (Placeholder) --><section class="pt-4 border-t border-outline-variant"><h3 class="text-label-md font-semibold text-on-surface-variant mb-4">搜索建议</h3><div class="space-y-4"><div class="flex items-center gap-3 py-1"><span class="material-symbols-outlined text-subtle-gray" data-icon="history">history</span><span class="text-body-lg text-on-surface">DK20231024...</span></div><div class="flex items-center gap-3 py-1"><span class="material-symbols-outlined text-subtle-gray" data-icon="search">search</span><span class="text-body-lg text-on-surface">188 8888</span></div><div class="flex items-center gap-3 py-1"><span class="material-symbols-outlined text-subtle-gray" data-icon="search">search</span><span class="text-body-lg text-on-surface">洛阳 订单</span></div></div></section></div></main>
|
|
<!-- BottomNavBar -->
|
|
<!-- Micro-interaction script -->
|
|
<script>
|
|
document.querySelectorAll('button, a').forEach(el => {
|
|
el.addEventListener('click', function(e) {
|
|
if(this.classList.contains('active:scale-95')) return;
|
|
this.classList.add('opacity-50');
|
|
setTimeout(() => {
|
|
this.classList.remove('opacity-50');
|
|
}, 150);
|
|
});
|
|
});
|
|
|
|
// Simple scroll event for header elevation
|
|
const header = document.querySelector('header');
|
|
const scrollContainer = document.querySelector('.order-scroll-container');
|
|
|
|
scrollContainer.addEventListener('scroll', () => {
|
|
if (scrollContainer.scrollTop > 10) {
|
|
header.classList.add('shadow-md');
|
|
} else {
|
|
header.classList.remove('shadow-md');
|
|
}
|
|
});
|
|
</script>
|
|
</body></html> |