feat: multi-module iteration
This commit is contained in:
@@ -0,0 +1,297 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html class="light" lang="zh-CN" style="width: 390px; height: 1090px; overflow: hidden; position: relative;"><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;500;600;700&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"/>
|
||||
<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",
|
||||
"primary-fixed": "#ffdad7",
|
||||
"on-secondary-fixed-variant": "#574500",
|
||||
"surface-tint": "#b3272c",
|
||||
"tertiary-container": "#4e5852",
|
||||
"status-blue": "#2A6EBB",
|
||||
"surface-dim": "#dadad8",
|
||||
"heritage-red": "#A61D24",
|
||||
"on-error-container": "#93000a",
|
||||
"on-secondary-container": "#745c00",
|
||||
"surface-container-high": "#e9e8e6",
|
||||
"secondary-fixed": "#ffe088",
|
||||
"outline-variant": "#e2bebc",
|
||||
"surface-container-lowest": "#ffffff",
|
||||
"on-primary": "#ffffff",
|
||||
"surface-container": "#efeeec",
|
||||
"tertiary": "#37413b",
|
||||
"surface": "#faf9f7",
|
||||
"on-tertiary": "#ffffff",
|
||||
"primary-fixed-dim": "#ffb3ae",
|
||||
"on-surface-variant": "#5a413f",
|
||||
"tertiary-fixed-dim": "#bec9c2",
|
||||
"on-surface": "#1a1c1b",
|
||||
"inverse-surface": "#2f3130",
|
||||
"on-tertiary-fixed-variant": "#3f4943",
|
||||
"on-secondary-fixed": "#241a00",
|
||||
"secondary": "#735c00",
|
||||
"on-background": "#1a1c1b",
|
||||
"on-tertiary-container": "#c2cdc6",
|
||||
"primary": "#820012",
|
||||
"success-green": "#2D6A4F",
|
||||
"on-tertiary-fixed": "#141e19",
|
||||
"tertiary-fixed": "#dae5dd",
|
||||
"primary-container": "#a61d24",
|
||||
"inverse-primary": "#ffb3ae",
|
||||
"error-container": "#ffdad6",
|
||||
"error": "#ba1a1a",
|
||||
"on-primary-fixed-variant": "#910817",
|
||||
"on-error": "#ffffff",
|
||||
"background": "#faf9f7",
|
||||
"secondary-container": "#fed65b",
|
||||
"surface-variant": "#e3e2e0",
|
||||
"on-primary-fixed": "#410004",
|
||||
"secondary-fixed-dim": "#e9c349",
|
||||
"inverse-on-surface": "#f1f1ef",
|
||||
"subtle-gray": "#999999",
|
||||
"aged-amber": "#FFBF00",
|
||||
"surface-container-low": "#f4f3f1",
|
||||
"outline": "#8d706e",
|
||||
"on-primary-container": "#ffb9b4",
|
||||
"ink-black": "#1A1A1A",
|
||||
"surface-container-highest": "#e3e2e0",
|
||||
"on-secondary": "#ffffff"
|
||||
},
|
||||
"borderRadius": {
|
||||
"DEFAULT": "0.25rem",
|
||||
"lg": "0.5rem",
|
||||
"xl": "0.75rem",
|
||||
"full": "9999px"
|
||||
},
|
||||
"spacing": {
|
||||
"margin-page": "20px",
|
||||
"gutter-card": "12px",
|
||||
"stack-lg": "32px",
|
||||
"stack-sm": "4px",
|
||||
"base": "8px",
|
||||
"stack-md": "16px"
|
||||
},
|
||||
"fontFamily": {
|
||||
"body-lg": ["Be Vietnam Pro"],
|
||||
"label-md": ["Inter"],
|
||||
"headline-md": ["Manrope"],
|
||||
"body-md": ["Be Vietnam Pro"],
|
||||
"headline-lg-mobile": ["Manrope"],
|
||||
"coupon-amount": ["Manrope"],
|
||||
"headline-xl": ["Manrope"],
|
||||
"headline-lg": ["Manrope"]
|
||||
},
|
||||
"fontSize": {
|
||||
"body-lg": ["16px", {"lineHeight": "24px", "fontWeight": "400"}],
|
||||
"label-md": ["12px", {"lineHeight": "16px", "letterSpacing": "0.05em", "fontWeight": "500"}],
|
||||
"headline-md": ["18px", {"lineHeight": "26px", "fontWeight": "600"}],
|
||||
"body-md": ["14px", {"lineHeight": "20px", "fontWeight": "400"}],
|
||||
"headline-lg-mobile": ["20px", {"lineHeight": "28px", "fontWeight": "600"}],
|
||||
"coupon-amount": ["28px", {"lineHeight": "28px", "fontWeight": "700"}],
|
||||
"headline-xl": ["32px", {"lineHeight": "40px", "letterSpacing": "-0.02em", "fontWeight": "700"}],
|
||||
"headline-lg": ["24px", {"lineHeight": "32px", "fontWeight": "600"}]
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
.material-symbols-outlined {
|
||||
font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
|
||||
}
|
||||
.coupon-notch {
|
||||
mask: radial-gradient(circle at left, transparent 8px, black 8.5px),
|
||||
radial-gradient(circle at right, transparent 8px, black 8.5px);
|
||||
mask-composite: intersect;
|
||||
}
|
||||
::-webkit-scrollbar { display: none; }
|
||||
body { -webkit-tap-highlight-color: transparent; }
|
||||
</style>
|
||||
</head>
|
||||
<body class="bg-surface-bright text-on-surface font-body-md selection:bg-heritage-red selection:text-white">
|
||||
<!-- TopAppBar -->
|
||||
<header class="fixed top-0 left-0 w-full z-50 flex items-center px-4 h-12 bg-surface dark:bg-surface">
|
||||
<button class="active:opacity-70 transition-opacity duration-200 w-6 h-6 flex items-center justify-center"><span class="material-symbols-outlined text-on-surface">arrow_back</span></button>
|
||||
<div class="flex-1 text-center">
|
||||
<h1 class="font-headline-lg-mobile text-headline-lg-mobile font-semibold text-on-surface">我的订单</h1>
|
||||
</div>
|
||||
<div class="w-6"></div> <!-- Spacer for balance -->
|
||||
</header>
|
||||
<!-- NavigationDrawer (Horizontal Filter) -->
|
||||
<nav class="sticky top-12 w-full z-40 flex justify-around bg-surface-bright px-margin-page h-10 items-center">
|
||||
<!-- 全部 (All) -->
|
||||
<button class="h-full flex items-center font-label-md text-label-md text-heritage-red border-b-2 border-heritage-red font-bold transition-all duration-200">
|
||||
全部
|
||||
</button>
|
||||
<!-- 待付款 -->
|
||||
<button class="h-full flex items-center font-label-md text-label-md text-on-surface-variant active:bg-surface-container-high transition-all duration-200 px-2">
|
||||
待付款
|
||||
</button>
|
||||
<!-- 待收货 -->
|
||||
<button class="h-full flex items-center font-label-md text-label-md text-on-surface-variant active:bg-surface-container-high transition-all duration-200 px-2">
|
||||
待收货
|
||||
</button>
|
||||
<!-- 已完成 -->
|
||||
<button class="h-full flex items-center font-label-md text-label-md text-on-surface-variant active:bg-surface-container-high transition-all duration-200 px-2">
|
||||
已完成
|
||||
</button>
|
||||
</nav>
|
||||
<!-- Order List Container -->
|
||||
<main class="px-margin-page pt-8 pb-32 space-y-6"><div class="bg-surface-container-lowest rounded-xl p-4 shadow-[0px_4px_20px_rgba(166,29,36,0.05)] border border-heritage-red/5">
|
||||
<!-- Header -->
|
||||
<div class="flex justify-between items-center mb-4 pb-3 border-b border-surface-container">
|
||||
<div class="flex items-center gap-2">
|
||||
<span class="font-label-md text-on-surface-variant">订单号: DK20231005002</span>
|
||||
<span class="px-2 py-0.5 bg-heritage-red/5 text-heritage-red text-[10px] font-bold rounded border border-heritage-red/20">补发单</span>
|
||||
</div>
|
||||
<span class="text-heritage-red font-semibold font-body-md">补发中</span>
|
||||
</div>
|
||||
<!-- Body -->
|
||||
<div class="flex gap-4 mb-4">
|
||||
<img class="w-20 h-20 rounded-lg object-cover bg-surface-container flex-shrink-0" src="https://lh3.googleusercontent.com/aida-public/AB6AXuAdcSLoRpx3rhqCdX-VYMZxzwzRcH0pfl-CXhEcRpy1rai4ewG685xjrHs4_vO5IxJj22Z2sUTMEJsyW_hsKaGgJSIa8me_aCtAbrok9Op1AX3P7RxEWa6ow-1PtwZVZW_pfDeohRYU47JBUlC9eZo51GSqRd6PNR63hjRBpi4NoTu2ITFDsiElIQadQrQ3yh7oKUmGSm2VGqVgCDjZfHO47mYPdxK9uo5YyrzOjpJK1gZ4XnvmEV4zkQZQVQa1cYae-RxyGpl9ErM"/>
|
||||
<div class="flex-1 flex flex-col justify-between">
|
||||
<div>
|
||||
<h3 class="font-headline-md text-on-surface leading-tight">杜康·御享15代</h3>
|
||||
<p class="text-subtle-gray font-label-md mt-1">500ml | 52% vol</p>
|
||||
</div>
|
||||
<div class="flex justify-between items-baseline">
|
||||
<span class="font-label-md text-on-surface-variant">x1</span>
|
||||
<span class="font-headline-md text-ink-black">¥0.00</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Reshipment Info Banner -->
|
||||
<div class="bg-surface-container-low rounded-lg px-3 py-2 flex items-center gap-2 mb-4">
|
||||
<span class="material-symbols-outlined text-heritage-red text-[18px]">info</span>
|
||||
<span class="text-on-surface-variant font-body-md">由于商品破损,为您免费补发中</span>
|
||||
</div>
|
||||
<!-- Actions -->
|
||||
<div class="flex justify-end gap-3">
|
||||
<button class="px-5 py-2 border border-outline rounded-xl font-body-md text-on-surface-variant active:opacity-70 transition-opacity">
|
||||
查看详情
|
||||
</button>
|
||||
<button class="px-5 py-2 bg-heritage-red rounded-xl font-body-md text-white font-medium active:opacity-90 transition-opacity shadow-sm">
|
||||
查看进度
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Order Card 1: In Transit -->
|
||||
<div class="bg-surface-container-lowest rounded-xl p-4 shadow-[0px_4px_20px_rgba(166,29,36,0.05)] border border-heritage-red/5">
|
||||
<!-- Header -->
|
||||
<div class="flex justify-between items-center mb-4 pb-3 border-b border-surface-container">
|
||||
<span class="font-label-md text-on-surface-variant">订单号: DK20230915001</span>
|
||||
<span class="text-heritage-red font-semibold font-body-md">配送中</span>
|
||||
</div>
|
||||
<!-- Body -->
|
||||
<div class="flex gap-4 mb-4">
|
||||
<img class="w-20 h-20 rounded-lg object-cover bg-surface-container flex-shrink-0" data-alt="A professional studio product shot of a premium Chinese Baijiu bottle, Dukang Royal Selection 15, with elegant gold detailing on deep crimson glass. The bottle is set against a clean, off-white minimalist background with soft cinematic lighting. The style is sophisticated and high-end, reflecting Heritage Modernism with crisp edges and realistic textures." src="https://lh3.googleusercontent.com/aida-public/AB6AXuAdcSLoRpx3rhqCdX-VYMZxzwzRcH0pfl-CXhEcRpy1rai4ewG685xjrHs4_vO5IxJj22Z2sUTMEJsyW_hsKaGgJSIa8me_aCtAbrok9Op1AX3P7RxEWa6ow-1PtwZVZW_pfDeohRYU47JBUlC9eZo51GSqRd6PNR63hjRBpi4NoTu2ITFDsiElIQadQrQ3yh7oKUmGSm2VGqVgCDjZfHO47mYPdxK9uo5YyrzOjpJK1gZ4XnvmEV4zkQZQVQa1cYae-RxyGpl9ErM"/>
|
||||
<div class="flex-1 flex flex-col justify-between">
|
||||
<div>
|
||||
<h3 class="font-headline-md text-on-surface leading-tight">杜康·御享15代</h3>
|
||||
<p class="text-subtle-gray font-label-md mt-1">500ml | 52% vol</p>
|
||||
</div>
|
||||
<div class="flex justify-between items-baseline">
|
||||
<span class="font-label-md text-on-surface-variant">x1</span>
|
||||
<span class="font-headline-md text-ink-black">¥899.00</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Coupon Banner -->
|
||||
<div class="bg-[#FFF9E6] border border-aged-amber/20 rounded-lg px-3 py-2 flex items-center justify-between mb-4 relative overflow-hidden">
|
||||
<div class="flex items-center gap-2">
|
||||
<span class="material-symbols-outlined text-aged-amber text-[18px]">confirmation_number</span>
|
||||
<span class="text-on-secondary-fixed-variant font-body-md font-medium">好客权益: ¥100 <span class="text-subtle-gray text-xs ml-1">(待使用)</span></span>
|
||||
</div>
|
||||
<div class="w-4 h-4 rounded-full bg-surface-container-lowest absolute -left-2 top-1/2 -translate-y-1/2"></div>
|
||||
<div class="w-4 h-4 rounded-full bg-surface-container-lowest absolute -right-2 top-1/2 -translate-y-1/2"></div>
|
||||
<button class="relative z-10 px-3 py-1 border border-heritage-red/20 bg-white/50 rounded-full font-label-md text-label-md text-heritage-red active:bg-heritage-red/5 transition-colors">立即使用</button></div>
|
||||
<!-- Summary -->
|
||||
<div class="text-right mb-4">
|
||||
<p class="text-on-surface-variant font-label-md">共1件商品 实付: <span class="text-heritage-red font-headline-md ml-1">¥899.00</span></p>
|
||||
</div>
|
||||
<!-- Actions -->
|
||||
<div class="flex justify-end gap-3">
|
||||
<button class="px-5 py-2 border border-outline rounded-xl font-body-md text-on-surface-variant active:opacity-70 transition-opacity">
|
||||
查看详情
|
||||
</button>
|
||||
<button class="px-5 py-2 bg-heritage-red rounded-xl font-body-md text-white font-medium active:opacity-90 transition-opacity shadow-sm">
|
||||
确认收货
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Order Card 2: Completed -->
|
||||
<div class="bg-surface-container-lowest rounded-xl p-4 shadow-[0px_4px_20px_rgba(166,29,36,0.05)] border border-heritage-red/5">
|
||||
<!-- Header -->
|
||||
<div class="flex justify-between items-center mb-4 pb-3 border-b border-surface-container">
|
||||
<span class="font-label-md text-on-surface-variant">订单号: DK20230822089</span>
|
||||
<span class="text-subtle-gray font-body-md">已完成</span>
|
||||
</div>
|
||||
<!-- Body -->
|
||||
<div class="flex gap-4 mb-4 opacity-80">
|
||||
<img class="w-20 h-20 rounded-lg object-cover bg-surface-container flex-shrink-0 grayscale-[20%]" data-alt="A macro shot focusing on the intricate gold embossed label of a high-quality Chinese spirit bottle. The lighting is warm and amber-toned, emphasizing the tactile quality of the paper and the reflective gold foil. The background is a soft, out-of-focus wooden texture, suggesting tradition and age. The composition is artistic and editorial, adhering to the Dukang brand's premium aesthetic." src="https://lh3.googleusercontent.com/aida-public/AB6AXuDZ5TEXr9Jr5ynuWE9C6HMVgbA0MyNdqpPZIXy0oA_uiXKVH36Szt16lmEV7haENNemHAU59vKkqFMDZSrlkV681fK1rWjyV2RZOx32o6OKKouqX4f-R2xFKpTdZvhoHx0XLbyhMKZWX7KeGLkGpBb7VVjcW9zeyCQ4fD_nXhj1gL_o7s0gkz0M8dTmKGFf7-9vErPqyCFI_9hpidK8OnLriBP193Tfua3K3V8WkfVs8Pe570H54y5TwkSGuqASl1F-dc4K-rHRaq8"/>
|
||||
<div class="flex-1 flex flex-col justify-between">
|
||||
<div>
|
||||
<h3 class="font-headline-md text-on-surface leading-tight">杜康·陈酿珍藏款</h3>
|
||||
<p class="text-subtle-gray font-label-md mt-1">500ml | 42% vol</p>
|
||||
</div>
|
||||
<div class="flex justify-between items-baseline">
|
||||
<span class="font-label-md text-on-surface-variant">x2</span>
|
||||
<span class="font-headline-md text-ink-black">¥1,258.00</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Coupon Banner (Already used state) -->
|
||||
<div class="bg-surface-container px-3 py-2 rounded-lg flex items-center justify-between mb-4 grayscale">
|
||||
<div class="flex items-center gap-2">
|
||||
<span class="material-symbols-outlined text-subtle-gray text-[18px]">confirmation_number</span>
|
||||
<span class="text-subtle-gray font-body-md">好客权益: ¥200 (已使用)</span>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Summary -->
|
||||
<div class="text-right mb-4">
|
||||
<p class="text-on-surface-variant font-label-md">共2件商品 实付: <span class="text-ink-black font-headline-md ml-1">¥1,258.00</span></p>
|
||||
</div>
|
||||
<!-- Actions -->
|
||||
<div class="flex justify-end gap-3">
|
||||
<button class="px-5 py-2 border border-heritage-red rounded-xl font-body-md text-heritage-red font-medium active:bg-heritage-red/5 transition-colors">
|
||||
再次购买
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Empty State Hint (Optional) -->
|
||||
<div class="py-12 flex flex-col items-center justify-center opacity-30">
|
||||
<span class="material-symbols-outlined text-[48px] text-subtle-gray mb-2">inventory_2</span>
|
||||
<p class="font-label-md text-subtle-gray">没有更多订单了</p>
|
||||
</div>
|
||||
</main>
|
||||
<!-- BottomNavBar -->
|
||||
<script>
|
||||
// Simple Interaction Logic
|
||||
document.querySelectorAll('nav button').forEach(tab => {
|
||||
tab.addEventListener('click', () => {
|
||||
document.querySelectorAll('nav button').forEach(t => {
|
||||
t.classList.remove('text-heritage-red', 'border-b-2', 'border-heritage-red', 'font-bold');
|
||||
t.classList.add('text-on-surface-variant');
|
||||
});
|
||||
tab.classList.add('text-heritage-red', 'border-b-2', 'border-heritage-red', 'font-bold');
|
||||
tab.classList.remove('text-on-surface-variant');
|
||||
});
|
||||
});
|
||||
|
||||
// Add haptic-like feedback for buttons
|
||||
document.querySelectorAll('button').forEach(btn => {
|
||||
btn.addEventListener('touchstart', () => btn.classList.add('opacity-70'));
|
||||
btn.addEventListener('touchend', () => btn.classList.remove('opacity-70'));
|
||||
});
|
||||
</script>
|
||||
</body></html>
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"title": "我的订单 - 增加补发订单示例",
|
||||
"screenId": "132b9ad9f7be472f9e6c8956c18b15b3",
|
||||
"category": "user",
|
||||
"syncedAt": "2026-06-29T08:06:37.482Z"
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 31 KiB |
Reference in New Issue
Block a user