Files
dukang/pages/_archive/预警详情页_打款与配送超时预警_3277625e/code.html
T
2026-06-30 10:33:56 +08:00

300 lines
14 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>预警中心 - Dukang Management</title>
<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@400;500;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": {
"on-surface-variant": "#5a413f",
"on-secondary-fixed-variant": "#574500",
"outline": "#8d706e",
"surface-dim": "#dadad8",
"surface-container": "#efeeec",
"subtle-gray": "#999999",
"inverse-primary": "#ffb3ae",
"on-secondary-fixed": "#241a00",
"on-secondary": "#ffffff",
"on-error-container": "#93000a",
"primary-container": "#a61d24",
"on-tertiary": "#ffffff",
"surface-container-lowest": "#ffffff",
"tertiary": "#37413b",
"primary-fixed": "#ffdad7",
"tertiary-fixed": "#dae5dd",
"secondary": "#735c00",
"primary": "#820012",
"on-background": "#1a1c1b",
"aged-amber": "#FFBF00",
"on-primary-fixed": "#410004",
"background": "#faf9f7",
"tertiary-container": "#4e5852",
"secondary-container": "#fed65b",
"on-tertiary-container": "#c2cdc6",
"surface-container-highest": "#e3e2e0",
"on-secondary-container": "#745c00",
"success-green": "#2D6A4F",
"on-tertiary-fixed": "#141e19",
"inverse-on-surface": "#f1f1ef",
"surface": "#faf9f7",
"primary-fixed-dim": "#ffb3ae",
"surface-container-low": "#f4f3f1",
"on-primary-fixed-variant": "#910817",
"surface-container-high": "#e9e8e6",
"on-error": "#ffffff",
"error-container": "#ffdad6",
"on-primary": "#ffffff",
"on-surface": "#1a1c1b",
"secondary-fixed": "#ffe088",
"inverse-surface": "#2f3130",
"surface-bright": "#faf9f7",
"heritage-red": "#A61D24",
"surface-tint": "#b3272c",
"secondary-fixed-dim": "#e9c349",
"on-tertiary-fixed-variant": "#3f4943",
"ink-black": "#1A1A1A",
"outline-variant": "#e2bebc",
"tertiary-fixed-dim": "#bec9c2",
"surface-variant": "#e3e2e0",
"status-blue": "#2A6EBB",
"error": "#ba1a1a",
"on-primary-container": "#ffb9b4"
},
"borderRadius": {
"DEFAULT": "0.25rem",
"lg": "0.5rem",
"xl": "0.75rem",
"full": "9999px"
},
"spacing": {
"stack-sm": "4px",
"margin-page": "20px",
"base": "8px",
"stack-md": "16px",
"gutter-card": "12px",
"stack-lg": "32px"
},
"fontFamily": {
"headline-md": ["Manrope"],
"headline-xl": ["Manrope"],
"label-md": ["Inter"],
"headline-lg-mobile": ["Manrope"],
"coupon-amount": ["Manrope"],
"body-md": ["Be Vietnam Pro"],
"headline-lg": ["Manrope"],
"body-lg": ["Be Vietnam Pro"]
},
"fontSize": {
"headline-md": ["18px", {"lineHeight": "26px", "fontWeight": "600"}],
"headline-xl": ["32px", {"lineHeight": "40px", "letterSpacing": "-0.02em", "fontWeight": "700"}],
"label-md": ["12px", {"lineHeight": "16px", "letterSpacing": "0.05em", "fontWeight": "500"}],
"headline-lg-mobile": ["20px", {"lineHeight": "28px", "fontWeight": "600"}],
"coupon-amount": ["28px", {"lineHeight": "28px", "fontWeight": "700"}],
"body-md": ["14px", {"lineHeight": "20px", "fontWeight": "400"}],
"headline-lg": ["24px", {"lineHeight": "32px", "fontWeight": "600"}],
"body-lg": ["16px", {"lineHeight": "24px", "fontWeight": "400"}]
}
},
},
}
</script>
<style>
.material-symbols-outlined {
font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.active-tab::after {
content: '';
position: absolute;
bottom: -2px;
left: 20%;
right: 20%;
height: 3px;
background-color: #A61D24;
border-radius: 99px;
}
.notch-left, .notch-right {
position: absolute;
width: 12px;
height: 12px;
background-color: #faf9f7;
border-radius: 50%;
top: 50%;
transform: translateY(-50%);
}
.notch-left { left: -6px; }
.notch-right { right: -6px; }
</style>
<style>
body {
min-height: max(884px, 100dvh);
}
</style>
</head>
<body class="bg-surface text-on-surface font-body-md antialiased min-h-screen pb-24">
<!-- TopAppBar -->
<header class="fixed top-0 w-full z-50 flex justify-between items-center px-margin-page py-4 bg-surface shadow-sm transition-opacity duration-200">
<div class="flex items-center gap-4">
<button class="hover:opacity-80 transition-opacity">
<span class="material-symbols-outlined text-heritage-red">arrow_back</span>
</button>
<h1 class="font-headline-lg-mobile text-headline-lg-mobile font-bold text-heritage-red">预警中心</h1>
</div>
<div class="flex items-center gap-4">
<button class="hover:opacity-80 transition-opacity relative">
<span class="material-symbols-outlined text-on-surface-variant">notifications</span>
<span class="absolute top-0 right-0 w-2 h-2 bg-heritage-red rounded-full"></span>
</button>
</div>
</header>
<main class="pt-20 px-margin-page space-y-stack-md">
<!-- Tabs -->
<div class="flex border-b border-surface-container-highest">
<button class="relative flex-1 py-4 font-headline-md text-headline-md text-heritage-red active-tab">
打款超时
</button>
<button class="flex-1 py-4 font-headline-md text-headline-md text-on-surface-variant">
配送超时
</button>
</div>
<!-- Filter Bar -->
<div class="flex gap-base overflow-x-auto pb-2 no-scrollbar">
<button class="flex items-center gap-2 px-4 py-2 bg-surface-container-low rounded-full text-body-md border border-outline-variant/30">
<span class="">全部城市</span>
<span class="material-symbols-outlined text-[18px]">expand_more</span>
</button>
<button class="flex items-center gap-2 px-4 py-2 bg-surface-container-low rounded-full text-body-md border border-outline-variant/30">
<span class="">时间范围</span>
<span class="material-symbols-outlined text-[18px]">calendar_today</span>
</button>
</div>
<!-- Payment Timeouts Section -->
<div class="space-y-stack-md">
<div class="flex items-center justify-between">
<h2 class="font-headline-md text-headline-md">打款超时 (2)</h2>
<span class="text-label-md text-subtle-gray">更新于 10:30</span>
</div>
<!-- Card 1: Critical -->
<div class="bg-white rounded-xl shadow-[0px_4px_20px_rgba(166,29,36,0.05)] overflow-hidden border border-heritage-red/5 relative" style="opacity: 1; transform: translateY(0px); transition: 0.4s ease-out;">
<div class="p-stack-md space-y-4">
<div class="flex justify-between items-start">
<div class="space-y-1">
<h3 class="font-headline-md text-on-surface">洛阳宴会中心旗舰店</h3>
<div class="flex items-center gap-2">
<span class="material-symbols-outlined text-heritage-red text-[18px]" style="font-variation-settings: 'FILL' 1;">warning</span>
<span class="text-heritage-red font-bold text-body-md">逾期 3 天 (严重)</span>
</div>
</div>
<div class="text-right">
<p class="text-label-md text-subtle-gray">待结金额</p>
<p class="font-coupon-amount text-coupon-amount text-heritage-red">¥5,400.00</p>
</div>
</div>
<div class="flex gap-base">
<button class="flex-1 py-3 bg-heritage-red text-white rounded-xl font-label-md hover:opacity-90 transition-opacity">确认打款</button>
<button class="flex-1 py-3 border border-heritage-red text-heritage-red rounded-xl font-label-md hover:bg-heritage-red/5 transition-colors">联系合伙人</button>
</div>
</div>
<div class="absolute top-0 right-0 px-3 py-1 bg-heritage-red text-white text-[10px] rounded-bl-lg font-bold tracking-wider">高优先级</div>
</div>
<!-- Card 2: Warning -->
<div class="bg-white rounded-xl shadow-[0px_4px_20px_rgba(166,29,36,0.05)] border border-outline-variant/10" style="opacity: 1; transform: translateY(0px); transition: 0.4s ease-out;">
<div class="p-stack-md space-y-4">
<div class="flex justify-between items-start">
<div class="space-y-1">
<h3 class="font-headline-md text-on-surface">郑州杜康精品店</h3>
<div class="flex items-center gap-2">
<span class="material-symbols-outlined text-aged-amber text-[18px]">error</span>
<span class="text-on-surface-variant text-body-md">逾期 24 小时 (警告)</span>
</div>
</div>
<div class="text-right">
<p class="text-label-md text-subtle-gray">待结金额</p>
<p class="font-coupon-amount text-coupon-amount text-ink-black">¥8,200.00</p>
</div>
</div>
<div class="flex gap-base">
<button class="flex-1 py-3 bg-heritage-red text-white rounded-xl font-label-md">确认打款</button>
<button class="flex-1 py-3 border border-outline text-on-surface-variant rounded-xl font-label-md">查看账单</button>
</div>
</div>
</div>
</div>
<!-- Delivery Timeouts Section -->
<div class="space-y-stack-md pt-4">
<h2 class="font-headline-md text-headline-md">配送超时 (1)</h2>
<!-- Delivery Card -->
<div class="bg-white rounded-xl shadow-[0px_4px_20px_rgba(166,29,36,0.05)] border border-outline-variant/10" style="opacity: 1; transform: translateY(0px); transition: 0.4s ease-out;">
<div class="p-stack-md">
<div class="flex justify-between items-center border-b border-surface-container pb-3 mb-3">
<div class="flex items-center gap-2">
<span class="px-2 py-0.5 bg-surface-container text-on-surface-variant rounded text-[10px] font-bold">订单 #8802</span>
<span class="text-heritage-red font-bold text-body-md flex items-center gap-1">逾期 3 天 (严重)</span>
</div>
<span class="material-symbols-outlined text-subtle-gray">chevron_right</span>
</div>
<div class="grid grid-cols-2 gap-4 mb-4">
<div class="space-y-1">
<p class="text-label-md text-subtle-gray">配送员</p>
<p class="text-body-md font-medium text-on-surface">小飞侠-张师傅</p>
</div>
<div class="space-y-1">
<p class="text-label-md text-subtle-gray">当前位置</p>
<p class="text-body-md font-medium text-on-surface">洛阳涧西区</p>
</div>
</div>
<div class="flex gap-base">
<button class="flex-1 py-2.5 bg-heritage-red text-white rounded-lg font-label-md">催促配送员</button>
<button class="flex-1 py-2.5 bg-surface-container text-on-surface-variant rounded-lg font-label-md">联系客户</button>
</div>
</div>
</div>
</div>
<!-- Decorative Amber Banner -->
<div class="relative bg-aged-amber/10 rounded-xl p-4 border border-aged-amber/20 flex items-center gap-4 overflow-hidden">
<div class="notch-left"></div>
<div class="notch-right"></div>
<div class="bg-aged-amber p-2 rounded-lg">
<span class="material-symbols-outlined text-white">campaign</span>
</div>
<div>
<p class="text-label-md font-bold text-on-secondary-fixed-variant">合伙人政策提醒</p>
<p class="text-[12px] text-on-secondary-fixed-variant/80">本月累计超时3次以上将影响季度评级。</p>
</div>
</div>
</main>
<!-- BottomNavBar -->
<script>
// Simple micro-interaction for active tab switching
document.querySelectorAll('button[class*="flex-1 py-4"]').forEach(tab => {
tab.addEventListener('click', function() {
document.querySelectorAll('button[class*="flex-1 py-4"]').forEach(t => {
t.classList.remove('text-heritage-red', 'active-tab');
t.classList.add('text-on-surface-variant');
});
this.classList.add('text-heritage-red', 'active-tab');
this.classList.remove('text-on-surface-variant');
});
});
// Animation for cards appearing
const cards = document.querySelectorAll('.bg-white');
cards.forEach((card, index) => {
card.style.opacity = '0';
card.style.transform = 'translateY(20px)';
setTimeout(() => {
card.style.transition = 'all 0.4s ease-out';
card.style.opacity = '1';
card.style.transform = 'translateY(0)';
}, 100 * index);
});
</script>
</body></html>