303 lines
15 KiB
HTML
303 lines
15 KiB
HTML
<!DOCTYPE html><html lang="zh-CN"><head>
|
|
<meta charset="utf-8">
|
|
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
|
|
<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&family=Be+Vietnam+Pro:wght@400;500;600&family=Inter:wght@400;500;600&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">
|
|
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap" rel="stylesheet">
|
|
<style>
|
|
.material-symbols-outlined {
|
|
font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
|
|
}
|
|
body {
|
|
-webkit-tap-highlight-color: transparent;
|
|
font-family: 'Be Vietnam Pro', sans-serif;
|
|
background-color: #faf9f7;
|
|
}
|
|
.notch-cut {
|
|
clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
|
|
position: relative;
|
|
}
|
|
/* Subtle paper texture effect */
|
|
.paper-texture {
|
|
background-image: url("https://www.transparenttextures.com/patterns/natural-paper.png");
|
|
background-repeat: repeat;
|
|
}
|
|
.input-focus-ring:focus-within {
|
|
border-color: #A61D24;
|
|
box-shadow: 0 0 0 1px rgba(166, 29, 36, 0.1);
|
|
}
|
|
</style>
|
|
<script id="tailwind-config">
|
|
tailwind.config = {
|
|
darkMode: "class",
|
|
theme: {
|
|
extend: {
|
|
"colors": {
|
|
"tertiary-fixed-dim": "#bec9c2",
|
|
"surface": "#faf9f7",
|
|
"on-surface": "#1a1c1b",
|
|
"on-secondary-fixed": "#241a00",
|
|
"surface-bright": "#faf9f7",
|
|
"heritage-red": "#A61D24",
|
|
"secondary": "#735c00",
|
|
"aged-amber": "#FFBF00",
|
|
"on-error": "#ffffff",
|
|
"inverse-surface": "#2f3130",
|
|
"surface-container-high": "#e9e8e6",
|
|
"surface-variant": "#e3e2e0",
|
|
"on-primary-fixed-variant": "#910817",
|
|
"on-secondary-fixed-variant": "#574500",
|
|
"tertiary": "#37413b",
|
|
"secondary-container": "#fed65b",
|
|
"on-secondary-container": "#745c00",
|
|
"background": "#faf9f7",
|
|
"surface-container-low": "#f4f3f1",
|
|
"error-container": "#ffdad6",
|
|
"success-green": "#2D6A4F",
|
|
"outline": "#8d706e",
|
|
"on-background": "#1a1c1b",
|
|
"on-primary-container": "#ffb9b4",
|
|
"subtle-gray": "#999999",
|
|
"inverse-primary": "#ffb3ae",
|
|
"on-error-container": "#93000a",
|
|
"primary-fixed-dim": "#ffb3ae",
|
|
"on-primary-fixed": "#410004",
|
|
"error": "#ba1a1a",
|
|
"tertiary-fixed": "#dae5dd",
|
|
"on-tertiary-container": "#c2cdc6",
|
|
"on-tertiary-fixed": "#141e19",
|
|
"surface-container-lowest": "#ffffff",
|
|
"surface-tint": "#b3272c",
|
|
"secondary-fixed": "#ffe088",
|
|
"on-secondary": "#ffffff",
|
|
"primary-container": "#a61d24",
|
|
"primary": "#820012",
|
|
"on-tertiary": "#ffffff",
|
|
"on-tertiary-fixed-variant": "#3f4943",
|
|
"status-blue": "#2A6EBB",
|
|
"primary-fixed": "#ffdad7",
|
|
"on-surface-variant": "#5a413f",
|
|
"ink-black": "#1A1A1A",
|
|
"surface-dim": "#dadad8",
|
|
"on-primary": "#ffffff",
|
|
"tertiary-container": "#4e5852",
|
|
"surface-container-highest": "#e3e2e0",
|
|
"secondary-fixed-dim": "#e9c349",
|
|
"outline-variant": "#e2bebc",
|
|
"surface-container": "#efeeec",
|
|
"inverse-on-surface": "#f1f1ef"
|
|
},
|
|
"borderRadius": {
|
|
"DEFAULT": "0.25rem",
|
|
"lg": "0.5rem",
|
|
"xl": "0.75rem",
|
|
"full": "9999px"
|
|
},
|
|
"spacing": {
|
|
"stack-md": "16px",
|
|
"stack-sm": "4px",
|
|
"stack-lg": "32px",
|
|
"base": "8px",
|
|
"margin-page": "20px",
|
|
"gutter-card": "12px"
|
|
},
|
|
"fontFamily": {
|
|
"headline-xl": ["Manrope"],
|
|
"headline-md": ["Manrope"],
|
|
"coupon-amount": ["Manrope"],
|
|
"body-md": ["Be Vietnam Pro"],
|
|
"headline-lg-mobile": ["Manrope"],
|
|
"body-lg": ["Be Vietnam Pro"],
|
|
"label-md": ["Inter"],
|
|
"headline-lg": ["Manrope"]
|
|
},
|
|
"fontSize": {
|
|
"headline-xl": ["32px", {"lineHeight": "40px", "letterSpacing": "-0.02em", "fontWeight": "700"}],
|
|
"headline-md": ["18px", {"lineHeight": "26px", "fontWeight": "600"}],
|
|
"coupon-amount": ["28px", {"lineHeight": "28px", "fontWeight": "700"}],
|
|
"body-md": ["14px", {"lineHeight": "20px", "fontWeight": "400"}],
|
|
"headline-lg-mobile": ["20px", {"lineHeight": "28px", "fontWeight": "600"}],
|
|
"body-lg": ["16px", {"lineHeight": "24px", "fontWeight": "400"}],
|
|
"label-md": ["12px", {"lineHeight": "16px", "letterSpacing": "0.05em", "fontWeight": "500"}],
|
|
"headline-lg": ["24px", {"lineHeight": "32px", "fontWeight": "600"}]
|
|
}
|
|
},
|
|
},
|
|
}
|
|
</script>
|
|
<style>
|
|
body {
|
|
min-height: max(884px, 100dvh);
|
|
}
|
|
</style>
|
|
</head>
|
|
<body class="bg-surface min-h-screen pb-32">
|
|
<!-- TopAppBar -->
|
|
<header class="w-full top-0 sticky z-50 bg-surface dark:bg-on-surface 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-md mx-auto">
|
|
<button aria-label="返回" class="active:scale-95 transition-transform">
|
|
<span class="material-symbols-outlined text-heritage-red dark:text-primary-fixed-dim" data-icon="arrow_back">arrow_back</span>
|
|
</button>
|
|
<h1 class="font-headline-lg-mobile text-headline-lg-mobile font-bold text-heritage-red dark:text-primary-fixed-dim">
|
|
录入新门店
|
|
</h1>
|
|
<div class="w-6"></div> <!-- Spacer for centering -->
|
|
</div>
|
|
</header>
|
|
<main class="max-w-screen-md mx-auto px-margin-page pt-stack-md">
|
|
<!-- Step Indicator -->
|
|
<section class="mb-stack-lg">
|
|
<div class="flex items-center justify-between relative px-4">
|
|
<!-- Progress Line -->
|
|
<div class="absolute top-4 left-0 w-full h-[2px] bg-surface-container-high -z-10 mx-margin-page">
|
|
<div class="h-full bg-heritage-red w-0 transition-all duration-500" id="progress-line" style="width: 16.66%;"></div>
|
|
</div>
|
|
<!-- Step 1: Active -->
|
|
<div class="flex flex-col items-center gap-base">
|
|
<div class="w-8 h-8 rounded-full bg-heritage-red text-white flex items-center justify-center font-bold text-label-md shadow-lg shadow-heritage-red/20 ring-4 ring-heritage-red/10">
|
|
1
|
|
</div>
|
|
<span class="font-label-md text-label-md text-heritage-red font-semibold">基本信息</span>
|
|
</div>
|
|
<!-- Step 2 -->
|
|
<div class="flex flex-col items-center gap-base">
|
|
<div class="w-8 h-8 rounded-full bg-surface-container-high text-subtle-gray flex items-center justify-center font-bold text-label-md">
|
|
2
|
|
</div>
|
|
<span class="font-label-md text-label-md text-subtle-gray">照片上传</span>
|
|
</div>
|
|
<!-- Step 3 -->
|
|
<div class="flex flex-col items-center gap-base">
|
|
<div class="w-8 h-8 rounded-full bg-surface-container-high text-subtle-gray flex items-center justify-center font-bold text-label-md">
|
|
3
|
|
</div>
|
|
<span class="font-label-md text-label-md text-subtle-gray">结算资质</span>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
<!-- Form Card - Section 1 -->
|
|
<section class="bg-surface-container-lowest rounded-xl p-stack-md shadow-[0px_4px_20px_rgba(166,29,36,0.05)] border border-outline-variant/10">
|
|
<div class="flex items-center gap-2 mb-stack-md">
|
|
<div class="w-1 h-5 bg-heritage-red rounded-full"></div>
|
|
<h2 class="font-headline-md text-headline-md text-ink-black">门店基本信息</h2>
|
|
</div>
|
|
<form class="space-y-stack-md" id="store-form">
|
|
<!-- Store Name -->
|
|
<div class="space-y-stack-sm">
|
|
<label class="block font-label-md text-label-md text-on-surface-variant flex items-center gap-1">
|
|
门店名称 <span class="text-heritage-red">*</span>
|
|
</label>
|
|
<div class="input-focus-ring flex items-center border border-outline-variant/30 rounded-lg bg-surface-container-low px-3 h-12 transition-all">
|
|
<span class="material-symbols-outlined text-subtle-gray text-[20px] mr-2" data-icon="store">store</span>
|
|
<input class="w-full bg-transparent border-none focus:ring-0 text-body-md text-on-surface placeholder:text-subtle-gray/60" placeholder="请输入门店名称" required="" type="text">
|
|
</div>
|
|
</div>
|
|
<!-- Store Phone -->
|
|
<div class="space-y-stack-sm">
|
|
<label class="block font-label-md text-label-md text-on-surface-variant flex items-center gap-1">
|
|
联系电话 <span class="text-heritage-red">*</span>
|
|
</label>
|
|
<div class="input-focus-ring flex items-center border border-outline-variant/30 rounded-lg bg-surface-container-low px-3 h-12 transition-all">
|
|
<span class="material-symbols-outlined text-subtle-gray text-[20px] mr-2" data-icon="call">call</span>
|
|
<input class="w-full bg-transparent border-none focus:ring-0 text-body-md text-on-surface placeholder:text-subtle-gray/60" placeholder="请输入联系电话" required="" type="tel">
|
|
</div>
|
|
</div>
|
|
<!-- Address Picker -->
|
|
<div class="space-y-stack-sm">
|
|
<label class="block font-label-md text-label-md text-on-surface-variant flex items-center gap-1">
|
|
门店地址 <span class="text-heritage-red">*</span>
|
|
</label>
|
|
<button class="w-full flex items-center justify-between border border-outline-variant/30 rounded-lg bg-surface-container-low px-3 h-12 active:bg-surface-container-high transition-colors" type="button">
|
|
<div class="flex items-center">
|
|
<span class="material-symbols-outlined text-subtle-gray text-[20px] mr-2" data-icon="location_on">location_on</span>
|
|
<span class="text-body-md text-subtle-gray/60">请选择地址</span>
|
|
</div>
|
|
<span class="material-symbols-outlined text-subtle-gray" data-icon="chevron_right">chevron_right</span>
|
|
</button>
|
|
</div>
|
|
<!-- Detailed Address -->
|
|
<div class="space-y-stack-sm">
|
|
<label class="block font-label-md text-label-md text-on-surface-variant">详细门牌号</label>
|
|
<div class="input-focus-ring border border-outline-variant/30 rounded-lg bg-surface-container-low p-3 transition-all">
|
|
<textarea class="w-full bg-transparent border-none focus:ring-0 text-body-md text-on-surface placeholder:text-subtle-gray/60 resize-none" placeholder="请输入详细门牌号" rows="2"></textarea>
|
|
</div>
|
|
</div>
|
|
<!-- Store Description -->
|
|
<div class="space-y-stack-sm">
|
|
<label class="block font-label-md text-label-md text-on-surface-variant">门店简介</label>
|
|
<div class="input-focus-ring border border-outline-variant/30 rounded-lg bg-surface-container-low p-3 transition-all">
|
|
<textarea class="w-full bg-transparent border-none focus:ring-0 text-body-md text-on-surface placeholder:text-subtle-gray/60 resize-none" placeholder="请输入门店简介 (10-500字)" rows="4"></textarea>
|
|
<div class="text-right mt-1">
|
|
<span class="text-label-md text-subtle-gray font-label-md">0 / 500</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</section>
|
|
<!-- Identity & Decoration Section -->
|
|
<section class="mt-stack-lg p-stack-md rounded-xl bg-heritage-red/5 border border-heritage-red/10 flex items-center gap-stack-md">
|
|
<div class="w-12 h-12 bg-heritage-red/10 rounded-full flex items-center justify-center shrink-0">
|
|
<span class="material-symbols-outlined text-heritage-red" data-icon="verified_user">verified_user</span>
|
|
</div>
|
|
<div>
|
|
<h3 class="text-body-md font-bold text-heritage-red">杜康合伙人身份认证</h3>
|
|
<p class="text-label-md text-on-surface-variant leading-tight mt-1">
|
|
传承千年窖香,共筑美酒传奇。录入信息后,系统将在 1-3 个工作日内完成审核。
|
|
</p>
|
|
</div>
|
|
</section>
|
|
<!-- Aesthetic Decoration -->
|
|
<div class="mt-stack-lg flex justify-center opacity-20 pointer-events-none">
|
|
<div class="paper-texture w-full h-24 rounded-lg flex items-center justify-center">
|
|
<span class="font-headline-xl text-heritage-red tracking-[1em] ml-[1em] select-none">杜康</span>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
<!-- Fixed Action Bar -->
|
|
<footer class="fixed bottom-0 left-0 w-full bg-surface-container-lowest shadow-[0px_-4px_20px_rgba(166,29,36,0.05)] px-margin-page py-4 pb-safe z-50">
|
|
<div class="max-w-screen-md mx-auto">
|
|
<button class="w-full bg-heritage-red text-white h-12 rounded-xl font-headline-md flex items-center justify-center gap-2 active:scale-95 transition-transform shadow-lg shadow-heritage-red/20" id="next-btn">
|
|
<span>下一步</span>
|
|
<span class="material-symbols-outlined text-[20px]" data-icon="navigate_next">navigate_next</span>
|
|
</button>
|
|
</div>
|
|
</footer>
|
|
<script>
|
|
// Micro-interactions for form inputs
|
|
const inputs = document.querySelectorAll('input, textarea');
|
|
inputs.forEach(input => {
|
|
input.addEventListener('focus', () => {
|
|
input.parentElement.classList.add('bg-white');
|
|
});
|
|
input.addEventListener('blur', () => {
|
|
input.parentElement.classList.remove('bg-white');
|
|
});
|
|
});
|
|
|
|
// Simulating "Next" button click for step transition (visual only)
|
|
document.getElementById('next-btn').addEventListener('click', () => {
|
|
// Check form validity before (visual feedback only for this mockup)
|
|
const form = document.getElementById('store-form');
|
|
if(form.checkValidity()) {
|
|
console.log('Form is valid, proceeding to photo upload...');
|
|
// In a real app, this would navigate to the next step
|
|
} else {
|
|
form.reportValidity();
|
|
}
|
|
});
|
|
|
|
// Character count simulation for textarea
|
|
const storeDesc = document.querySelector('textarea[placeholder*="10-500字"]');
|
|
const countSpan = storeDesc.nextElementSibling.querySelector('span');
|
|
storeDesc.addEventListener('input', (e) => {
|
|
const length = e.target.value.length;
|
|
countSpan.textContent = `${length} / 500`;
|
|
if (length > 500) {
|
|
countSpan.classList.add('text-heritage-red');
|
|
} else {
|
|
countSpan.classList.remove('text-heritage-red');
|
|
}
|
|
});
|
|
</script>
|
|
</body></html> |