Files
dukang/pages/_archive/订单中心管理页_a8f37483/code.html
T
2026-06-30 10:33:56 +08:00

296 lines
16 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&amp;family=Manrope:wght@600;700;800&amp;family=Be+Vietnam+Pro:wght@400;500;600&amp;display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&amp;display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&amp;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">
<span class="material-symbols-outlined text-primary" data-icon="search">search</span>
</div>
<h1 class="font-headline-lg-mobile text-headline-lg-mobile font-bold text-heritage-red">订单中心</h1>
<div class="flex items-center">
</div>
</header>
<main class="pt-20 pb-24">
<!-- Filter & Batch Action Section -->
<section class="px-margin-page mb-6">
<div class="flex justify-between items-end mb-4">
<div class="flex flex-col gap-1">
<span class="font-label-md text-label-md text-subtle-gray">概览</span>
<h2 class="font-headline-md text-headline-md text-ink-black">实时订单管理</h2>
</div>
<button class="flex items-center gap-1 px-4 py-2 rounded-lg bg-surface border border-outline-variant text-primary font-label-md text-label-md hover:bg-surface-container-high transition-colors">
<span class="material-symbols-outlined text-[18px]" data-icon="ios_share">ios_share</span>
<span class="">导出CSV</span>
</button>
</div>
<!-- FilterBar -->
<div class="flex gap-2 overflow-x-auto pb-2 scrollbar-hide">
<div class="flex items-center bg-white px-3 py-2 rounded-xl border border-outline-variant shadow-sm shrink-0">
<span class="text-label-md font-label-md text-on-surface-variant mr-1">城市:</span>
<span class="text-label-md font-label-md text-ink-black mr-2">洛阳</span>
<span class="material-symbols-outlined text-[16px] text-subtle-gray" data-icon="expand_more">expand_more</span>
</div>
<div class="flex items-center bg-white px-3 py-2 rounded-xl border border-outline-variant shadow-sm shrink-0">
<span class="text-label-md font-label-md text-on-surface-variant mr-1">状态:</span>
<span class="text-label-md font-label-md text-heritage-red mr-2">全部</span>
<span class="material-symbols-outlined text-[16px] text-subtle-gray" data-icon="expand_more">expand_more</span>
</div><div class="flex items-center bg-white px-3 py-2 rounded-xl border border-outline-variant shadow-sm shrink-0">
<span class="text-label-md font-label-md text-on-surface-variant mr-1">日期:</span>
<span class="text-label-md font-label-md text-ink-black mr-2">今日</span>
<span class="material-symbols-outlined text-[16px] text-subtle-gray" data-icon="calendar_today">calendar_today</span>
</div>
</div>
</section>
<!-- Order List -->
<section class="order-scroll-container overflow-y-auto px-margin-page space-y-4" style="height: calc(-20px + 100vh); padding-bottom: 100px;">
<!-- Order Card 1 (Pending) -->
<div class="bg-surface-container-lowest p-gutter-card rounded-xl card-red-shadow border border-heritage-red/5">
<div class="flex justify-between items-start mb-3">
<div class="space-y-0.5">
<span class="font-label-md text-label-md text-subtle-gray">单号: DK2023102401</span>
<div class="flex items-center gap-2">
<span class="font-body-lg text-body-lg font-semibold text-ink-black">188 **** 8888</span>
<span class="px-2 py-0.5 rounded bg-secondary-container text-on-secondary-container text-label-md font-label-md">跨城订单</span></div>
</div>
<span class="text-secondary font-label-md text-label-md flex items-center gap-1"><span class="w-1.5 h-1.5 rounded-full bg-aged-amber animate-pulse"></span>待发货</span>
</div>
<div class="flex gap-3 mb-4 bg-surface-container-low p-2 rounded-lg">
<div class="w-16 h-16 rounded overflow-hidden flex-shrink-0">
<img class="w-full h-full object-cover" data-alt="A premium 1:1 studio photograph of a classic Dukang liquor bottle with a traditional red and gold label, set against a soft, creamy white background. The lighting is elegant and directional, highlighting the glass texture and the liquid inside. The overall aesthetic is heritage-focused and minimalist, consistent with a high-end Chinese distillery's brand identity." src="https://lh3.googleusercontent.com/aida-public/AB6AXuANJ-AqirPsHLRzUcAmVhFqltrJU6TPr_CRgdeoSnii_un0Dgjnigj4i_ju4wGM4qB66EMcy4UzcJG42xzgQfyfKOrzm7s6FL2-EVzdPiqbxCLExKGI73peyFfcU5oV7aKV92jFTeB8FuBEaxALN-9x01BJICwVeXTDhnWJWW39-5U7Af5xPOjWpRwFlUhiD3tKQ6aBCV6zsleRymwQplBcXvui1zNHAaUOhhwj8bia4b3vn07dP0xGEIlzUbnL5Tc4wOh9bkPmDcU">
</div>
<div class="flex flex-col justify-center">
<h3 class="font-body-md text-body-md font-medium text-on-surface">杜康·国花 52度浓香型 500ml</h3>
<p class="text-label-md text-subtle-gray mt-1">数量: x2 | 合计: ¥1,298</p>
</div>
</div>
<div class="flex justify-end items-center gap-2 pt-2 border-t border-surface-container">
<button class="px-4 py-1.5 rounded-lg text-on-surface-variant font-label-md text-label-md hover:bg-surface-container transition-colors">详情</button>
<button class="px-4 py-1.5 rounded-lg bg-heritage-red text-white font-label-md text-label-md active:opacity-80 transition-opacity">立即发货</button>
</div>
</div>
<!-- Order Card 2 (Shipping) -->
<div class="bg-surface-container-lowest p-gutter-card rounded-xl card-red-shadow border border-heritage-red/5">
<div class="flex justify-between items-start mb-3">
<div class="space-y-0.5">
<span class="font-label-md text-label-md text-subtle-gray">单号: DK2023102405</span>
<div class="flex items-center gap-2">
<span class="font-body-lg text-body-lg font-semibold text-ink-black">135 **** 9912</span>
</div>
</div>
<span class="text-status-blue font-label-md text-label-md flex items-center gap-1">
<span class="material-symbols-outlined text-[16px]" data-icon="local_shipping">local_shipping</span>
配送中
</span>
</div>
<div class="flex gap-3 mb-4 bg-surface-container-low p-2 rounded-lg">
<div class="w-16 h-16 rounded overflow-hidden flex-shrink-0">
<img class="w-full h-full object-cover" data-alt="Close-up of a premium Chinese baijiu bottle with ornate gold embossing and a deep red silk tassel. The scene is lit with warm, amber atmospheric lighting that evokes the feeling of a refined dining room or a luxury spirit cellar. The style is sophisticated, using deep shadows and rich textures to convey quality and thousand-year heritage." src="https://lh3.googleusercontent.com/aida-public/AB6AXuBel8qTYGvg-1x_s1OGR9I8uNUpKjMymXGyzqNf9xmY5mIdctsVRkSfGKxOZTzoYx_cQBfZgGtAYXxrAF5faM99_wf7rsYXB5Pz_sfZKJbcmDiq0KNchqPlvFjR55scHAznmqEn1w_ogqKX1tali1R-rgDi2cPyOq4cEDomD0XVhj89wpRwc8iUPSgdjOQdVwLUiHRFTmDqnDruV9jUM271X2wlVCQ3KdcYVZumvTRMr-LF0NXxp3AfTshSBphumSo7o7x2iqG2X68">
</div>
<div class="flex flex-col justify-center">
<h3 class="font-body-md text-body-md font-medium text-on-surface">杜康·老窖窖藏 窖龄30年</h3>
<p class="text-label-md text-subtle-gray mt-1">数量: x1 | 合计: ¥899</p>
</div>
</div>
<div class="flex justify-end items-center gap-2 pt-2 border-t border-surface-container">
<button class="px-4 py-1.5 rounded-lg text-on-surface-variant font-label-md text-label-md hover:bg-surface-container transition-colors">详情</button>
<button class="px-4 py-1.5 rounded-lg border border-outline text-on-surface-variant font-label-md text-label-md">查看物流</button>
</div>
</div>
<!-- Order Card 3 (Completed) -->
<div class="bg-surface-container-lowest p-gutter-card rounded-xl card-red-shadow border border-heritage-red/5 opacity-80">
<div class="flex justify-between items-start mb-3">
<div class="space-y-0.5">
<span class="font-label-md text-label-md text-subtle-gray">单号: DK2023102388</span>
<div class="flex items-center gap-2">
<span class="font-body-lg text-body-lg font-semibold text-ink-black">152 **** 0031</span>
</div>
</div>
<span class="text-success-green font-label-md text-label-md flex items-center gap-1">
<span class="material-symbols-outlined text-[16px]" data-icon="check_circle">check_circle</span>
已完成
</span>
</div>
<div class="flex gap-3 mb-4 bg-surface-container-low p-2 rounded-lg grayscale">
<div class="w-16 h-16 rounded overflow-hidden flex-shrink-0">
<img class="w-full h-full object-cover" data-alt="A clean, minimalist presentation of a luxury spirits gift box, featuring a deep red exterior with elegant gold leaf patterns. The box is set on a neutral, paper-textured background in a studio setting. The lighting is soft and ambient, emphasizing the tactile quality and premium nature of the packaging, consistent with the Heritage Modernism style." src="https://lh3.googleusercontent.com/aida-public/AB6AXuCzJs2Uw5S6ri9ew6FUDvB_-BPnOghhEauk_Gc4FWynlXjYcrF_HqudJ1EGHE1QVAufcYEPzOgDeVKhXX_eNPnJsuLViNeDlEXb9QDrvcqCVfNTbHJR90E80XXP6HEdWJaPKgxd1-atk1yb2mmGWpncmiCJMJ8k_dbKqO4q3GfJA0UshZGbeN8EHX_SOpipIczuVrtAfVkVoBgv_6Vi-VAN6BdYdwreW5TPdDUnyHS7AGtyChcxx3zvqf7tk7oLUhEp7p5P2FQwtmU">
</div>
<div class="flex flex-col justify-center">
<h3 class="font-body-md text-body-md font-medium text-on-surface">杜康·周年纪念礼盒v</h3>
<p class="text-label-md text-subtle-gray mt-1">数量: x4 | 合计: ¥5,192</p>
</div>
</div>
<div class="flex justify-end items-center gap-2 pt-2 border-t border-surface-container">
<button class="px-4 py-1.5 rounded-lg text-on-surface-variant font-label-md text-label-md hover:bg-surface-container transition-colors">详情</button>
</div>
</div>
</section>
</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>