245 lines
12 KiB
HTML
245 lines
12 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" 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=Be+Vietnam+Pro:wght@400;500&family=Inter:wght@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">
|
|
<!-- Theme Configuration -->
|
|
<script id="tailwind-config">
|
|
tailwind.config = {
|
|
darkMode: "class",
|
|
theme: {
|
|
extend: {
|
|
"colors": {
|
|
"on-error": "#ffffff",
|
|
"success-green": "#2D6A4F",
|
|
"heritage-red": "#A61D24",
|
|
"ink-black": "#1A1A1A",
|
|
"surface-dim": "#dadad8",
|
|
"on-primary-fixed-variant": "#910817",
|
|
"surface-variant": "#e3e2e0",
|
|
"on-tertiary-fixed-variant": "#3f4943",
|
|
"secondary": "#735c00",
|
|
"on-tertiary": "#ffffff",
|
|
"on-tertiary-fixed": "#141e19",
|
|
"outline": "#8d706e",
|
|
"on-primary-fixed": "#410004",
|
|
"surface-container-highest": "#e3e2e0",
|
|
"on-secondary-fixed": "#241a00",
|
|
"error": "#ba1a1a",
|
|
"secondary-fixed": "#ffe088",
|
|
"surface-container-lowest": "#ffffff",
|
|
"outline-variant": "#e2bebc",
|
|
"subtle-gray": "#999999",
|
|
"on-secondary": "#ffffff",
|
|
"on-primary-container": "#ffb9b4",
|
|
"on-surface-variant": "#5a413f",
|
|
"on-secondary-fixed-variant": "#574500",
|
|
"inverse-surface": "#2f3130",
|
|
"status-blue": "#2A6EBB",
|
|
"inverse-on-surface": "#f1f1ef",
|
|
"on-tertiary-container": "#c2cdc6",
|
|
"surface-container-low": "#f4f3f1",
|
|
"primary": "#820012",
|
|
"secondary-container": "#fed65b",
|
|
"inverse-primary": "#ffb3ae",
|
|
"background": "#faf9f7",
|
|
"secondary-fixed-dim": "#e9c349",
|
|
"error-container": "#ffdad6",
|
|
"primary-container": "#a61d24",
|
|
"surface-tint": "#b3272c",
|
|
"surface-container": "#efeeec",
|
|
"surface-bright": "#faf9f7",
|
|
"surface": "#faf9f7",
|
|
"primary-fixed-dim": "#ffb3ae",
|
|
"tertiary-fixed": "#dae5dd",
|
|
"on-primary": "#ffffff",
|
|
"aged-amber": "#FFBF00",
|
|
"primary-fixed": "#ffdad7",
|
|
"tertiary": "#37413b",
|
|
"on-error-container": "#93000a",
|
|
"tertiary-fixed-dim": "#bec9c2",
|
|
"on-secondary-container": "#745c00",
|
|
"on-background": "#1a1c1b",
|
|
"on-surface": "#1a1c1b",
|
|
"surface-container-high": "#e9e8e6",
|
|
"tertiary-container": "#4e5852"
|
|
},
|
|
"borderRadius": {
|
|
"DEFAULT": "0.25rem",
|
|
"lg": "0.5rem",
|
|
"xl": "0.75rem",
|
|
"full": "9999px"
|
|
},
|
|
"spacing": {
|
|
"stack-md": "16px",
|
|
"stack-sm": "4px",
|
|
"base": "8px",
|
|
"gutter-card": "12px",
|
|
"stack-lg": "32px",
|
|
"margin-page": "20px"
|
|
},
|
|
"fontFamily": {
|
|
"label-md": ["Inter"],
|
|
"headline-xl": ["Manrope"],
|
|
"body-md": ["Be Vietnam Pro"],
|
|
"body-lg": ["Be Vietnam Pro"],
|
|
"headline-lg": ["Manrope"],
|
|
"coupon-amount": ["Manrope"],
|
|
"headline-md": ["Manrope"],
|
|
"headline-lg-mobile": ["Manrope"]
|
|
},
|
|
"fontSize": {
|
|
"label-md": ["12px", {"lineHeight": "16px", "letterSpacing": "0.05em", "fontWeight": "500"}],
|
|
"headline-xl": ["32px", {"lineHeight": "40px", "letterSpacing": "-0.02em", "fontWeight": "700"}],
|
|
"body-md": ["14px", {"lineHeight": "20px", "fontWeight": "400"}],
|
|
"body-lg": ["16px", {"lineHeight": "24px", "fontWeight": "400"}],
|
|
"headline-lg": ["24px", {"lineHeight": "32px", "fontWeight": "600"}],
|
|
"coupon-amount": ["28px", {"lineHeight": "28px", "fontWeight": "700"}],
|
|
"headline-md": ["18px", {"lineHeight": "26px", "fontWeight": "600"}],
|
|
"headline-lg-mobile": ["20px", {"lineHeight": "28px", "fontWeight": "600"}]
|
|
}
|
|
},
|
|
},
|
|
}
|
|
</script>
|
|
<style>
|
|
body {
|
|
background-color: #faf9f7;
|
|
background-image: url("https://www.transparenttextures.com/patterns/natural-paper.png");
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
.material-symbols-outlined {
|
|
font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
|
|
}
|
|
.notch-card::before, .notch-card::after {
|
|
content: '';
|
|
position: absolute;
|
|
width: 12px;
|
|
height: 12px;
|
|
background: #faf9f7;
|
|
border-radius: 50%;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
}
|
|
.notch-card::before { left: -6px; }
|
|
.notch-card::after { right: -6px; }
|
|
|
|
.form-input:focus {
|
|
border-color: #A61D24;
|
|
ring: 0;
|
|
outline: none;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body class="flex flex-col min-h-screen text-on-surface overflow-x-hidden">
|
|
<!-- TopAppBar -->
|
|
<header class="fixed top-0 w-full z-50 transition-colors duration-200">
|
|
<div class="flex items-center justify-between px-margin-page h-16 w-full max-w-screen-xl mx-auto">
|
|
<div class="flex items-center gap-4 flex-grow">
|
|
<button class="w-10 h-10 flex items-center justify-center rounded-full hover:bg-surface-container-high active:scale-95 transition-all" onclick="history.back()">
|
|
<span class="material-symbols-outlined text-primary">arrow_back</span>
|
|
</button>
|
|
<h1 class="font-headline-md text-headline-md-mobile text-primary text-center w-full">添加子账号</h1>
|
|
</div>
|
|
|
|
</div>
|
|
</header>
|
|
<main class="flex-grow pt-20 pb-32 px-margin-page max-w-md mx-auto w-full">
|
|
<!-- Segmented Control -->
|
|
|
|
<!-- Form Section -->
|
|
<section class="space-y-6">
|
|
<!-- Full Name -->
|
|
<div class="space-y-2">
|
|
<label class="font-label-md text-label-md text-on-surface-variant ml-1">真实姓名 <span class="text-heritage-red">*</span></label>
|
|
<div class="relative group">
|
|
<input class="w-full bg-surface-container-lowest border border-outline-variant/30 rounded-xl px-4 py-4 font-body-md text-body-md focus:border-heritage-red focus:ring-1 focus:ring-heritage-red/20 transition-all" placeholder="请输入员工姓名" type="text">
|
|
<span class="material-symbols-outlined absolute right-4 top-1/2 -translate-y-1/2 text-outline/50 group-focus-within:text-heritage-red transition-colors">person</span>
|
|
</div>
|
|
</div>
|
|
<!-- Phone Number -->
|
|
<div class="space-y-2">
|
|
<label class="font-label-md text-label-md text-on-surface-variant ml-1">手机号码 <span class="text-heritage-red">*</span></label>
|
|
<div class="flex gap-2">
|
|
<div class="relative flex-grow">
|
|
<input class="w-full bg-surface-container-lowest border border-outline-variant/30 rounded-xl px-4 py-4 font-body-md text-body-md focus:border-heritage-red focus:ring-1 focus:ring-heritage-red/20 transition-all" placeholder="请输入11位手机号" type="tel">
|
|
</div>
|
|
<button class="px-4 py-4 bg-surface-container-high border border-outline-variant/30 rounded-xl font-label-md text-label-md text-primary hover:bg-surface-container-highest active:scale-95 transition-all whitespace-nowrap">
|
|
获取验证码
|
|
</button>
|
|
</div>
|
|
</div>
|
|
<!-- Role Selection -->
|
|
<div class="space-y-2">
|
|
<label class="font-label-md text-label-md text-on-surface-variant ml-1">分配角色 <span class="text-heritage-red">*</span></label>
|
|
<div class="relative">
|
|
<select class="w-full appearance-none bg-surface-container-lowest border border-outline-variant/30 rounded-xl px-4 py-4 font-body-md text-body-md focus:border-heritage-red focus:ring-1 focus:ring-heritage-red/20 transition-all pr-12"><option value="partner" class="">城市合伙人</option><option value="staff" class="">内部员工</option><option value="promoter" class="">推广员</option></select>
|
|
<span class="material-symbols-outlined absolute right-4 top-1/2 -translate-y-1/2 text-outline pointer-events-none">expand_more</span>
|
|
</div>
|
|
</div>
|
|
<!-- Permissions Preview Card -->
|
|
|
|
</section>
|
|
<!-- Illustration / Mood area (Bento style) -->
|
|
<div class="mt-stack-lg grid grid-cols-2 gap-3">
|
|
<div class="col-span-1 h-32 rounded-xl overflow-hidden relative group">
|
|
<img class="w-full h-full object-cover group-hover:scale-105 transition-transform duration-500" data-alt="A macro close-up of a beautifully designed traditional Chinese seal carved from precious red stone, pressed onto a piece of high-quality aged rice paper. The lighting is cinematic with sharp shadows and warm amber highlights, emphasizing the texture and the heritage of Dukang liquor craftsmanship." src="https://lh3.googleusercontent.com/aida-public/AB6AXuBSWQkf2M6jMNP_Owt_eFDD61fgWqv_d3xjHBjXXRAFghV62PmhRDkycuqNHfgHMJuAVDNICqFbxu5wapiw-JxMCyhXq-YLWOedbECzI3Zur-yndGR7OYhjJzCnARTjyBYbJSL1LFYCI3fnNZtTigbTw1EvoLs2p_Op-OF56-RR4ZbetZ6mlMebhmIigqHvXUg7vpgThgi6hAt6OKtPbke-enTVR_ko3fj-V64te4bjMh_atRr51oLo_8nlQgKatYNm57QZK14e-jo">
|
|
<div class="absolute inset-0 bg-gradient-to-t from-ink-black/40 to-transparent"></div>
|
|
</div>
|
|
<div class="col-span-1 h-32 rounded-xl bg-primary-container p-4 flex flex-col justify-end text-white relative overflow-hidden">
|
|
<span class="material-symbols-outlined absolute top-2 right-2 text-white/20 text-4xl">loyalty</span>
|
|
<p class="font-label-md text-[10px] uppercase tracking-widest opacity-80">Heritage Security</p>
|
|
<p class="font-headline-md text-sm leading-tight">安全赋能<br>共创杜康</p>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
<!-- Bottom Action Area -->
|
|
<div class="fixed bottom-0 w-full bg-surface/80 backdrop-blur-lg border-t border-outline-variant/10 px-margin-page pb-8 pt-4 z-50">
|
|
<button class="w-full bg-heritage-red text-white py-4 rounded-xl font-headline-md text-headline-md-mobile shadow-[0px_4px_20px_rgba(166,29,36,0.2)] active:scale-[0.98] transition-all hover:brightness-110 flex items-center justify-center gap-2">
|
|
确认创建
|
|
<span class="material-symbols-outlined">person_add</span>
|
|
</button>
|
|
<p class="text-center mt-3 font-label-md text-label-md text-subtle-gray">
|
|
创建即代表同意 <span class="text-primary underline">合伙人管理协议</span>
|
|
</p>
|
|
</div>
|
|
<!-- Micro-interaction Script -->
|
|
<script>
|
|
function switchTab(type) {
|
|
const internalTab = document.getElementById('tab-internal');
|
|
const partnerTab = document.getElementById('tab-partner');
|
|
|
|
if (type === 'internal') {
|
|
internalTab.classList.add('bg-surface', 'shadow-sm', 'text-primary', 'font-bold');
|
|
internalTab.classList.remove('text-on-surface-variant');
|
|
partnerTab.classList.remove('bg-surface', 'shadow-sm', 'text-primary', 'font-bold');
|
|
partnerTab.classList.add('text-on-surface-variant');
|
|
} else {
|
|
partnerTab.classList.add('bg-surface', 'shadow-sm', 'text-primary', 'font-bold');
|
|
partnerTab.classList.remove('text-on-surface-variant');
|
|
internalTab.classList.remove('bg-surface', 'shadow-sm', 'text-primary', 'font-bold');
|
|
internalTab.classList.add('text-on-surface-variant');
|
|
}
|
|
}
|
|
|
|
// Simple form animation
|
|
const inputs = document.querySelectorAll('input, select');
|
|
inputs.forEach(input => {
|
|
input.addEventListener('focus', () => {
|
|
input.parentElement.classList.add('scale-[1.01]');
|
|
});
|
|
input.addEventListener('blur', () => {
|
|
input.parentElement.classList.remove('scale-[1.01]');
|
|
});
|
|
});
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</body></html> |