Files
dukang/pages/user/26_确认订单页_物流到付版_367f698c/code.html
T
2026-08-04 21:38:49 +08:00

255 lines
13 KiB
HTML

<!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, viewport-fit=cover" name="viewport">
<title>确认订单 - 杜康·礼遇</title>
<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&amp;family=Be+Vietnam+Pro:wght@400;500&amp;family=Inter:wght@500&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": {
"on-secondary-fixed-variant": "#574500",
"aged-amber": "#FFBF00",
"surface": "#faf9f7",
"background": "#faf9f7",
"on-primary-fixed": "#410004",
"outline-variant": "#e2bebc",
"status-blue": "#2A6EBB",
"surface-container-highest": "#e3e2e0",
"primary": "#820012",
"primary-container": "#a61d24",
"surface-container-low": "#f4f3f1",
"inverse-surface": "#2f3130",
"on-background": "#1a1c1b",
"surface-bright": "#faf9f7",
"outline": "#8d706e",
"inverse-primary": "#ffb3ae",
"on-secondary": "#ffffff",
"surface-container": "#efeeec",
"tertiary-fixed-dim": "#bec9c2",
"heritage-red": "#A61D24",
"on-error-container": "#93000a",
"surface-variant": "#e3e2e0",
"tertiary-container": "#4e5852",
"on-tertiary-fixed-variant": "#3f4943",
"secondary-container": "#fed65b",
"error": "#ba1a1a",
"ink-black": "#1A1A1A",
"on-secondary-fixed": "#241a00",
"on-primary-container": "#ffb9b4",
"on-tertiary": "#ffffff",
"error-container": "#ffdad6",
"primary-fixed": "#ffdad7",
"secondary-fixed-dim": "#e9c349",
"primary-fixed-dim": "#ffb3ae",
"secondary": "#735c00",
"on-tertiary-fixed": "#141e19",
"on-surface-variant": "#5a413f",
"on-surface": "#1a1c1b",
"tertiary": "#37413b",
"on-primary-fixed-variant": "#910817",
"surface-tint": "#b3272c",
"on-tertiary-container": "#c2cdc6",
"on-secondary-container": "#745c00",
"surface-dim": "#dadad8",
"secondary-fixed": "#ffe088",
"on-primary": "#ffffff",
"on-error": "#ffffff",
"surface-container-high": "#e9e8e6",
"inverse-on-surface": "#f1f1ef",
"tertiary-fixed": "#dae5dd",
"subtle-gray": "#999999",
"surface-container-lowest": "#ffffff",
"success-green": "#2D6A4F"
},
"borderRadius": {
"DEFAULT": "0.25rem",
"lg": "0.5rem",
"xl": "0.75rem",
"full": "9999px"
},
"spacing": {
"stack-sm": "4px",
"stack-lg": "32px",
"base": "8px",
"stack-md": "16px",
"margin-page": "20px",
"gutter-card": "12px"
},
"fontFamily": {
"headline-xl": ["Manrope"],
"body-md": ["Be Vietnam Pro"],
"label-md": ["Inter"],
"headline-lg": ["Manrope"],
"headline-md": ["Manrope"],
"body-lg": ["Be Vietnam Pro"],
"headline-lg-mobile": ["Manrope"],
"coupon-amount": ["Manrope"]
},
"fontSize": {
"headline-xl": ["32px", {"lineHeight": "40px", "letterSpacing": "-0.02em", "fontWeight": "700"}],
"body-md": ["14px", {"lineHeight": "20px", "fontWeight": "400"}],
"label-md": ["12px", {"lineHeight": "16px", "letterSpacing": "0.05em", "fontWeight": "500"}],
"headline-lg": ["24px", {"lineHeight": "32px", "fontWeight": "600"}],
"headline-md": ["18px", {"lineHeight": "26px", "fontWeight": "600"}],
"body-lg": ["16px", {"lineHeight": "24px", "fontWeight": "400"}],
"headline-lg-mobile": ["20px", {"lineHeight": "28px", "fontWeight": "600"}],
"coupon-amount": ["28px", {"lineHeight": "28px", "fontWeight": "700"}]
}
},
},
}
</script>
<style>
body {
background-color: #faf9f7;
-webkit-tap-highlight-color: transparent;
}
.material-symbols-outlined {
font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.coupon-notch {
position: relative;
}
.coupon-notch::before, .coupon-notch::after {
content: '';
position: absolute;
top: 50%;
width: 12px;
height: 12px;
background-color: #faf9f7;
border-radius: 50%;
transform: translateY(-50%);
}
.coupon-notch::before { left: -6px; }
.coupon-notch::after { right: -6px; }
.safe-area-bottom {
padding-bottom: env(safe-area-inset-bottom);
}
</style>
</head>
<body class="font-body-md text-on-surface antialiased">
<!-- TopAppBar -->
<header class="fixed top-0 w-full z-50 bg-surface flex items-center px-margin-page h-14 transition-transform active:scale-95">
<button class="mr-4 text-primary flex items-center justify-center">
<span class="material-symbols-outlined" data-icon="arrow_back">arrow_back</span>
</button>
<h1 class="font-headline-lg-mobile text-headline-lg-mobile text-heritage-red">确认订单</h1>
</header>
<main class="pt-20 pb-32 px-margin-page space-y-stack-md">
<!-- Address Section -->
<section class="bg-surface-container-lowest rounded-xl p-stack-md shadow-[0px_4px_20px_rgba(166,29,36,0.05)] flex gap-3 active:opacity-80 transition-all cursor-pointer items-center"><div class="text-heritage-red flex-shrink-0">
<span class="material-symbols-outlined" data-icon="location_on" style="font-variation-settings: 'FILL' 1;">location_on</span>
</div>
<div class="flex-1 space-y-1">
<div class="flex items-center gap-3">
<span class="font-headline-md text-ink-black">张先生</span>
<span class="text-body-md text-on-surface-variant">138****8888</span>
</div>
<p class="text-body-md text-on-surface-variant leading-relaxed">
河南省洛阳市涧西区南昌路街道102号
</p>
</div>
<div class="self-center text-outline-variant">
<span class="material-symbols-outlined" data-icon="chevron_right">chevron_right</span>
</div></section><section class="bg-[#FFF5F5] border border-heritage-red/10 rounded-xl p-stack-md flex gap-3 items-start shadow-sm">
<div class="text-heritage-red flex-shrink-0 mt-0.5">
<span class="material-symbols-outlined text-[20px]" data-icon="warning">warning</span>
</div>
<div class="flex-1">
<p class="text-label-md text-heritage-red leading-relaxed">
提示:该地址超出同城配送范围,将由总部通过物流快递发货。物流费用需由您承担(到付),请确认是否继续。
</p>
</div>
</section>
<!-- Product Section -->
<section class="bg-surface-container-lowest rounded-xl p-stack-md shadow-[0px_4px_20px_rgba(166,29,36,0.05)]">
<div class="flex gap-4">
<div class="w-24 h-24 rounded-lg bg-surface-container overflow-hidden flex-shrink-0">
<img class="w-full h-full object-cover" data-alt="A premium bottle of Dukang Imperial Reserve 15th Generation Chinese Baijiu displayed on a minimalist white pedestal. The bottle features elegant calligraphy and deep red accents, shot with soft, high-end studio lighting that highlights the amber liquid and crystalline glass. The background is a clean, heritage-style off-white with subtle paper texture, embodying the Heritage Modernism aesthetic." src="https://lh3.googleusercontent.com/aida-public/AB6AXuAfqy5X1jKiMBB-L5amwR3xfLYbFBc_qsPbB9mdQZxWlV3rrOARPFVhLRDlW7r8Ig03O6c_ZJKLcVEsgYCblwKg8FZ4-EWwcc5bMNc3UsmBycu3bZ5E6S_aH9UBv0_nEP0sMD8rJsC_rMYBiGDMvRbd52taX-Ir_sfRiVvQu7ImFV-YvU54iXE2x51naVuR8qxwmK7YKitPClg0Pysga859a2-yiJ_ID0QR5xM2o84QbMwNyOEoDDTKSDNqG6J9jfeTsiIYb5vdVmc">
</div>
<div class="flex-1 flex flex-col justify-between py-1">
<div>
<h3 class="font-headline-md text-ink-black">杜康·御享15代</h3>
<p class="text-label-md text-subtle-gray mt-1">500ml | 52% vol</p>
</div>
<div class="flex justify-between items-end">
<span class="font-headline-md text-heritage-red">¥899</span>
<div class="flex items-center gap-3 border border-surface-variant rounded-lg px-2 py-1">
<button class="text-heritage-red flex items-center justify-center active:scale-90 transition-transform">
<span class="material-symbols-outlined text-[20px]" data-icon="remove">remove</span>
</button>
<span class="font-headline-md text-ink-black min-w-[20px] text-center">1</span>
<button class="text-heritage-red flex items-center justify-center active:scale-90 transition-transform">
<span class="material-symbols-outlined text-[20px]" data-icon="add">add</span>
</button>
</div>
</div>
</div>
</div>
</section>
<!-- Coupon Preview -->
<section class="bg-[#FFF5F5] border border-aged-amber/30 rounded-xl p-stack-md flex items-center justify-between coupon-notch overflow-hidden shadow-sm">
<div class="flex items-center gap-3">
<div class="bg-aged-amber text-on-secondary-fixed-variant px-2 py-1 rounded text-[10px] font-bold">好客权益</div>
<span class="font-headline-md text-heritage-red">本单可享好客权益 ¥100</span>
</div>
</section>
<!-- Delivery Option -->
<section class="bg-surface-container-lowest rounded-xl p-stack-md shadow-[0px_4px_20px_rgba(166,29,36,0.05)] flex justify-between items-center">
<span class="text-body-lg text-on-surface">配送方式</span>
<div class="text-right">
<p class="text-body-md text-on-surface">物流配送</p>
</div>
</section>
<!-- Price Summary -->
<section class="bg-surface-container-lowest rounded-xl p-stack-md shadow-[0px_4px_20px_rgba(166,29,36,0.05)] space-y-3">
<div class="flex justify-between items-center text-body-md text-on-surface-variant">
<span class="">商品总额</span>
<span class="">¥899</span>
</div>
<div class="flex justify-between items-center text-body-md text-on-surface-variant">
<span class="">运费</span>
<span class="text-heritage-red font-bold">到付</span>
</div>
<div class="pt-3 border-t border-surface-variant flex justify-between items-center">
<span class="font-headline-md text-ink-black">合计</span>
<span class="font-headline-xl text-heritage-red">¥899</span>
</div>
</section>
</main>
<!-- Bottom Bar -->
<footer class="fixed bottom-0 w-full z-50 bg-surface-container-lowest rounded-t-xl shadow-[0px_-4px_20px_rgba(166,29,36,0.05)] safe-area-bottom">
<div class="flex justify-between items-center h-20 px-margin-page">
<div class="flex items-baseline gap-1">
<span class="text-body-md text-on-surface-variant">实付:</span>
<span class="text-headline-xl text-heritage-red font-bold">¥899</span>
</div>
<button class="bg-heritage-red text-white font-headline-md px-10 py-3.5 rounded-xl shadow-lg active:scale-95 transition-transform" id="payButton">
微信支付
</button>
</div>
</footer>
<!-- Interaction Script -->
<script>
document.getElementById('payButton').addEventListener('click', function() {
this.innerHTML = '<span class="flex items-center gap-2"><svg class="animate-spin h-5 w-5 text-white" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path></svg> 支付中...</span>';
this.classList.add('opacity-80', 'pointer-events-none');
setTimeout(() => {
this.innerHTML = '微信支付';
this.classList.remove('opacity-80', 'pointer-events-none');
alert('订单支付成功!感谢您选择杜康。');
}, 2000);
});
</script>
</body></html>