272 lines
12 KiB
HTML
272 lines
12 KiB
HTML
<!DOCTYPE html><html lang="zh-CN" style="width: 390px; height: 1367px; overflow: hidden; position: relative;"><head>
|
|
<meta charset="utf-8">
|
|
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
|
|
<title>城市参数配置 | HQ Management</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&family=Inter:wght@400;500;600&family=Be+Vietnam+Pro: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": {
|
|
"surface": "#faf9f7",
|
|
"error": "#ba1a1a",
|
|
"surface-container-lowest": "#ffffff",
|
|
"inverse-primary": "#ffb3ae",
|
|
"surface-bright": "#faf9f7",
|
|
"tertiary": "#37413b",
|
|
"status-blue": "#2A6EBB",
|
|
"on-primary-container": "#ffb9b4",
|
|
"on-tertiary-fixed": "#141e19",
|
|
"inverse-on-surface": "#f1f1ef",
|
|
"tertiary-fixed": "#dae5dd",
|
|
"on-tertiary": "#ffffff",
|
|
"surface-container": "#efeeec",
|
|
"on-primary-fixed-variant": "#910817",
|
|
"surface-variant": "#e3e2e0",
|
|
"secondary-fixed": "#ffe088",
|
|
"inverse-surface": "#2f3130",
|
|
"surface-container-low": "#f4f3f1",
|
|
"tertiary-fixed-dim": "#bec9c2",
|
|
"primary-container": "#a61d24",
|
|
"on-primary-fixed": "#410004",
|
|
"subtle-gray": "#999999",
|
|
"success-green": "#2D6A4F",
|
|
"secondary-fixed-dim": "#e9c349",
|
|
"on-secondary": "#ffffff",
|
|
"surface-container-high": "#e9e8e6",
|
|
"outline-variant": "#e2bebc",
|
|
"on-tertiary-fixed-variant": "#3f4943",
|
|
"on-secondary-fixed-variant": "#574500",
|
|
"on-tertiary-container": "#c2cdc6",
|
|
"aged-amber": "#FFBF00",
|
|
"surface-tint": "#b3272c",
|
|
"surface-container-highest": "#e3e2e0",
|
|
"error-container": "#ffdad6",
|
|
"surface-dim": "#dadad8",
|
|
"on-secondary-container": "#745c00",
|
|
"on-surface": "#1a1c1b",
|
|
"primary-fixed": "#ffdad7",
|
|
"on-error-container": "#93000a",
|
|
"on-surface-variant": "#5a413f",
|
|
"heritage-red": "#A61D24",
|
|
"primary-fixed-dim": "#ffb3ae",
|
|
"ink-black": "#1A1A1A",
|
|
"primary": "#820012",
|
|
"on-primary": "#ffffff",
|
|
"on-background": "#1a1c1b",
|
|
"background": "#faf9f7",
|
|
"on-error": "#ffffff",
|
|
"secondary-container": "#fed65b",
|
|
"secondary": "#735c00",
|
|
"tertiary-container": "#4e5852",
|
|
"on-secondary-fixed": "#241a00",
|
|
"outline": "#8d706e"
|
|
},
|
|
"borderRadius": {
|
|
"DEFAULT": "0.25rem",
|
|
"lg": "0.5rem",
|
|
"xl": "0.75rem",
|
|
"full": "9999px"
|
|
},
|
|
"spacing": {
|
|
"stack-lg": "32px",
|
|
"margin-page": "20px",
|
|
"gutter-card": "12px",
|
|
"stack-sm": "4px",
|
|
"stack-md": "16px",
|
|
"base": "8px"
|
|
},
|
|
"fontFamily": {
|
|
"headline-xl": ["Manrope"],
|
|
"label-md": ["Inter"],
|
|
"body-lg": ["Be Vietnam Pro"],
|
|
"headline-lg-mobile": ["Manrope"],
|
|
"headline-lg": ["Manrope"],
|
|
"body-md": ["Be Vietnam Pro"],
|
|
"headline-md": ["Manrope"],
|
|
"coupon-amount": ["Manrope"]
|
|
},
|
|
"fontSize": {
|
|
"headline-xl": ["32px", {"lineHeight": "40px", "letterSpacing": "-0.02em", "fontWeight": "700"}],
|
|
"label-md": ["12px", {"lineHeight": "16px", "letterSpacing": "0.05em", "fontWeight": "500"}],
|
|
"body-lg": ["16px", {"lineHeight": "24px", "fontWeight": "400"}],
|
|
"headline-lg-mobile": ["20px", {"lineHeight": "28px", "fontWeight": "600"}],
|
|
"headline-lg": ["24px", {"lineHeight": "32px", "fontWeight": "600"}],
|
|
"body-md": ["14px", {"lineHeight": "20px", "fontWeight": "400"}],
|
|
"headline-md": ["18px", {"lineHeight": "26px", "fontWeight": "600"}],
|
|
"coupon-amount": ["28px", {"lineHeight": "28px", "fontWeight": "700"}]
|
|
}
|
|
},
|
|
},
|
|
}
|
|
</script>
|
|
<style>
|
|
body {
|
|
background-color: #faf9f7;
|
|
color: #1a1c1b;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
.material-symbols-outlined {
|
|
font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
}
|
|
.card-shadow {
|
|
box-shadow: 0px 4px 20px rgba(166, 29, 36, 0.05);
|
|
}
|
|
.notch-badge {
|
|
clip-path: polygon(5% 0%, 95% 0%, 100% 50%, 95% 100%, 5% 100%, 0% 50%);
|
|
}
|
|
/* Custom scrollbar for web view */
|
|
::-webkit-scrollbar {
|
|
width: 4px;
|
|
}
|
|
::-webkit-scrollbar-thumb {
|
|
background: #e2bebc;
|
|
border-radius: 10px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body class="font-body-md text-body-md pb-32">
|
|
<!-- TopAppBar -->
|
|
<header class="bg-surface dark:bg-surface-dim shadow-sm w-full top-0 sticky flex items-center justify-between px-margin-page h-16 z-50">
|
|
<div class="flex items-center gap-4">
|
|
<button class="text-primary hover:bg-surface-container-high transition-colors p-1 rounded-full active:scale-95 duration-150">
|
|
<span class="material-symbols-outlined">arrow_back</span>
|
|
</button>
|
|
<h1 class="font-headline-md text-headline-md-mobile md:text-headline-md text-primary">城市参数配置</h1>
|
|
</div>
|
|
<button class="text-primary hover:bg-surface-container-high transition-colors p-1 rounded-full active:scale-95 duration-150">
|
|
|
|
</button>
|
|
</header>
|
|
<main class="px-margin-page py-4 space-y-4">
|
|
<!-- PageHeader / Breadcrumb -->
|
|
<section class="mb-4">
|
|
<nav class="flex items-center space-x-2 text-subtle-gray mb-1">
|
|
|
|
|
|
|
|
</nav>
|
|
<div class="flex items-center gap-3">
|
|
<div class="w-1.5 h-6 bg-heritage-red rounded-full"></div>
|
|
<h2 class="font-headline-lg-mobile text-headline-lg-mobile md:text-headline-lg text-ink-black">郑州</h2>
|
|
</div>
|
|
</section>
|
|
<!-- CommissionCard -->
|
|
<section class="bg-surface-container-lowest card-shadow rounded-xl border border-outline-variant/10 p-4">
|
|
<div class="flex items-center justify-between mb-4">
|
|
<h3 class="font-headline-md text-headline-md flex items-center gap-2">
|
|
<span class="material-symbols-outlined text-heritage-red">payments</span>
|
|
佣金比例配置
|
|
</h3>
|
|
</div>
|
|
<div class="bg-primary/5 border border-primary/10 rounded-lg p-3 flex items-start gap-2 mb-4">
|
|
<span class="material-symbols-outlined text-heritage-red text-lg mt-0.5">info</span>
|
|
<p class="text-on-surface-variant font-label-md text-label-md leading-relaxed">
|
|
待合伙人协商后填入,实时生效。调低比例可能导致合伙人权益受损,请谨慎操作。
|
|
</p>
|
|
</div>
|
|
<div class="space-y-4">
|
|
<div class="flex flex-col gap-1">
|
|
<label class="font-label-md text-label-md text-subtle-gray ml-1">成交订单佣金比例</label>
|
|
<div class="relative">
|
|
<input class="w-full bg-surface px-4 pr-10 border border-outline rounded-lg focus:ring-1 focus:ring-heritage-red focus:border-heritage-red transition-all font-headline-md h-10" type="text" value="20.0" placeholder="3">
|
|
<span class="absolute right-4 top-1/2 -translate-y-1/2 text-subtle-gray font-headline-md">%</span>
|
|
</div>
|
|
</div>
|
|
<div class="flex flex-col gap-1">
|
|
<label class="font-label-md text-label-md text-subtle-gray ml-1">权益核销佣金比例</label>
|
|
<div class="relative">
|
|
<input class="w-full bg-surface px-4 pr-10 border border-outline rounded-lg focus:ring-1 focus:ring-heritage-red focus:border-heritage-red transition-all font-headline-md h-10" type="text" value="5.0" placeholder="3">
|
|
<span class="absolute right-4 top-1/2 -translate-y-1/2 text-subtle-gray font-headline-md">%</span>
|
|
</div>
|
|
</div>
|
|
<div class="flex flex-col gap-1">
|
|
|
|
<div class="relative">
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="flex justify-end">
|
|
<button class="bg-heritage-red text-white px-6 rounded-xl font-label-md text-label-md hover:bg-primary transition-all active:scale-95 shadow-md py-2">
|
|
保存佣金配置
|
|
</button>
|
|
</div>
|
|
</section>
|
|
<!-- WarehouseCard -->
|
|
<section class="bg-surface-container-lowest card-shadow rounded-xl border border-outline-variant/10 p-4">
|
|
<h3 class="font-headline-md text-headline-md flex items-center gap-2 mb-4">
|
|
<span class="material-symbols-outlined text-heritage-red">local_shipping</span>
|
|
仓配服务配置
|
|
</h3>
|
|
<div class="flex items-center justify-between bg-surface rounded-xl border border-outline-variant/10 p-3">
|
|
<div class="flex items-center gap-3">
|
|
<div class="w-10 h-10 bg-secondary-container/20 rounded-full flex items-center justify-center">
|
|
<span class="material-symbols-outlined text-secondary">electric_moped</span>
|
|
</div>
|
|
<div>
|
|
<p class="font-body-md font-semibold text-ink-black">小飞侠即时配送</p>
|
|
<p class="text-xs text-subtle-gray">API自动派单模式</p>
|
|
</div>
|
|
</div>
|
|
<!-- Toggle Switch -->
|
|
<button class="w-12 h-6 flex items-center bg-heritage-red rounded-full p-1 transition-colors duration-300 focus:outline-none" onclick="toggleSwitch(this)">
|
|
<div class="bg-white w-4 h-4 rounded-full shadow-md transform translate-x-6 transition-transform duration-300"></div>
|
|
</button>
|
|
</div>
|
|
<div class="mt-4 flex items-center gap-2 px-1">
|
|
<span class="material-symbols-outlined text-success-green text-lg">check_circle</span>
|
|
<span class="text-label-md text-subtle-gray">已开启小飞侠对接,系统将自动派单至即时配送平台</span>
|
|
</div>
|
|
</section>
|
|
<!-- SubAccountCard -->
|
|
|
|
</main>
|
|
<!-- FixedBottomBar -->
|
|
<div class="fixed bottom-0 left-0 w-full bg-surface-container-lowest/80 backdrop-blur-md px-margin-page pt-4 pb-10 border-t border-outline-variant/20 z-50">
|
|
<button class="w-full bg-heritage-red text-white py-4 rounded-xl font-headline-md text-headline-md shadow-lg shadow-heritage-red/20 active:scale-[0.98] transition-transform flex items-center justify-center gap-2">
|
|
<span class="material-symbols-outlined" style="font-variation-settings: 'FILL' 1;">save</span>
|
|
保存全部配置
|
|
</button>
|
|
</div>
|
|
<!-- Script for interactive elements -->
|
|
<script>
|
|
function toggleSwitch(element) {
|
|
const circle = element.querySelector('div');
|
|
const isOn = element.classList.contains('bg-heritage-red');
|
|
|
|
if (isOn) {
|
|
element.classList.replace('bg-heritage-red', 'bg-outline');
|
|
circle.classList.replace('translate-x-6', 'translate-x-0');
|
|
} else {
|
|
element.classList.replace('bg-outline', 'bg-heritage-red');
|
|
circle.classList.replace('translate-x-0', 'translate-x-6');
|
|
}
|
|
}
|
|
|
|
// Add a micro-interaction to input fields
|
|
document.querySelectorAll('input').forEach(input => {
|
|
input.addEventListener('focus', () => {
|
|
input.parentElement.parentElement.classList.add('scale-[1.01]');
|
|
});
|
|
input.addEventListener('blur', () => {
|
|
input.parentElement.parentElement.classList.remove('scale-[1.01]');
|
|
});
|
|
});
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</body></html> |