469 lines
24 KiB
HTML
469 lines
24 KiB
HTML
<!DOCTYPE html><html 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=Manrope:wght@400;600;700;800&family=Be+Vietnam+Pro:wght@400;500&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">
|
|
<script id="tailwind-config">
|
|
tailwind.config = {
|
|
darkMode: "class",
|
|
theme: {
|
|
extend: {
|
|
"colors": {
|
|
"tertiary-fixed-dim": "#bec9c2",
|
|
"error": "#ba1a1a",
|
|
"secondary-fixed": "#ffe088",
|
|
"on-primary": "#ffffff",
|
|
"tertiary-fixed": "#dae5dd",
|
|
"surface-container-highest": "#e3e2e0",
|
|
"on-secondary-fixed-variant": "#574500",
|
|
"background": "#faf9f7",
|
|
"on-primary-container": "#ffb9b4",
|
|
"on-error-container": "#93000a",
|
|
"primary-container": "#a61d24",
|
|
"on-primary-fixed-variant": "#910817",
|
|
"inverse-surface": "#2f3130",
|
|
"on-surface-variant": "#5a413f",
|
|
"surface-container-lowest": "#ffffff",
|
|
"surface-container": "#efeeec",
|
|
"secondary": "#735c00",
|
|
"surface-tint": "#b3272c",
|
|
"on-secondary": "#ffffff",
|
|
"primary": "#820012",
|
|
"on-tertiary-fixed": "#141e19",
|
|
"ink-black": "#1A1A1A",
|
|
"status-blue": "#2A6EBB",
|
|
"aged-amber": "#FFBF00",
|
|
"outline-variant": "#e2bebc",
|
|
"primary-fixed": "#ffdad7",
|
|
"surface-variant": "#e3e2e0",
|
|
"on-tertiary-fixed-variant": "#3f4943",
|
|
"error-container": "#ffdad6",
|
|
"heritage-red": "#A61D24",
|
|
"tertiary-container": "#4e5852",
|
|
"on-tertiary": "#ffffff",
|
|
"surface-container-low": "#f4f3f1",
|
|
"surface-container-high": "#e9e8e6",
|
|
"on-error": "#ffffff",
|
|
"on-tertiary-container": "#c2cdc6",
|
|
"tertiary": "#37413b",
|
|
"inverse-primary": "#ffb3ae",
|
|
"surface-dim": "#dadad8",
|
|
"inverse-on-surface": "#f1f1ef",
|
|
"surface": "#faf9f7",
|
|
"secondary-container": "#fed65b",
|
|
"subtle-gray": "#999999",
|
|
"on-surface": "#1a1c1b",
|
|
"success-green": "#2D6A4F",
|
|
"primary-fixed-dim": "#ffb3ae",
|
|
"on-secondary-fixed": "#241a00",
|
|
"surface-bright": "#faf9f7",
|
|
"outline": "#8d706e",
|
|
"on-primary-fixed": "#410004",
|
|
"on-secondary-container": "#745c00",
|
|
"secondary-fixed-dim": "#e9c349",
|
|
"on-background": "#1a1c1b"
|
|
},
|
|
"borderRadius": {
|
|
"DEFAULT": "0.25rem",
|
|
"lg": "0.5rem",
|
|
"xl": "0.75rem",
|
|
"full": "9999px"
|
|
},
|
|
"spacing": {
|
|
"stack-md": "16px",
|
|
"margin-page": "20px",
|
|
"base": "8px",
|
|
"stack-lg": "32px",
|
|
"stack-sm": "4px",
|
|
"gutter-card": "12px"
|
|
},
|
|
"fontFamily": {
|
|
"headline-xl": ["Manrope"],
|
|
"body-lg": ["Be Vietnam Pro"],
|
|
"headline-lg-mobile": ["Manrope"],
|
|
"headline-md": ["Manrope"],
|
|
"coupon-amount": ["Manrope"],
|
|
"body-md": ["Be Vietnam Pro"],
|
|
"label-md": ["Inter"],
|
|
"headline-lg": ["Manrope"]
|
|
},
|
|
"fontSize": {
|
|
"headline-xl": ["32px", {"lineHeight": "40px", "letterSpacing": "-0.02em", "fontWeight": "700"}],
|
|
"body-lg": ["16px", {"lineHeight": "24px", "fontWeight": "400"}],
|
|
"headline-lg-mobile": ["20px", {"lineHeight": "28px", "fontWeight": "600"}],
|
|
"headline-md": ["18px", {"lineHeight": "26px", "fontWeight": "600"}],
|
|
"coupon-amount": ["28px", {"lineHeight": "28px", "fontWeight": "700"}],
|
|
"body-md": ["14px", {"lineHeight": "20px", "fontWeight": "400"}],
|
|
"label-md": ["12px", {"lineHeight": "16px", "letterSpacing": "0.05em", "fontWeight": "500"}],
|
|
"headline-lg": ["24px", {"lineHeight": "32px", "fontWeight": "600"}]
|
|
}
|
|
},
|
|
},
|
|
}
|
|
</script>
|
|
<style>
|
|
.material-symbols-outlined {
|
|
font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
|
|
}
|
|
body {
|
|
background-color: #faf9f7;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
.tonal-layer {
|
|
box-shadow: 0px 4px 20px rgba(166, 29, 36, 0.05);
|
|
}
|
|
.scroll-hide::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
.active-step-line {
|
|
background: linear-gradient(90deg, #A61D24 0%, #A61D24 100%);
|
|
}
|
|
.step-transition {
|
|
transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
|
|
}
|
|
</style>
|
|
<style>
|
|
body {
|
|
min-height: max(884px, 100dvh);
|
|
}
|
|
</style>
|
|
</head>
|
|
<body class="font-body-md text-on-surface">
|
|
<!-- Top Navigation Bar -->
|
|
<header class="fixed top-0 w-full flex justify-between items-center px-margin-page h-14 bg-surface dark:bg-surface-dim shadow-sm z-50">
|
|
|
|
<h1 class="font-headline-lg-mobile text-headline-lg-mobile font-bold text-heritage-red">杜康好客</h1>
|
|
|
|
</header>
|
|
<main class="pt-20 pb-24 px-margin-page min-h-screen">
|
|
<!-- Header Section -->
|
|
<section class="mb-4">
|
|
<h2 class="font-headline-lg-mobile text-headline-lg-mobile text-ink-black mb-1">门店管理</h2>
|
|
<p class="text-subtle-gray font-body-md">管理您的合作门店及其运营状态</p>
|
|
</section><div class="sticky top-14 z-40 bg-surface/95 backdrop-blur-sm -mx-margin-page px-margin-page py-4 mb-4 border-b border-surface-container">
|
|
<div class="space-y-4">
|
|
<!-- Search Bar -->
|
|
<div class="relative">
|
|
<span class="material-symbols-outlined absolute left-3 top-1/2 -translate-y-1/2 text-subtle-gray">search</span>
|
|
<input class="w-full h-11 pl-10 pr-4 bg-surface-container-low border-none rounded-xl focus:ring-2 focus:ring-heritage-red/20 text-body-md outline-none transition-all" placeholder="搜索门店名称/地址" type="text">
|
|
</div>
|
|
<!-- Filter Chips -->
|
|
<div class="flex gap-2 overflow-x-auto scroll-hide pb-1">
|
|
<button class="whitespace-nowrap px-4 py-1.5 rounded-full bg-heritage-red text-white text-label-md font-medium transition-colors">全部</button>
|
|
<button class="whitespace-nowrap px-4 py-1.5 rounded-full bg-surface-container-high text-on-surface-variant text-label-md font-medium active:bg-heritage-red/5 transition-colors">营业中</button>
|
|
<button class="whitespace-nowrap px-4 py-1.5 rounded-full bg-surface-container-high text-on-surface-variant text-label-md font-medium active:bg-heritage-red/5 transition-colors">暂时闭店</button>
|
|
<button class="whitespace-nowrap px-4 py-1.5 rounded-full bg-surface-container-high text-on-surface-variant text-label-md font-medium active:bg-heritage-red/5 transition-colors">已关闭</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- Section A: Store List -->
|
|
<div class="space-y-stack-md">
|
|
<!-- Store Card 1 -->
|
|
<div class="bg-surface-container-lowest rounded-xl tonal-layer p-4 border border-heritage-red/5">
|
|
<div class="flex justify-between items-start mb-4">
|
|
<div>
|
|
<h3 class="font-headline-md text-headline-md text-ink-black">洛阳醉仙居酒楼</h3>
|
|
<p class="text-label-md font-label-md text-subtle-gray mt-1">洛阳市洛龙区长兴街102号</p>
|
|
</div>
|
|
<span class="bg-success-green/10 text-success-green px-2 py-1 rounded-full font-label-md text-label-md">营业中</span>
|
|
</div>
|
|
<div class="flex flex-wrap gap-2 pt-4 border-t border-surface-container">
|
|
<button class="flex-1 py-2 rounded-lg border border-heritage-red text-heritage-red font-label-md text-label-md active:bg-heritage-red/5 transition-colors">暂时闭店</button>
|
|
<button class="flex-1 py-2 rounded-lg border border-subtle-gray text-subtle-gray font-label-md text-label-md">正式关闭</button>
|
|
<button class="w-10 h-10 flex items-center justify-center rounded-lg bg-surface-container-high text-on-surface-variant">
|
|
<span class="material-symbols-outlined text-[20px]">edit</span>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
<!-- Store Card 2 -->
|
|
<div class="bg-surface-container-lowest rounded-xl tonal-layer p-4 border border-heritage-red/5">
|
|
<div class="flex justify-between items-start mb-4">
|
|
<div>
|
|
<h3 class="font-headline-md text-headline-md text-ink-black">古法杜康品鉴馆</h3>
|
|
<p class="text-label-md font-label-md text-subtle-gray mt-1">洛阳市涧西区南昌路财富中心</p>
|
|
</div>
|
|
<span class="bg-aged-amber/10 text-secondary px-2 py-1 rounded-full font-label-md text-label-md">暂时闭店</span>
|
|
</div>
|
|
<div class="flex flex-wrap gap-2 pt-4 border-t border-surface-container">
|
|
<button class="flex-1 py-2 rounded-lg bg-heritage-red text-white font-label-md text-label-md active:opacity-90 transition-opacity">恢复营业</button>
|
|
<button class="flex-1 py-2 rounded-lg border border-subtle-gray text-subtle-gray font-label-md text-label-md">正式关闭</button>
|
|
<button class="w-10 h-10 flex items-center justify-center rounded-lg bg-surface-container-high text-on-surface-variant">
|
|
<span class="material-symbols-outlined text-[20px]">edit</span>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
<!-- Store Card 3 -->
|
|
<div class="bg-surface-container-lowest rounded-xl tonal-layer p-4 border border-heritage-red/5 opacity-70">
|
|
<div class="flex justify-between items-start mb-4">
|
|
<div>
|
|
<h3 class="font-headline-md text-headline-md text-ink-black">杜康龙门礼品店</h3>
|
|
<p class="text-label-md font-label-md text-subtle-gray mt-1">洛阳市洛龙区龙门大道22号</p>
|
|
</div>
|
|
<span class="bg-surface-container-highest text-on-surface-variant px-2 py-1 rounded-full font-label-md text-label-md">已关闭</span>
|
|
</div>
|
|
<div class="flex flex-wrap gap-2 pt-4 border-t border-surface-container">
|
|
<button class="flex-1 py-2 rounded-lg bg-heritage-red text-white font-label-md text-label-md">重新开启</button>
|
|
<button class="w-10 h-10 flex items-center justify-center rounded-lg bg-surface-container-high text-on-surface-variant">
|
|
<span class="material-symbols-outlined text-[20px]">edit</span>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- Section B: Store Entry Form Overlay -->
|
|
<div class="fixed inset-0 z-[100] hidden" id="entryFormOverlay">
|
|
<div class="absolute inset-0 bg-ink-black/40 backdrop-blur-sm" onclick="closeForm()"></div>
|
|
<div class="absolute bottom-0 w-full bg-white rounded-t-[24px] max-h-[813px] overflow-y-auto flex flex-col transform translate-y-full transition-transform duration-300" id="formContainer">
|
|
<!-- Grabber -->
|
|
<div class="w-12 h-1.5 bg-surface-container-highest rounded-full mx-auto mt-3"></div>
|
|
<div class="px-margin-page py-6">
|
|
<div class="flex justify-between items-center mb-8">
|
|
<h3 class="font-headline-lg text-headline-lg text-ink-black">录入新门店</h3>
|
|
<button class="text-subtle-gray" onclick="closeForm()">
|
|
<span class="material-symbols-outlined">close</span>
|
|
</button>
|
|
</div>
|
|
<!-- Step Indicator -->
|
|
<div class="flex items-center justify-between mb-stack-lg relative px-4">
|
|
<div class="flex flex-col items-center z-10">
|
|
<div class="w-8 h-8 rounded-full bg-heritage-red text-white flex items-center justify-center text-label-md font-bold transition-colors" id="stepCircle1">1</div>
|
|
<span class="text-[10px] mt-1 font-medium text-heritage-red">基本信息</span>
|
|
</div>
|
|
<div class="flex-1 h-[2px] bg-surface-container-high mx-2 -mt-4">
|
|
<div class="h-full w-0 bg-heritage-red transition-all duration-300" id="line1"></div>
|
|
</div>
|
|
<div class="flex flex-col items-center z-10">
|
|
<div class="w-8 h-8 rounded-full bg-surface-container-high text-on-surface-variant flex items-center justify-center text-label-md font-bold transition-colors" id="stepCircle2">2</div>
|
|
<span class="text-[10px] mt-1 font-medium text-subtle-gray">照片上传</span>
|
|
</div>
|
|
<div class="flex-1 h-[2px] bg-surface-container-high mx-2 -mt-4">
|
|
<div class="h-full w-0 bg-heritage-red transition-all duration-300" id="line2"></div>
|
|
</div>
|
|
<div class="flex flex-col items-center z-10">
|
|
<div class="w-8 h-8 rounded-full bg-surface-container-high text-on-surface-variant flex items-center justify-center text-label-md font-bold transition-colors" id="stepCircle3">3</div>
|
|
<span class="text-[10px] mt-1 font-medium text-subtle-gray">财务结算</span>
|
|
</div>
|
|
</div>
|
|
<!-- Multi-step Form Content -->
|
|
<div class="overflow-hidden">
|
|
<div class="flex w-[300%] transition-transform duration-300 ease-in-out" id="formSteps">
|
|
<!-- Step 1: Basic Info -->
|
|
<div class="w-1/3 px-1">
|
|
<div class="space-y-4">
|
|
<div class="space-y-1">
|
|
<label class="font-label-md text-label-md text-on-surface-variant">门店全称</label>
|
|
<input class="w-full h-12 px-4 rounded-xl border-surface-container-highest bg-surface-container-low focus:ring-1 focus:ring-heritage-red focus:border-heritage-red outline-none" placeholder="请输入营业执照上的名称" type="text">
|
|
</div>
|
|
<div class="space-y-1">
|
|
<label class="font-label-md text-label-md text-on-surface-variant">联系电话</label>
|
|
<input class="w-full h-12 px-4 rounded-xl border-surface-container-highest bg-surface-container-low focus:ring-1 focus:ring-heritage-red outline-none" placeholder="请输入负责人手机号" type="tel">
|
|
</div>
|
|
<div class="space-y-1">
|
|
<label class="font-label-md text-label-md text-on-surface-variant">地理位置</label>
|
|
<div class="relative">
|
|
<input class="w-full h-12 px-4 rounded-xl border-surface-container-highest bg-surface-container-low outline-none pr-10" readonly="" type="text" value="河南省 洛阳市 洛龙区">
|
|
<span class="material-symbols-outlined absolute right-3 top-3 text-on-surface-variant">location_on</span>
|
|
</div>
|
|
<input class="w-full h-12 px-4 mt-2 rounded-xl border-surface-container-highest bg-surface-container-low focus:ring-1 focus:ring-heritage-red outline-none" placeholder="详细地址:如街道、门牌号" type="text">
|
|
</div>
|
|
<div class="space-y-1">
|
|
<label class="font-label-md text-label-md text-on-surface-variant">门店简介</label>
|
|
<textarea class="w-full p-4 rounded-xl border-surface-container-highest bg-surface-container-low focus:ring-1 focus:ring-heritage-red outline-none" placeholder="介绍门店特色(选填)" rows="3"></textarea>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- Step 2: Photo Upload -->
|
|
<div class="w-1/3 px-1">
|
|
<div class="space-y-6">
|
|
<div class="space-y-2">
|
|
<label class="font-label-md text-label-md text-ink-black font-semibold">门店门头照</label>
|
|
<div class="w-full aspect-[16/9] border-2 border-dashed border-surface-container-highest rounded-xl flex flex-col items-center justify-center bg-surface-container-low text-subtle-gray">
|
|
<span class="material-symbols-outlined text-4xl mb-2">add_a_photo</span>
|
|
<p class="text-label-md">上传清晰门头实景图</p>
|
|
</div>
|
|
</div>
|
|
<div class="space-y-2">
|
|
<label class="font-label-md text-label-md text-ink-black font-semibold">店内环境 (1-3张)</label>
|
|
<div class="grid grid-cols-3 gap-2">
|
|
<div class="aspect-square border-2 border-dashed border-surface-container-highest rounded-xl flex items-center justify-center bg-surface-container-low text-subtle-gray">
|
|
<span class="material-symbols-outlined">add</span>
|
|
</div>
|
|
<div class="aspect-square bg-surface-container-high rounded-xl relative overflow-hidden">
|
|
<img class="w-full h-full object-cover" data-alt="A clean, bright interior of a traditional Chinese liquor specialty store, featuring wooden shelves stocked with premium bottles of Dukang liquor, warm lighting, and elegant minimalist furniture." src="https://lh3.googleusercontent.com/aida-public/AB6AXuBLELbGgCXFw0Zz39xj1NSQQaZePn2Vvi5TMm8vKn1WayIIYL82JprBwDX35ueW12IXHlopViMaCGcEzdz6ZFCBOqMEDmMcccLhCA53DWOd_fSlwJlLfKeDDm80Rl4sSxAybvE8oeVSaxVNSZe7kFuGAYVUYDiC9pnd2Pkg6jBIYjlN_VtD3RsFRL7oTc5kR0JMOTygLvulQgL0ZWVDDUmyShM3LwbdEjbdH-6f2raWwLVL5Zka-bA8RwVgC_Tb0DxWhn6OaYEDGSQ">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="space-y-2">
|
|
<label class="font-label-md text-label-md text-ink-black font-semibold">合作合同</label>
|
|
<div class="flex items-center p-4 rounded-xl bg-heritage-red/5 border border-heritage-red/10">
|
|
<span class="material-symbols-outlined text-heritage-red mr-3">description</span>
|
|
<div class="flex-1">
|
|
<p class="text-body-md font-medium text-ink-black">杜康城市伙伴合作协议.pdf</p>
|
|
<p class="text-label-md text-subtle-gray">2.4 MB</p>
|
|
</div>
|
|
<span class="material-symbols-outlined text-subtle-gray">check_circle</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- Step 3: Bank Info -->
|
|
<div class="w-1/3 px-1">
|
|
<div class="space-y-4">
|
|
<div class="p-4 bg-aged-amber/10 rounded-xl border border-aged-amber/20 mb-2">
|
|
<div class="flex items-start">
|
|
<span class="material-symbols-outlined text-secondary mr-2 text-[20px]">info</span>
|
|
<p class="text-label-md text-secondary leading-tight">请务必填写真实有效的结算信息,确保账户名与营业执照法人一致。</p>
|
|
</div>
|
|
</div>
|
|
<div class="space-y-1">
|
|
<label class="font-label-md text-label-md text-on-surface-variant">开户银行</label>
|
|
<select class="w-full h-12 px-4 rounded-xl border-surface-container-highest bg-surface-container-low focus:ring-1 focus:ring-heritage-red outline-none appearance-none">
|
|
<option>中国工商银行</option>
|
|
<option>中国建设银行</option>
|
|
<option>招商银行</option>
|
|
</select>
|
|
</div>
|
|
<div class="space-y-1">
|
|
<label class="font-label-md text-label-md text-on-surface-variant">银行卡号</label>
|
|
<input class="w-full h-12 px-4 rounded-xl border-surface-container-highest bg-surface-container-low focus:ring-1 focus:ring-heritage-red outline-none" placeholder="请输入16-19位银行卡号" type="number">
|
|
</div>
|
|
<div class="space-y-1">
|
|
<label class="font-label-md text-label-md text-on-surface-variant">开户人姓名</label>
|
|
<input class="w-full h-12 px-4 rounded-xl border-surface-container-highest bg-surface-container-low focus:ring-1 focus:ring-heritage-red outline-none" placeholder="请输入收款人姓名" type="text">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- Form Actions -->
|
|
<div class="p-margin-page border-t border-surface-container-high bg-white safe-area-inset-bottom">
|
|
<div class="flex gap-4" id="formActionButtons">
|
|
<button class="hidden flex-1 h-12 rounded-xl border border-subtle-gray text-on-surface-variant font-semibold" id="prevBtn" onclick="prevStep()">上一步</button>
|
|
<button class="flex-[2] h-12 rounded-xl bg-heritage-red text-white font-semibold shadow-lg shadow-heritage-red/20 active:scale-95 transition-transform" id="nextBtn" onclick="nextStep()">下一步</button>
|
|
<button class="hidden flex-[2] h-12 rounded-xl bg-heritage-red text-white font-semibold shadow-lg shadow-heritage-red/20 active:scale-95 transition-transform" id="submitBtn" onclick="submitForm()">确认提交</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
<!-- Floating Action Button -->
|
|
<button class="fixed bottom-24 right-5 w-auto px-6 h-14 bg-heritage-red text-white rounded-full flex items-center justify-center shadow-xl shadow-heritage-red/30 z-40 active:scale-90 transition-transform" onclick="openForm()">
|
|
<span class="material-symbols-outlined mr-2">add</span>
|
|
<span class="font-semibold text-body-md">录入新门店</span>
|
|
</button>
|
|
<!-- Bottom Navigation Bar -->
|
|
<nav class="fixed bottom-0 left-0 w-full h-16 flex justify-around items-center px-4 bg-surface-container-lowest dark:bg-surface-container-low z-50 rounded-t-xl shadow-[0px_-4px_20px_rgba(166,29,36,0.05)]"><div class="flex flex-col items-center justify-center text-subtle-gray hover:text-primary transition-colors">
|
|
<span class="material-symbols-outlined">home</span>
|
|
<span class="font-label-md text-label-md">首页</span>
|
|
</div>
|
|
<div class="flex flex-col items-center justify-center text-heritage-red font-semibold">
|
|
<span class="material-symbols-outlined" style="font-variation-settings: 'FILL' 1;">storefront</span>
|
|
<span class="font-label-md text-label-md">门店管理</span>
|
|
</div>
|
|
<div class="flex flex-col items-center justify-center text-subtle-gray hover:text-primary transition-colors">
|
|
<span class="material-symbols-outlined">account_circle</span>
|
|
<span class="font-label-md text-label-md">合伙人中心</span>
|
|
</div></nav>
|
|
<script>
|
|
let currentStep = 1;
|
|
const entryFormOverlay = document.getElementById('entryFormOverlay');
|
|
const formContainer = document.getElementById('formContainer');
|
|
const formSteps = document.getElementById('formSteps');
|
|
const prevBtn = document.getElementById('prevBtn');
|
|
const nextBtn = document.getElementById('nextBtn');
|
|
const submitBtn = document.getElementById('submitBtn');
|
|
|
|
function openForm() {
|
|
entryFormOverlay.classList.remove('hidden');
|
|
setTimeout(() => {
|
|
formContainer.classList.remove('translate-y-full');
|
|
}, 10);
|
|
currentStep = 1;
|
|
updateStepUI();
|
|
}
|
|
|
|
function closeForm() {
|
|
formContainer.classList.add('translate-y-full');
|
|
setTimeout(() => {
|
|
entryFormOverlay.classList.add('hidden');
|
|
}, 300);
|
|
}
|
|
|
|
function nextStep() {
|
|
if (currentStep < 3) {
|
|
currentStep++;
|
|
updateStepUI();
|
|
}
|
|
}
|
|
|
|
function prevStep() {
|
|
if (currentStep > 1) {
|
|
currentStep--;
|
|
updateStepUI();
|
|
}
|
|
}
|
|
|
|
function updateStepUI() {
|
|
// Translate form
|
|
formSteps.style.transform = `translateX(-${(currentStep - 1) * (100 / 3)}%)`;
|
|
|
|
// Buttons visibility
|
|
if (currentStep === 1) {
|
|
prevBtn.classList.add('hidden');
|
|
nextBtn.classList.remove('hidden');
|
|
submitBtn.classList.add('hidden');
|
|
} else if (currentStep === 2) {
|
|
prevBtn.classList.remove('hidden');
|
|
nextBtn.classList.remove('hidden');
|
|
submitBtn.classList.add('hidden');
|
|
} else {
|
|
prevBtn.classList.remove('hidden');
|
|
nextBtn.classList.add('hidden');
|
|
submitBtn.classList.remove('hidden');
|
|
}
|
|
|
|
// Step Indicator UI
|
|
const circles = [
|
|
document.getElementById('stepCircle1'),
|
|
document.getElementById('stepCircle2'),
|
|
document.getElementById('stepCircle3')
|
|
];
|
|
const lines = [
|
|
document.getElementById('line1'),
|
|
document.getElementById('line2')
|
|
];
|
|
|
|
circles.forEach((circle, idx) => {
|
|
const stepIdx = idx + 1;
|
|
if (stepIdx <= currentStep) {
|
|
circle.classList.add('bg-heritage-red', 'text-white');
|
|
circle.classList.remove('bg-surface-container-high', 'text-on-surface-variant');
|
|
} else {
|
|
circle.classList.remove('bg-heritage-red', 'text-white');
|
|
circle.classList.add('bg-surface-container-high', 'text-on-surface-variant');
|
|
}
|
|
});
|
|
|
|
lines.forEach((line, idx) => {
|
|
const stepIdx = idx + 1;
|
|
if (stepIdx < currentStep) {
|
|
line.style.width = '100%';
|
|
} else {
|
|
line.style.width = '0%';
|
|
}
|
|
});
|
|
}
|
|
|
|
function submitForm() {
|
|
alert('门店信息提交成功!正在审核中。');
|
|
closeForm();
|
|
}
|
|
</script>
|
|
|
|
|
|
|
|
|
|
</body></html> |