Files
dukang/pages/_archive/我的员工页面_abae8110/code.html
T
2026-06-30 10:33:56 +08:00

298 lines
16 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, 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;800&amp;family=Be+Vietnam+Pro:wght@400;500&amp;family=Inter: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">
<!-- Custom Design Tokens & Hierarchy -->
<script id="tailwind-config">
tailwind.config = {
darkMode: "class",
theme: {
extend: {
"colors": {
"tertiary": "#37413b",
"surface-container": "#efeeec",
"secondary-container": "#fed65b",
"on-primary-container": "#ffb9b4",
"tertiary-fixed-dim": "#bec9c2",
"ink-black": "#1A1A1A",
"on-secondary-container": "#745c00",
"outline-variant": "#e2bebc",
"on-tertiary-container": "#c2cdc6",
"primary-fixed-dim": "#ffb3ae",
"on-surface-variant": "#5a413f",
"on-error-container": "#93000a",
"tertiary-container": "#4e5852",
"surface-bright": "#faf9f7",
"surface-container-lowest": "#ffffff",
"error-container": "#ffdad6",
"surface-container-high": "#e9e8e6",
"error": "#ba1a1a",
"inverse-surface": "#2f3130",
"primary-container": "#a61d24",
"on-tertiary": "#ffffff",
"secondary-fixed": "#ffe088",
"surface-tint": "#b3272c",
"outline": "#8d706e",
"on-secondary-fixed": "#241a00",
"on-error": "#ffffff",
"on-primary": "#ffffff",
"subtle-gray": "#999999",
"background": "#faf9f7",
"on-tertiary-fixed": "#141e19",
"surface-container-highest": "#e3e2e0",
"inverse-on-surface": "#f1f1ef",
"on-primary-fixed-variant": "#910817",
"heritage-red": "#A61D24",
"secondary": "#735c00",
"primary-fixed": "#ffdad7",
"surface-dim": "#dadad8",
"aged-amber": "#FFBF00",
"status-blue": "#2A6EBB",
"on-surface": "#1a1c1b",
"surface-variant": "#e3e2e0",
"surface": "#faf9f7",
"on-secondary-fixed-variant": "#574500",
"surface-container-low": "#f4f3f1",
"tertiary-fixed": "#dae5dd",
"on-background": "#1a1c1b",
"on-primary-fixed": "#410004",
"secondary-fixed-dim": "#e9c349",
"on-secondary": "#ffffff",
"success-green": "#2D6A4F",
"primary": "#820012",
"inverse-primary": "#ffb3ae",
"on-tertiary-fixed-variant": "#3f4943"
},
"borderRadius": {
"DEFAULT": "0.25rem",
"lg": "0.5rem",
"xl": "0.75rem",
"full": "9999px"
},
"spacing": {
"stack-lg": "32px",
"margin-page": "20px",
"stack-sm": "4px",
"stack-md": "16px",
"gutter-card": "12px",
"base": "8px"
},
"fontFamily": {
"headline-lg": ["Manrope"],
"headline-lg-mobile": ["Manrope"],
"body-lg": ["Be Vietnam Pro"],
"headline-md": ["Manrope"],
"headline-xl": ["Manrope"],
"label-md": ["Inter"],
"coupon-amount": ["Manrope"],
"body-md": ["Be Vietnam Pro"]
},
"fontSize": {
"headline-lg": ["24px", {"lineHeight": "32px", "fontWeight": "600"}],
"headline-lg-mobile": ["20px", {"lineHeight": "28px", "fontWeight": "600"}],
"body-lg": ["16px", {"lineHeight": "24px", "fontWeight": "400"}],
"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"}],
"coupon-amount": ["28px", {"lineHeight": "28px", "fontWeight": "700"}],
"body-md": ["14px", {"lineHeight": "20px", "fontWeight": "400"}]
}
},
},
}
</script>
<style>
.material-symbols-outlined {
font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.active-tab {
position: relative;
color: #820012;
font-weight: 600;
}
.active-tab::after {
content: '';
position: absolute;
bottom: -2px;
left: 50%;
transform: translateX(-50%);
width: 24px;
height: 3px;
background-color: #A61D24;
border-radius: 2px;
}
body {
-webkit-tap-highlight-color: transparent;
background-color: #faf9f7;
}
.glass-header {
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
}
</style>
</head>
<body class="font-body-md text-on-surface">
<!-- TopAppBar -->
<header class="fixed top-0 w-full z-50 bg-surface/90 glass-header shadow-[0px_4px_20px_rgba(166,29,36,0.05)]">
<div class="flex items-center justify-between px-margin-page h-16 w-full max-w-screen-xl mx-auto">
<button aria-label="Back" class="w-10 h-10 flex items-center justify-start text-on-surface active:scale-95 transition-transform">
<span class="material-symbols-outlined">arrow_back_ios</span>
</button>
<h1 class="font-headline-md text-headline-md-mobile text-on-surface">我的员工</h1>
<div class="w-10 h-10 flex items-center justify-end">
<span class="material-symbols-outlined text-on-surface-variant">more_horiz</span>
</div>
</div>
</header>
<main class="pt-20 pb-32 min-h-screen">
<!-- Search Bar Section -->
<div class="px-margin-page mb-6">
<div class="relative group">
<div class="absolute inset-y-0 left-4 flex items-center pointer-events-none">
<span class="material-symbols-outlined text-subtle-gray">search</span>
</div>
<input class="w-full bg-surface-container-low border-none rounded-xl py-3.5 pl-12 pr-4 focus:ring-2 focus:ring-heritage-red/20 text-body-md placeholder:text-subtle-gray transition-all shadow-sm" placeholder="搜索姓名或手机号" type="text">
</div>
</div>
<!-- Tab Bar Section -->
<div class="px-margin-page mb-6 overflow-x-auto no-scrollbar">
<div class="flex items-center space-x-8 border-b border-outline-variant/10 min-w-max">
<button class="py-3 text-body-md whitespace-nowrap text-on-surface-variant">全部</button>
<button class="py-3 text-body-md whitespace-nowrap text-on-surface-variant">内部员工</button>
<button class="py-3 text-body-md whitespace-nowrap active-tab text-on-surface">推广员</button>
</div>
</div>
<!-- Staff List Section -->
<div class="px-margin-page space-y-gutter-card">
<!-- Staff Card 1 -->
<div class="bg-surface-container-lowest p-4 rounded-xl shadow-[0px_4px_20px_rgba(166,29,36,0.05)] border border-outline-variant/5 active:scale-[0.98] transition-transform duration-200"><div class="flex items-start space-x-4">
<div class="w-14 h-14 rounded-full overflow-hidden flex-shrink-0 bg-surface-container border border-outline-variant/20">
<img class="w-full h-full object-cover" src="https://lh3.googleusercontent.com/aida-public/AB6AXuAq7PIq8jaA0hDNSB4fDAFqyCcmCJKp7kJLx2GPjpWy0zWdswwVyn0VpKlhTZVkFjO1rnZemFMwmwOvozA-XO2ku7wWWpMvkKDIsP0Pm-BQ-cMoy2QdQsFFVmVcNuqWbmSxz3JkqcO51Pc6t4tlUjhloMyEkAC_j3PQt13-r4DU4ayZ0AVW9Jgy3LBxAoW4m8nFTjIyQL9Jg3uqiLdZSKai61MBOaP2iY1e7NjhGKzxDf3A_J5NEfQLiX0z6J9xYUwrLa4dDOo8CDc">
</div>
<div class="flex-grow">
<div class="flex items-center justify-between">
<div class="flex items-center space-x-2">
<span class="font-headline-md text-headline-md text-on-surface">陈经理</span>
<span class="bg-primary-fixed/30 text-primary px-2 py-0.5 rounded-full font-label-md text-[10px] leading-none">城市合伙人</span>
</div>
<span class="material-symbols-outlined text-on-surface-variant/40">chevron_right</span>
</div>
<div class="mt-1.5 flex items-center text-secondary space-x-1.5">
<span class="material-symbols-outlined text-[14px]">call</span>
<span class="font-label-md tracking-wide">138 **** 9021</span>
</div>
<div class="mt-6 flex items-center justify-between border-t border-outline-variant/5 pt-4">
<div class="flex flex-col">
<span class="text-[10px] uppercase tracking-wider font-label-md text-subtle-gray">入职日期</span>
<span class="text-body-md text-on-surface-variant mt-0.5">2023-11-15</span>
</div>
<div class="bg-secondary-container/20 border border-secondary-container/30 px-4 py-2 rounded-lg flex items-baseline space-x-1">
<span class="text-on-secondary-container text-[11px] font-medium">本月拓店</span>
<span class="text-headline-md font-bold text-secondary">12</span>
<span class="text-on-secondary-container text-[11px]"></span>
</div>
</div>
</div>
</div></div>
<!-- Staff Card 2 -->
<div class="bg-surface-container-lowest p-4 rounded-xl shadow-[0px_4px_20px_rgba(166,29,36,0.05)] border border-outline-variant/5 active:scale-[0.98] transition-transform duration-200"><div class="flex items-start space-x-4">
<div class="w-14 h-14 rounded-full overflow-hidden flex-shrink-0 bg-surface-container border border-outline-variant/20">
<img class="w-full h-full object-cover" src="https://lh3.googleusercontent.com/aida-public/AB6AXuBlqK8w99OyCG4nljS2dCWif7BR4HgPwy3WIaLXswWlQB03U7AcnKBo9OzaIeY9nhpCP-VaIlcKbfQJb3iRZNXwXiKdz71QyN8qRqdRZqB--lw9NjZ6Az6mAvm97byRnN0xtQGFh5UaSH1-LFoqv5mDnlUOnZO7F48drpYkgJKZ6JeeIzlAjSM7u0XY_r36nXzfUf4hGzHIjFD8aSzxRDGIIFrss5i0evGqC_EApw3oKelj-xDxuDngzlKHEtA1dEl2VWaVerOMuMs">
</div>
<div class="flex-grow">
<div class="flex items-center justify-between">
<div class="flex items-center space-x-2">
<span class="font-headline-md text-headline-md text-on-surface">李华</span>
<span class="bg-surface-container-high text-on-surface-variant px-2 py-0.5 rounded-full font-label-md text-[10px] leading-none">内部员工</span>
</div>
<span class="material-symbols-outlined text-on-surface-variant/40">chevron_right</span>
</div>
<div class="mt-1.5 flex items-center text-secondary space-x-1.5">
<span class="material-symbols-outlined text-[14px]">call</span>
<span class="font-label-md tracking-wide">156 **** 8832</span>
</div>
<div class="mt-6 flex items-center justify-between border-t border-outline-variant/5 pt-4">
<div class="flex flex-col">
<span class="text-[10px] uppercase tracking-wider font-label-md text-subtle-gray">入职日期</span>
<span class="text-body-md text-on-surface-variant mt-0.5">2024-02-01</span>
</div>
<div class="bg-secondary-container/20 border border-secondary-container/30 px-4 py-2 rounded-lg flex items-baseline space-x-1">
<span class="text-on-secondary-container text-[11px] font-medium">本月拓店</span>
<span class="text-headline-md font-bold text-secondary">8</span>
<span class="text-on-secondary-container text-[11px]"></span>
</div>
</div>
</div>
</div></div>
<!-- Staff Card 3 (Probation) -->
<div class="bg-surface-container-lowest p-4 rounded-xl shadow-[0px_4px_20px_rgba(166,29,36,0.05)] border border-outline-variant/5 active:scale-[0.98] transition-transform duration-200"><div class="flex items-start space-x-4">
<div class="w-14 h-14 rounded-full overflow-hidden flex-shrink-0 bg-surface-container border border-outline-variant/20">
<img class="w-full h-full object-cover" src="https://lh3.googleusercontent.com/aida-public/AB6AXuAl-qrlxij3wYviJfQ6fidAZcIWhkpPOHUNWZJ1IZiMyl7ukAePS8sPQQsLJT01jrQrvX-OOIBkpGcwX-uABgd23b_ZJPV1bgITY-DkQwwWIs4TpZZcfD6AQLuRQcDz9nuvoqN7V5FTKyy2KW1L-gvEpCfrLMYphqfuVQz5X2nTvCCdX7CE45vnV4g366v6fAME3eJusGOUex-Z7siLBa9GJMk9dkbqm-WfXAV6M1nIeYlCS21PWzJ5mpfU6HI1G46fa4o0AY1IBQo">
</div>
<div class="flex-grow">
<div class="flex items-center justify-between">
<div class="flex items-center space-x-2">
<span class="font-headline-md text-headline-md text-on-surface">张小敏</span>
<span class="bg-tertiary-fixed text-tertiary px-2 py-0.5 rounded-full font-label-md text-[10px] leading-none">推广员</span>
</div>
<span class="material-symbols-outlined text-on-surface-variant/40">chevron_right</span>
</div>
<div class="mt-1.5 flex items-center text-secondary space-x-1.5">
<span class="material-symbols-outlined text-[14px]">call</span>
<span class="font-label-md tracking-wide">185 **** 7741</span>
</div>
<div class="mt-6 flex items-center justify-between border-t border-outline-variant/5 pt-4">
<div class="flex flex-col">
<span class="text-[10px] uppercase tracking-wider font-label-md text-subtle-gray">入职日期</span>
<span class="text-body-md text-on-surface-variant mt-0.5">2024-05-12</span>
</div>
<div class="bg-secondary-container/20 border border-secondary-container/30 px-4 py-2 rounded-lg flex items-baseline space-x-1">
<span class="text-on-secondary-container text-[11px] font-medium">本月拓店</span>
<span class="text-headline-md font-bold text-secondary">3</span>
<span class="text-on-secondary-container text-[11px]"></span>
</div>
</div>
</div>
</div></div>
</div>
</main>
<!-- Bottom Action Button -->
<div class="fixed bottom-0 left-0 w-full p-margin-page bg-surface/80 backdrop-blur-md pb-safe">
<button class="w-full h-14 bg-heritage-red text-on-primary font-headline-md rounded-xl shadow-lg active:scale-95 transition-all flex items-center justify-center space-x-2">
<span class="material-symbols-outlined">person_add</span>
<span class="">添加员工</span>
</button>
</div>
<!-- Interaction Script -->
<script>
// Simple tab switching logic for demo
const tabs = document.querySelectorAll('.px-margin-page .flex button');
tabs.forEach(tab => {
tab.addEventListener('click', () => {
tabs.forEach(t => t.classList.remove('active-tab', 'text-on-surface'));
tabs.forEach(t => t.classList.add('text-on-surface-variant'));
tab.classList.add('active-tab', 'text-on-surface');
tab.classList.remove('text-on-surface-variant');
});
});
// Search highlight interaction
const searchInput = document.querySelector('input');
searchInput.addEventListener('focus', () => {
searchInput.parentElement.classList.add('ring-2', 'ring-heritage-red/20');
});
searchInput.addEventListener('blur', () => {
searchInput.parentElement.classList.remove('ring-2', 'ring-heritage-red/20');
});
</script>
</body></html>