Files
dukang/pages/_archive/账单明细详情页_5b60e6fd/code.html
T
2026-06-30 10:33:56 +08:00

376 lines
18 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" name="viewport">
<title>账单明细 - 杜康酒馆管理系统</title>
<script src="https://cdn.tailwindcss.com?plugins=forms,container-queries"></script>
<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=Manrope:wght@400;600;700&amp;family=Inter:wght@400;500;600&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">
<script id="tailwind-config">
tailwind.config = {
darkMode: "class",
theme: {
extend: {
"colors": {
"success-green": "#2D6A4F",
"secondary-container": "#fed65b",
"inverse-primary": "#ffb3ae",
"tertiary-container": "#4e5852",
"surface-container-lowest": "#ffffff",
"subtle-gray": "#999999",
"heritage-red": "#A61D24",
"outline-variant": "#e2bebc",
"surface-dim": "#dadad8",
"on-tertiary-fixed": "#141e19",
"inverse-surface": "#2f3130",
"on-primary-container": "#ffb9b4",
"on-error-container": "#93000a",
"on-secondary": "#ffffff",
"tertiary-fixed-dim": "#bec9c2",
"on-secondary-fixed": "#241a00",
"primary-fixed-dim": "#ffb3ae",
"status-blue": "#2A6EBB",
"surface-container-low": "#f4f3f1",
"ink-black": "#1A1A1A",
"surface": "#faf9f7",
"surface-container": "#efeeec",
"on-surface": "#1a1c1b",
"on-primary": "#ffffff",
"primary": "#820012",
"on-primary-fixed": "#410004",
"primary-container": "#a61d24",
"secondary-fixed": "#ffe088",
"secondary": "#735c00",
"outline": "#8d706e",
"on-tertiary": "#ffffff",
"surface-container-high": "#e9e8e6",
"aged-amber": "#FFBF00",
"on-surface-variant": "#5a413f",
"on-tertiary-container": "#c2cdc6",
"on-secondary-container": "#745c00",
"surface-variant": "#e3e2e0",
"tertiary": "#37413b",
"surface-bright": "#faf9f7",
"on-background": "#1a1c1b",
"error-container": "#ffdad6",
"background": "#faf9f7",
"on-secondary-fixed-variant": "#574500",
"on-primary-fixed-variant": "#910817",
"secondary-fixed-dim": "#e9c349",
"on-tertiary-fixed-variant": "#3f4943",
"primary-fixed": "#ffdad7",
"inverse-on-surface": "#f1f1ef",
"tertiary-fixed": "#dae5dd",
"on-error": "#ffffff",
"surface-tint": "#b3272c",
"surface-container-highest": "#e3e2e0",
"error": "#ba1a1a"
},
"borderRadius": {
"DEFAULT": "0.25rem",
"lg": "0.5rem",
"xl": "0.75rem",
"full": "9999px"
},
"spacing": {
"stack-md": "16px",
"margin-page": "20px",
"base": "8px",
"stack-lg": "32px",
"stack-sm": "4px",
"gutter-card": "12px"
},
"fontFamily": {
"coupon-amount": ["Manrope"],
"headline-md": ["Manrope"],
"headline-lg": ["Manrope"],
"label-md": ["Inter"],
"headline-lg-mobile": ["Manrope"],
"body-md": ["Be Vietnam Pro"],
"headline-xl": ["Manrope"],
"body-lg": ["Be Vietnam Pro"]
},
"fontSize": {
"coupon-amount": ["28px", {"lineHeight": "28px", "fontWeight": "700"}],
"headline-md": ["18px", {"lineHeight": "26px", "fontWeight": "600"}],
"headline-lg": ["24px", {"lineHeight": "32px", "fontWeight": "600"}],
"label-md": ["12px", {"lineHeight": "16px", "letterSpacing": "0.05em", "fontWeight": "500"}],
"headline-lg-mobile": ["20px", {"lineHeight": "28px", "fontWeight": "600"}],
"body-md": ["14px", {"lineHeight": "20px", "fontWeight": "400"}],
"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;
vertical-align: middle;
}
.rice-paper-bg {
background-color: #faf9f7;
background-image: radial-gradient(#e9e8e6 0.5px, transparent 0.5px);
background-size: 24px 24px;
}
.scroll-hide::-webkit-scrollbar {
display: none;
}
.shadow-soft {
box-shadow: 0px 4px 20px rgba(166, 29, 36, 0.05);
}
.ticket-notch {
mask-image: radial-gradient(circle at 0 50%, transparent 8px, black 8.5px),
radial-gradient(circle at 100% 50%, transparent 8px, black 8.5px);
mask-composite: intersect;
}
</style>
</head>
<body class="rice-paper-bg font-body-md text-on-surface min-h-screen pb-24">
<!-- Top App Bar -->
<header class="w-full top-0 sticky bg-surface-container-low z-40 shadow-sm flex items-center justify-between px-margin-page h-16">
<div class="flex items-center gap-4">
<button class="p-2 -ml-2 hover:bg-surface-container-highest transition-colors rounded-full active:opacity-80">
<span class="material-symbols-outlined text-primary">arrow_back</span>
</button>
<h1 class="font-headline-lg-mobile text-headline-lg-mobile md:font-headline-lg md:text-headline-lg text-primary font-bold">账单明细</h1>
</div>
<div class="flex items-center gap-2">
<button class="p-2 hover:bg-surface-container-highest transition-colors rounded-full active:opacity-80">
<span class="material-symbols-outlined text-on-surface-variant">share</span>
</button>
<button class="p-2 hover:bg-surface-container-highest transition-colors rounded-full active:opacity-80">
<span class="material-symbols-outlined text-on-surface-variant">picture_as_pdf</span>
</button>
</div>
</header>
<main class="max-w-4xl mx-auto px-margin-page py-6 space-y-6">
<!-- Header Hero Card -->
<section class="bg-white rounded-xl shadow-soft p-6 relative overflow-hidden border border-outline-variant/10">
<div class="absolute top-0 right-0 p-4">
<span class="px-3 py-1 bg-aged-amber/15 text-aged-amber font-label-md text-label-md rounded-full border border-aged-amber/20">
待确认
</span>
</div>
<div class="space-y-1">
<p class="text-on-surface-variant font-label-md text-label-md">结算账期</p>
<h2 class="font-headline-md text-headline-md">2023.10.01 - 2023.10.31</h2>
</div>
<div class="mt-8 flex flex-col items-center justify-center py-4 border-y border-outline-variant/10">
<p class="text-on-surface-variant font-label-md text-label-md mb-1">应结总额 (CNY)</p>
<div class="flex items-baseline gap-1">
<span class="font-headline-lg text-primary">¥</span>
<span class="font-headline-xl text-headline-xl text-primary tracking-tight">10,037.50</span>
</div>
</div>
</section>
<!-- Bento Summary Section -->
<section class="space-y-4">
<!-- Product Commission Card -->
<div class="bg-white p-5 rounded-xl shadow-soft border border-outline-variant/10">
<div class="flex items-center justify-between mb-4">
<div class="flex items-center gap-3">
<div class="w-10 h-10 rounded-lg bg-primary-fixed flex items-center justify-center">
<span class="material-symbols-outlined text-primary">liquor</span>
</div>
<h4 class="font-headline-md text-headline-md">商品销售结算</h4>
</div>
<span class="px-3 py-1 bg-primary-fixed text-primary font-label-md text-label-md rounded-full">佣金 5%</span>
</div>
<div class="grid grid-cols-3 gap-2 pt-4 border-t border-outline-variant/10">
<div class="text-center">
<p class="text-subtle-gray text-label-md">销售总额</p>
<p class="font-bold">¥12,500.00</p>
</div>
<div class="text-center border-x border-outline-variant/10"></div>
<div class="text-center">
<p class="text-subtle-gray text-label-md">应结净额</p>
<p class="font-bold text-success-green">¥11,875.00</p>
</div>
</div>
</div>
<!-- Redemption Commission Card -->
<div class="bg-white p-5 rounded-xl shadow-soft border border-outline-variant/10">
<div class="flex items-center justify-between mb-4">
<div class="flex items-center gap-3">
<div class="w-10 h-10 rounded-lg bg-secondary-fixed flex items-center justify-center">
<span class="material-symbols-outlined text-on-secondary-fixed">restaurant</span>
</div>
<h4 class="font-headline-md text-headline-md">核销权益结算</h4>
</div>
<span class="px-3 py-1 bg-secondary-fixed text-on-secondary-fixed font-label-md text-label-md rounded-full">佣金 2%</span>
</div>
<div class="grid grid-cols-3 gap-2 pt-4 border-t border-outline-variant/10">
<div class="text-center">
<p class="text-subtle-gray text-label-md">核销总额</p>
<p class="font-bold">¥1,875.00</p>
</div>
<div class="text-center border-x border-outline-variant/10"></div>
<div class="text-center">
<p class="text-subtle-gray text-label-md">应结净额</p>
<p class="font-bold text-success-green">¥1,837.50</p>
</div>
</div>
</div>
</section>
<!-- List Section Header -->
<div class="flex items-center justify-between mt-8">
<h3 class="font-headline-md text-headline-md text-on-surface border-l-4 border-heritage-red pl-3">订单明细</h3>
<button class="flex items-center gap-1 text-primary font-label-md text-label-md">
<span class="material-symbols-outlined text-[18px]">filter_list</span>
筛选
</button>
</div>
<!-- Individual Items List -->
<section class="space-y-3">
<!-- Item 1 -->
<div class="bg-white p-4 rounded-xl shadow-soft border border-outline-variant/10 hover:border-heritage-red/20 transition-all cursor-pointer group">
<div class="flex justify-between items-start mb-3">
<div class="flex flex-col">
<span class="font-label-md text-label-md text-subtle-gray">订单编号: DK88293102</span>
<span class="font-label-md text-label-md text-on-surface-variant mt-1">2023-10-28 14:22:10</span>
</div>
<span class="text-primary font-headline-md text-headline-md">¥1,200.00</span>
</div>
<div class="flex items-center justify-between pt-3 border-t border-outline-variant/10"><div class="flex flex-col gap-1">
<div class="flex items-center gap-2">
<div class="w-2 h-2 rounded-full bg-success-green"></div>
<span class="text-on-surface-variant font-body-md text-body-md">交易成功</span>
</div>
<div class="flex flex-col gap-1 pl-4">
<span class="text-subtle-gray font-label-md text-label-md">订单佣金: ¥60.00</span>
<span class="text-subtle-gray font-label-md text-label-md">核销权益佣金: ¥0.00</span>
</div>
</div>
<div class="flex items-center gap-1 text-on-surface-variant font-label-md text-label-md group-hover:text-primary">
详情 <span class="material-symbols-outlined text-[16px]">arrow_forward</span>
</div></div>
</div>
<!-- Item 2 -->
<div class="bg-white p-4 rounded-xl shadow-soft border border-outline-variant/10 hover:border-heritage-red/20 transition-all cursor-pointer group">
<div class="flex justify-between items-start mb-3">
<div class="flex flex-col">
<span class="font-label-md text-label-md text-subtle-gray">订单编号: DK88293098</span>
<span class="font-label-md text-label-md text-on-surface-variant mt-1">2023-10-25 19:45:30</span>
</div>
<span class="text-primary font-headline-md text-headline-md">¥3,500.00</span>
</div>
<div class="flex items-center justify-between pt-3 border-t border-outline-variant/10"><div class="flex flex-col gap-1">
<div class="flex items-center gap-2">
<div class="w-2 h-2 rounded-full bg-success-green"></div>
<span class="text-on-surface-variant font-body-md text-body-md">交易成功</span>
</div>
<div class="flex flex-col gap-1 pl-4">
<span class="text-subtle-gray font-label-md text-label-md">订单佣金: ¥175.00</span>
<span class="text-subtle-gray font-label-md text-label-md">核销权益佣金: ¥0.00</span>
</div>
</div>
<div class="flex items-center gap-1 text-on-surface-variant font-label-md text-label-md group-hover:text-primary">
详情 <span class="material-symbols-outlined text-[16px]">arrow_forward</span>
</div></div>
</div>
<!-- Item 3 -->
<div class="bg-white p-4 rounded-xl shadow-soft border border-outline-variant/10 hover:border-heritage-red/20 transition-all cursor-pointer group">
<div class="flex justify-between items-start mb-3">
<div class="flex flex-col">
<span class="font-label-md text-label-md text-subtle-gray">订单编号: DK88293054</span>
<span class="font-label-md text-label-md text-on-surface-variant mt-1">2023-10-22 11:05:15</span>
</div>
<span class="text-primary font-headline-md text-headline-md">¥800.00</span>
</div>
<div class="flex items-center justify-between pt-3 border-t border-outline-variant/10"><div class="flex flex-col gap-1">
<div class="flex items-center gap-2">
<div class="w-2 h-2 rounded-full bg-success-green"></div>
<span class="text-on-surface-variant font-body-md text-body-md">交易成功</span>
</div>
<div class="flex flex-col gap-1 pl-4">
<span class="text-subtle-gray font-label-md text-label-md">订单佣金: ¥0.00</span>
<span class="text-subtle-gray font-label-md text-label-md">核销权益佣金: ¥16.00</span>
</div>
</div>
<div class="flex items-center gap-1 text-on-surface-variant font-label-md text-label-md group-hover:text-primary">
详情 <span class="material-symbols-outlined text-[16px]">arrow_forward</span>
</div></div>
</div>
<!-- Item 4 -->
<div class="bg-white p-4 rounded-xl shadow-soft border border-outline-variant/10 hover:border-heritage-red/20 transition-all cursor-pointer group">
<div class="flex justify-between items-start mb-3">
<div class="flex flex-col">
<span class="font-label-md text-label-md text-subtle-gray">订单编号: DK88292991</span>
<span class="font-label-md text-label-md text-on-surface-variant mt-1">2023-10-20 09:12:44</span>
</div>
<span class="text-primary font-headline-md text-headline-md">¥1,500.00</span>
</div>
<div class="flex items-center justify-between pt-3 border-t border-outline-variant/10"><div class="flex flex-col gap-1">
<div class="flex items-center gap-2">
<div class="w-2 h-2 rounded-full bg-success-green"></div>
<span class="text-on-surface-variant font-body-md text-body-md">交易成功</span>
</div>
<div class="flex flex-col gap-1 pl-4">
<span class="text-subtle-gray font-label-md text-label-md">订单佣金: ¥75.00</span>
<span class="text-subtle-gray font-label-md text-label-md">核销权益佣金: ¥0.00</span>
</div>
</div>
<div class="flex items-center gap-1 text-on-surface-variant font-label-md text-label-md group-hover:text-primary">
详情 <span class="material-symbols-outlined text-[16px]">arrow_forward</span>
</div></div>
</div>
<div class="text-center py-6">
<button class="text-subtle-gray font-label-md text-label-md hover:text-primary transition-colors">
查看更多订单记录
</button>
</div>
</section>
</main>
<!-- Bottom Action Bar -->
<div class="fixed bottom-0 left-0 w-full bg-white/80 backdrop-blur-md z-50 border-t border-outline-variant/10 h-20 flex items-center px-margin-page pb-safe">
<div class="max-w-4xl mx-auto w-full flex gap-3">
<button class="flex-1 h-12 flex items-center justify-center gap-2 rounded-xl border border-heritage-red text-heritage-red font-headline-md text-headline-md hover:bg-heritage-red/5 transition-all active:scale-95">
<span class="material-symbols-outlined text-[20px]">picture_as_pdf</span>
导出PDF
</button>
<button class="flex-[1.5] h-12 flex items-center justify-center gap-2 rounded-xl bg-heritage-red text-white font-headline-md text-headline-md shadow-lg shadow-heritage-red/20 hover:opacity-90 transition-all active:scale-95">
<span class="material-symbols-outlined text-[20px]">chat_bubble</span>
微信催办
</button>
</div>
</div>
<!-- Background Decoration -->
<div class="fixed top-0 right-0 -z-10 w-64 h-64 opacity-10 pointer-events-none">
<div class="w-full h-full rotate-45 border-[40px] border-heritage-red rounded-full translate-x-1/2 -translate-y-1/2"></div>
</div>
<script>
// Micro-interaction for buttons
document.querySelectorAll('button').forEach(btn => {
btn.addEventListener('touchstart', () => {
btn.style.transform = 'scale(0.96)';
});
btn.addEventListener('touchend', () => {
btn.style.transform = 'scale(1)';
});
});
// Simple scroll appearance for Top Bar
window.addEventListener('scroll', () => {
const header = document.querySelector('header');
if (window.scrollY > 20) {
header.classList.add('shadow-md');
header.classList.remove('shadow-sm');
} else {
header.classList.add('shadow-sm');
header.classList.remove('shadow-md');
}
});
</script>
</body></html>