Files
dukang/pages/_archive/资产明细页面_4c5ea63e/code.html
T
2026-06-30 10:33:56 +08:00

217 lines
13 KiB
HTML

<!DOCTYPE html><html 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=Material+Symbols+Outlined:wght,FILL@100..700,0..1&amp;display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Manrope:wght@600;700&amp;family=Be+Vietnam+Pro:wght@400&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">
<!-- Use Tailwind Config from Design System -->
<script id="tailwind-config">
tailwind.config = {
darkMode: "class",
theme: {
extend: {
"colors": {
"tertiary-fixed-dim": "#bec9c2",
"ink-black": "#1A1A1A",
"on-tertiary-fixed-variant": "#3f4943",
"on-secondary-fixed-variant": "#574500",
"error-container": "#ffdad6",
"surface": "#faf9f7",
"aged-amber": "#FFBF00",
"on-secondary-fixed": "#241a00",
"on-surface-variant": "#5a413f",
"on-primary-fixed": "#410004",
"heritage-red": "#A61D24",
"subtle-gray": "#999999",
"surface-container-low": "#f4f3f1",
"on-secondary": "#ffffff",
"secondary-fixed-dim": "#e9c349",
"on-tertiary-container": "#c2cdc6",
"on-secondary-container": "#745c00",
"inverse-surface": "#2f3130",
"on-tertiary-fixed": "#141e19",
"surface-variant": "#e3e2e0",
"background": "#faf9f7",
"inverse-on-surface": "#f1f1ef",
"tertiary-container": "#4e5852",
"on-background": "#1a1c1b",
"surface-container-lowest": "#ffffff",
"outline": "#8d706e",
"on-primary": "#ffffff",
"primary": "#820012",
"secondary-container": "#fed65b",
"primary-container": "#a61d24",
"surface-dim": "#dadad8",
"primary-fixed": "#ffdad7",
"on-primary-container": "#ffb9b4",
"tertiary-fixed": "#dae5dd",
"status-blue": "#2A6EBB",
"outline-variant": "#e2bebc",
"secondary": "#735c00",
"surface-container": "#efeeec",
"surface-container-highest": "#e3e2e0",
"surface-container-high": "#e9e8e6",
"on-error-container": "#93000a",
"error": "#ba1a1a",
"on-tertiary": "#ffffff",
"surface-tint": "#b3272c",
"on-primary-fixed-variant": "#910817",
"primary-fixed-dim": "#ffb3ae",
"surface-bright": "#faf9f7",
"secondary-fixed": "#ffe088",
"on-error": "#ffffff",
"inverse-primary": "#ffb3ae",
"success-green": "#2D6A4F",
"tertiary": "#37413b",
"on-surface": "#1a1c1b"
},
"borderRadius": {
"DEFAULT": "0.25rem",
"lg": "0.5rem",
"xl": "0.75rem",
"full": "9999px"
},
"spacing": {
"gutter-card": "12px",
"base": "8px",
"stack-lg": "32px",
"stack-sm": "4px",
"stack-md": "16px",
"margin-page": "20px"
},
"fontFamily": {
"headline-lg-mobile": ["Manrope"],
"body-md": ["Be Vietnam Pro"],
"headline-lg": ["Manrope"],
"label-md": ["Inter"],
"coupon-amount": ["Manrope"],
"body-lg": ["Be Vietnam Pro"],
"headline-md": ["Manrope"],
"headline-xl": ["Manrope"]
},
"fontSize": {
"headline-lg-mobile": ["20px", {"lineHeight": "28px", "fontWeight": "600"}],
"body-md": ["14px", {"lineHeight": "20px", "fontWeight": "400"}],
"headline-lg": ["24px", {"lineHeight": "32px", "fontWeight": "600"}],
"label-md": ["12px", {"lineHeight": "16px", "letterSpacing": "0.05em", "fontWeight": "500"}],
"coupon-amount": ["28px", {"lineHeight": "28px", "fontWeight": "700"}],
"body-lg": ["16px", {"lineHeight": "24px", "fontWeight": "400"}],
"headline-md": ["18px", {"lineHeight": "26px", "fontWeight": "600"}],
"headline-xl": ["32px", {"lineHeight": "40px", "letterSpacing": "-0.02em", "fontWeight": "700"}]
}
},
},
}
</script>
<style>
body {
-webkit-tap-highlight-color: transparent;
font-family: 'Be Vietnam Pro', sans-serif;
background-color: #faf9f7; /* surface-bright */
}
.material-symbols-outlined {
font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.hide-scrollbar::-webkit-scrollbar {
display: none;
}
.hide-scrollbar {
-ms-overflow-style: none;
scrollbar-width: none;
}
.active-tab {
position: relative;
color: #820012; /* primary */
font-weight: 600;
}
.active-tab::after {
content: '';
position: absolute;
bottom: -8px;
left: 50%;
transform: translateX(-50%);
width: 16px;
height: 3px;
background-color: #A61D24; /* heritage-red */
border-radius: 999px;
}
</style>
</head>
<body class="bg-surface-bright min-h-screen text-on-surface">
<!-- TopAppBar (Based on Shared Components JSON) -->
<header class="fixed top-0 w-full z-50 bg-background flex items-center justify-between px-margin-page h-14 w-full">
<div class="flex items-center gap-4">
<button class="active:scale-95 transition-transform text-primary">
<span class="material-symbols-outlined">arrow_back</span>
</button>
<h1 class="font-headline-md text-headline-md-mobile font-bold text-primary">资产明细</h1>
</div>
<div class="flex items-center gap-4">
<button class="active:scale-95 transition-transform text-primary">
</button>
</div>
</header>
<!-- Content Area -->
<main class="pt-14 pb-safe" style="padding-top: 3.5rem;">
<!-- SummaryHeader Card [Sticky] -->
<div class="sticky top-14 z-40 bg-surface-bright/80 backdrop-blur-md px-margin-page py-stack-md">
<div class="bg-surface-container-lowest rounded-xl p-6 shadow-[0px_4px_20px_rgba(166,29,36,0.05)] border border-outline-variant/10 relative overflow-hidden" style="opacity: 1; transform: translateY(0px); transition: 0.4s ease-out;">
<!-- Abstract Heritage Pattern (Animated Shader) -->
<div class="absolute inset-0 opacity-[0.03] pointer-events-none">
</div>
<div class="relative z-10 flex flex-col items-center"><span class="font-label-md text-label-md text-on-surface-variant mb-2">账户余额 (元)</span><div class="flex items-baseline gap-1"><span class="text-headline-md font-bold text-heritage-red">¥</span><span class="font-coupon-amount text-coupon-amount text-heritage-red">128,450.00</span></div><div class="mt-4 w-full flex justify-center gap-4"><button class="px-8 py-2 bg-heritage-red text-on-primary rounded-full font-label-md text-label-md active:scale-95 transition-all">提现</button></div><div class="mt-6 w-full grid grid-cols-2 border-t border-outline-variant/10 pt-4"><div class="flex flex-col items-center border-r border-outline-variant/10"><span class="text-label-md text-subtle-gray">待结算</span><span class="font-bold text-ink-black mt-1">¥12,680.00</span></div><div class="flex flex-col items-center"><span class="text-label-md text-subtle-gray">已提现</span><span class="font-bold text-ink-black mt-1">¥85,000.00</span></div></div></div>
</div>
</div>
<!-- FilterTabs -->
<div class="px-margin-page border-b border-outline-variant/10 mb-stack-md bg-surface-bright">
<div class="flex items-center gap-8 overflow-x-auto hide-scrollbar py-3">
<button class="active-tab whitespace-nowrap font-label-md text-label-md transition-colors" onclick="switchTab(this)">全部</button>
<button class="whitespace-nowrap font-label-md text-label-md text-on-surface-variant transition-colors hover:text-primary" onclick="switchTab(this)">获取记录</button>
<button class="whitespace-nowrap font-label-md text-label-md text-on-surface-variant transition-colors hover:text-primary" onclick="switchTab(this)">使用记录</button>
</div>
</div>
<!-- TransactionList -->
<div class="px-margin-page space-y-4 pb-20"><h2 class="font-label-md text-label-md text-subtle-gray py-2">2026年6月</h2><div class="bg-surface-container-lowest p-4 rounded-xl flex items-center justify-between active:bg-surface-container-low transition-colors duration-200 border-l-4 border-heritage-red/20" style="opacity: 1; transform: translateY(0px); transition: 0.4s ease-out;"><div class="flex items-center gap-4"><div class="w-10 h-10 rounded-full bg-primary-container/10 flex items-center justify-center text-heritage-red"><span class="material-symbols-outlined" style="font-variation-settings: 'FILL' 1;">payments</span></div><div><h3 class="font-headline-md text-[15px] text-ink-black">佣金结算</h3><p class="font-label-md text-label-md text-subtle-gray mt-0.5">2026-06-18 14:20:05</p></div></div><div class="text-right"><span class="font-headline-md text-heritage-red font-bold">+¥2,400.00</span></div></div><div class="bg-surface-container-lowest p-4 rounded-xl flex items-center justify-between active:bg-surface-container-low transition-colors duration-200" style="opacity: 1; transform: translateY(0px); transition: 0.4s ease-out;"><div class="flex items-center gap-4"><div class="w-10 h-10 rounded-full bg-surface-container flex items-center justify-center text-on-surface-variant"><span class="material-symbols-outlined" style="font-variation-settings: 'FILL' 1;">account_balance_wallet</span></div><div><h3 class="font-headline-md text-[15px] text-ink-black">提现</h3><p class="font-label-md text-label-md text-subtle-gray mt-0.5">2026-06-15 09:30:12</p></div></div><div class="text-right"><span class="font-headline-md text-on-surface font-bold">-¥5,000.00</span></div></div><div class="bg-surface-container-lowest p-4 rounded-xl flex items-center justify-between active:bg-surface-container-low transition-colors duration-200" style="opacity: 1; transform: translateY(0px); transition: 0.4s ease-out;"><div class="flex items-center gap-4"><div class="w-10 h-10 rounded-full bg-surface-container flex items-center justify-center text-on-surface-variant"><span class="material-symbols-outlined" style="font-variation-settings: 'FILL' 1;">cancel_presentation</span></div><div><h3 class="font-headline-md text-[15px] text-ink-black">核销扣款</h3><p class="font-label-md text-label-md text-subtle-gray mt-0.5">2026-06-10 18:45:30</p></div></div><div class="text-right"><span class="font-headline-md text-on-surface font-bold">-¥580.00</span></div></div><div class="flex flex-col items-center py-stack-lg opacity-40"><div class="w-12 h-[1px] bg-outline-variant mb-4"></div><p class="font-label-md text-label-md">已加载全部明细</p></div></div>
</main><nav class="fixed bottom-0 w-full z-50 bg-surface-bright border-t border-outline-variant/10 px-margin-page pb-safe">
</nav>
<!-- Bottom Navigation Bar (Based on Shared Components JSON) -->
<script>
function switchTab(el) {
// Remove active classes
document.querySelectorAll('.active-tab').forEach(tab => {
tab.classList.remove('active-tab', 'text-primary', 'font-bold');
tab.classList.add('text-on-surface-variant');
});
// Add active classes to selected
el.classList.add('active-tab');
el.classList.remove('text-on-surface-variant');
}
// Simple scroll reveal for list items
const observerOptions = {
threshold: 0.1
};
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.style.opacity = '1';
entry.target.style.transform = 'translateY(0)';
}
});
}, observerOptions);
document.querySelectorAll('.bg-surface-container-lowest').forEach(item => {
item.style.opacity = '0';
item.style.transform = 'translateY(10px)';
item.style.transition = 'all 0.4s ease-out';
observer.observe(item);
});
</script>
</body></html>