267 lines
14 KiB
HTML
267 lines
14 KiB
HTML
<!DOCTYPE html><html class="light" lang="zh-CN"><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&display=swap" rel="stylesheet">
|
|
<link href="https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700&family=Inter:wght@400;500&family=Be+Vietnam+Pro:wght@400;500&display=swap" rel="stylesheet">
|
|
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap" rel="stylesheet">
|
|
<script id="tailwind-config">
|
|
tailwind.config = {
|
|
darkMode: "class",
|
|
theme: {
|
|
extend: {
|
|
"colors": {
|
|
"primary-container": "#a61d24",
|
|
"inverse-surface": "#2f3130",
|
|
"error": "#ba1a1a",
|
|
"error-container": "#ffdad6",
|
|
"surface-container-high": "#e9e8e6",
|
|
"on-primary": "#ffffff",
|
|
"on-secondary-fixed": "#241a00",
|
|
"on-error": "#ffffff",
|
|
"subtle-gray": "#999999",
|
|
"background": "#faf9f7",
|
|
"surface-tint": "#b3272c",
|
|
"outline": "#8d706e",
|
|
"secondary-fixed": "#ffe088",
|
|
"on-tertiary": "#ffffff",
|
|
"tertiary-fixed-dim": "#bec9c2",
|
|
"ink-black": "#1A1A1A",
|
|
"secondary-container": "#fed65b",
|
|
"on-primary-container": "#ffb9b4",
|
|
"tertiary": "#37413b",
|
|
"surface-container": "#efeeec",
|
|
"surface-container-lowest": "#ffffff",
|
|
"tertiary-container": "#4e5852",
|
|
"on-error-container": "#93000a",
|
|
"surface-bright": "#faf9f7",
|
|
"outline-variant": "#e2bebc",
|
|
"primary-fixed-dim": "#ffb3ae",
|
|
"on-surface-variant": "#5a413f",
|
|
"on-tertiary-container": "#c2cdc6",
|
|
"on-secondary-container": "#745c00",
|
|
"on-secondary": "#ffffff",
|
|
"secondary-fixed-dim": "#e9c349",
|
|
"on-background": "#1a1c1b",
|
|
"on-primary-fixed": "#410004",
|
|
"tertiary-fixed": "#dae5dd",
|
|
"on-tertiary-fixed-variant": "#3f4943",
|
|
"inverse-primary": "#ffb3ae",
|
|
"primary": "#820012",
|
|
"success-green": "#2D6A4F",
|
|
"surface-dim": "#dadad8",
|
|
"primary-fixed": "#ffdad7",
|
|
"on-primary-fixed-variant": "#910817",
|
|
"secondary": "#735c00",
|
|
"heritage-red": "#A61D24",
|
|
"on-tertiary-fixed": "#141e19",
|
|
"inverse-on-surface": "#f1f1ef",
|
|
"surface-container-highest": "#e3e2e0",
|
|
"surface": "#faf9f7",
|
|
"surface-container-low": "#f4f3f1",
|
|
"on-secondary-fixed-variant": "#574500",
|
|
"surface-variant": "#e3e2e0",
|
|
"on-surface": "#1a1c1b",
|
|
"status-blue": "#2A6EBB",
|
|
"aged-amber": "#FFBF00"
|
|
},
|
|
"borderRadius": {
|
|
"DEFAULT": "0.25rem",
|
|
"lg": "0.5rem",
|
|
"xl": "0.75rem",
|
|
"full": "9999px"
|
|
},
|
|
"spacing": {
|
|
"stack-md": "16px",
|
|
"gutter-card": "12px",
|
|
"base": "8px",
|
|
"margin-page": "20px",
|
|
"stack-sm": "4px",
|
|
"stack-lg": "32px"
|
|
},
|
|
"fontFamily": {
|
|
"headline-xl": ["Manrope"],
|
|
"label-md": ["Inter"],
|
|
"coupon-amount": ["Manrope"],
|
|
"body-md": ["Be Vietnam Pro"],
|
|
"headline-lg": ["Manrope"],
|
|
"headline-lg-mobile": ["Manrope"],
|
|
"body-lg": ["Be Vietnam Pro"],
|
|
"headline-md": ["Manrope"]
|
|
},
|
|
"fontSize": {
|
|
"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"}],
|
|
"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"}]
|
|
}
|
|
},
|
|
},
|
|
}
|
|
</script>
|
|
<style>
|
|
.material-symbols-outlined {
|
|
font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
|
|
}
|
|
.status-switch-on {
|
|
transform: translateX(20px);
|
|
background-color: #ffffff;
|
|
}
|
|
.paper-texture {
|
|
background-image: radial-gradient(#e2bebc 0.5px, transparent 0.5px);
|
|
background-size: 24px 24px;
|
|
opacity: 0.05;
|
|
}
|
|
</style>
|
|
<style>
|
|
body {
|
|
min-height: max(884px, 100dvh);
|
|
}
|
|
</style>
|
|
</head>
|
|
<body class="bg-background font-body-md text-on-background min-h-screen flex flex-col">
|
|
<!-- TopAppBar from JSON Component Logic -->
|
|
<header class="sticky top-0 z-50 bg-background dark:bg-on-background flex items-center w-full px-margin-page h-14 flat no shadows">
|
|
<div class="flex items-center gap-4 w-full">
|
|
<button class="text-primary dark:text-primary-fixed-dim hover:opacity-80 transition-opacity active:scale-95 transition-transform">
|
|
<span class="material-symbols-outlined">arrow_back</span>
|
|
</button>
|
|
<h1 class="font-headline-lg-mobile text-headline-lg-mobile text-heritage-red dark:text-primary-fixed-dim">子账号管理</h1>
|
|
</div>
|
|
</header>
|
|
<main class="flex-grow flex flex-col px-margin-page pb-32">
|
|
<!-- Search Section -->
|
|
<div class="mt-stack-md relative group">
|
|
<div class="absolute inset-y-0 left-4 flex items-center pointer-events-none">
|
|
<span class="material-symbols-outlined text-outline">search</span>
|
|
</div>
|
|
<input class="w-full h-12 pl-12 pr-4 bg-surface-container-lowest border-none rounded-xl text-body-md focus:ring-1 focus:ring-heritage-red/20 shadow-[0px_4px_20px_rgba(166,29,36,0.05)] transition-all" placeholder="搜索姓名或手机号" type="text">
|
|
</div>
|
|
<!-- Dynamic List Section -->
|
|
<div class="mt-stack-lg space-y-gutter-card overflow-y-auto" id="account-list">
|
|
<!-- Account Card 1 -->
|
|
<div class="bg-surface-container-lowest rounded-xl p-4 flex items-center gap-4 shadow-[0px_4px_20px_rgba(166,29,36,0.05)] border border-transparent hover:border-heritage-red/10 transition-all duration-300">
|
|
<div class="w-12 h-12 rounded-full bg-primary-fixed flex items-center justify-center text-heritage-red font-headline-md shrink-0">
|
|
张
|
|
</div>
|
|
<div class="flex-grow min-w-0">
|
|
<div class="flex items-center gap-2">
|
|
<span class="font-headline-md text-ink-black truncate">张建国</span>
|
|
<span class="px-2 py-0.5 bg-secondary-fixed text-on-secondary-fixed font-label-md text-[10px] rounded-full shrink-0">城市合伙人</span>
|
|
</div>
|
|
<div class="text-subtle-gray font-body-md mt-0.5">138 **** 8888</div>
|
|
</div>
|
|
<div class="flex flex-col items-end gap-3 shrink-0">
|
|
<button class="w-12 h-6 bg-success-green rounded-full relative transition-colors duration-200" onclick="toggleSwitch(this)">
|
|
<div class="absolute top-1 left-1 w-4 h-4 bg-white rounded-full transition-transform duration-200 translate-x-6"></div>
|
|
</button>
|
|
<div class="flex items-center gap-4">
|
|
<button class="text-outline hover:text-primary transition-colors active:scale-90">
|
|
<span class="material-symbols-outlined text-[20px]">edit</span>
|
|
</button>
|
|
<button class="text-outline hover:text-error transition-colors active:scale-90">
|
|
<span class="material-symbols-outlined text-[20px]">delete</span>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- Account Card 2 -->
|
|
<div class="bg-surface-container-lowest rounded-xl p-4 flex items-center gap-4 shadow-[0px_4px_20px_rgba(166,29,36,0.05)] border border-transparent hover:border-heritage-red/10 transition-all duration-300">
|
|
<div class="w-12 h-12 rounded-full bg-tertiary-fixed flex items-center justify-center text-tertiary font-headline-md shrink-0">
|
|
李
|
|
</div>
|
|
<div class="flex-grow min-w-0">
|
|
<div class="flex items-center gap-2">
|
|
<span class="font-headline-md text-ink-black truncate">李晓梅</span>
|
|
<span class="px-2 py-0.5 bg-surface-container text-on-surface-variant font-label-md text-[10px] rounded-full shrink-0">内部员工</span>
|
|
</div>
|
|
<div class="text-subtle-gray font-body-md mt-0.5">156 **** 0122</div>
|
|
</div>
|
|
<div class="flex flex-col items-end gap-3 shrink-0">
|
|
<button class="w-12 h-6 bg-success-green rounded-full relative transition-colors duration-200" onclick="toggleSwitch(this)">
|
|
<div class="absolute top-1 left-1 w-4 h-4 bg-white rounded-full transition-transform duration-200 translate-x-6"></div>
|
|
</button>
|
|
<div class="flex items-center gap-4">
|
|
<button class="text-outline hover:text-primary transition-colors active:scale-90">
|
|
<span class="material-symbols-outlined text-[20px]">edit</span>
|
|
</button>
|
|
<button class="text-outline hover:text-error transition-colors active:scale-90">
|
|
<span class="material-symbols-outlined text-[20px]">delete</span>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- Account Card 3 (Inactive Example) -->
|
|
<div class="bg-surface-container-lowest rounded-xl p-4 flex items-center gap-4 shadow-[0px_4px_20px_rgba(166,29,36,0.05)] border border-transparent opacity-80">
|
|
<div class="w-12 h-12 rounded-full bg-surface-dim flex items-center justify-center text-subtle-gray font-headline-md shrink-0">
|
|
王
|
|
</div>
|
|
<div class="flex-grow min-w-0">
|
|
<div class="flex items-center gap-2">
|
|
<span class="font-headline-md text-ink-black truncate">王强</span>
|
|
<span class="px-2 py-0.5 bg-surface-container text-on-surface-variant font-label-md text-[10px] rounded-full shrink-0">内部员工</span>
|
|
</div>
|
|
<div class="text-subtle-gray font-body-md mt-0.5">177 **** 3344</div>
|
|
</div>
|
|
<div class="flex flex-col items-end gap-3 shrink-0">
|
|
<button class="w-12 h-6 bg-subtle-gray/30 rounded-full relative transition-colors duration-200" onclick="toggleSwitch(this)">
|
|
<div class="absolute top-1 left-1 w-4 h-4 bg-white rounded-full transition-transform duration-200 translate-x-0"></div>
|
|
</button>
|
|
<div class="flex items-center gap-4">
|
|
<button class="text-outline hover:text-primary transition-colors active:scale-90">
|
|
<span class="material-symbols-outlined text-[20px]">edit</span>
|
|
</button>
|
|
<button class="text-outline hover:text-error transition-colors active:scale-90">
|
|
<span class="material-symbols-outlined text-[20px]">delete</span>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- Empty State (Hidden by default, shown via logic if needed) -->
|
|
<div class="hidden flex-grow flex flex-col items-center justify-center text-center mt-stack-lg" id="empty-state">
|
|
<div class="w-48 h-48 mb-6 relative">
|
|
<div class="absolute inset-0 paper-texture rounded-full"></div>
|
|
<img class="w-full h-full object-contain opacity-40 grayscale" data-alt="A refined minimalist illustration of a traditional Chinese liquor vessel (Meiping) rendered in soft neutral tones and subtle heritage red accents. The style is clean and editorial, using whitespace to convey a sense of calm and emptiness. Soft ambient lighting with long, elegant shadows against a warm cream background." src="https://lh3.googleusercontent.com/aida-public/AB6AXuD4ynhLWf8SaEMzP1ngbIigrZgzH_aUC_r7qwxIRjAjxqfdgQqLRAvMuT_D5lmdxoe_uF8TbDgy985eZXohWlFXX7kBoWJyY33zV8nAQJXp3Y1FJCfsnr2y4eK0xkrgSODbSo3QkI9s5Fts7_Oq3Aw8YW631lBL01SAnYp5ry-RKhyisNYb6rEViN5XGkcDaRsF6YY--2FDji3WqPrwYKudxMLMi4yU1mbwLxdJLaSAvknc7yuHzssJLHeLAnsA4wCegedMZVJwCfg">
|
|
</div>
|
|
<p class="font-headline-md text-outline">暂无账号</p>
|
|
<p class="text-body-md text-subtle-gray mt-2">点击下方按钮添加首个子账号</p>
|
|
</div>
|
|
</main>
|
|
<!-- Fixed Footer Button -->
|
|
<div class="fixed bottom-0 left-0 w-full p-margin-page bg-gradient-to-t from-background via-background to-transparent pointer-events-none">
|
|
<a class="pointer-events-auto block w-full bg-heritage-red text-white h-14 rounded-xl flex items-center justify-center font-headline-md shadow-[0px_4px_20px_rgba(166,29,36,0.2)] active:scale-[0.98] transition-transform" href="{{DATA:SCREEN:SCREEN_59}}">
|
|
<span class="material-symbols-outlined mr-2">person_add</span>
|
|
添加子账号
|
|
</a>
|
|
</div>
|
|
<!-- BottomNavBar logic from JSON - Suppressed on task-focused screen according to shell visibility rules -->
|
|
<script>
|
|
function toggleSwitch(btn) {
|
|
const dot = btn.querySelector('div');
|
|
const isActive = dot.classList.contains('translate-x-6');
|
|
|
|
if (isActive) {
|
|
dot.classList.replace('translate-x-6', 'translate-x-0');
|
|
btn.classList.replace('bg-success-green', 'bg-subtle-gray/30');
|
|
} else {
|
|
dot.classList.replace('translate-x-0', 'translate-x-6');
|
|
btn.classList.replace('bg-subtle-gray/30', 'bg-success-green');
|
|
}
|
|
}
|
|
|
|
// Search highlight interaction (mock)
|
|
const searchInput = document.querySelector('input');
|
|
searchInput.addEventListener('focus', () => {
|
|
searchInput.parentElement.classList.add('scale-[1.01]');
|
|
});
|
|
searchInput.addEventListener('blur', () => {
|
|
searchInput.parentElement.classList.remove('scale-[1.01]');
|
|
});
|
|
</script>
|
|
</body></html> |