init
This commit is contained in:
@@ -0,0 +1,264 @@
|
||||
<!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">
|
||||
<title>我的地址 - 杜康</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&family=Inter:wght@400;500;600&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">
|
||||
<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": "#dae5dd",
|
||||
"on-secondary": "#ffffff",
|
||||
"secondary-fixed-dim": "#e9c349",
|
||||
"on-primary-fixed": "#410004",
|
||||
"on-background": "#1a1c1b",
|
||||
"primary": "#820012",
|
||||
"success-green": "#2D6A4F",
|
||||
"on-tertiary-fixed-variant": "#3f4943",
|
||||
"inverse-primary": "#ffb3ae",
|
||||
"secondary": "#735c00",
|
||||
"heritage-red": "#A61D24",
|
||||
"on-primary-fixed-variant": "#910817",
|
||||
"inverse-on-surface": "#f1f1ef",
|
||||
"surface-container-highest": "#e3e2e0",
|
||||
"on-tertiary-fixed": "#141e19",
|
||||
"surface-dim": "#dadad8",
|
||||
"primary-fixed": "#ffdad7",
|
||||
"surface-variant": "#e3e2e0",
|
||||
"on-surface": "#1a1c1b",
|
||||
"status-blue": "#2A6EBB",
|
||||
"aged-amber": "#FFBF00",
|
||||
"surface-container-low": "#f4f3f1",
|
||||
"on-secondary-fixed-variant": "#574500",
|
||||
"surface": "#faf9f7",
|
||||
"error": "#ba1a1a",
|
||||
"surface-container-high": "#e9e8e6",
|
||||
"error-container": "#ffdad6",
|
||||
"primary-container": "#a61d24",
|
||||
"inverse-surface": "#2f3130",
|
||||
"secondary-fixed": "#ffe088",
|
||||
"on-tertiary": "#ffffff",
|
||||
"subtle-gray": "#999999",
|
||||
"background": "#faf9f7",
|
||||
"on-primary": "#ffffff",
|
||||
"on-secondary-fixed": "#241a00",
|
||||
"on-error": "#ffffff",
|
||||
"surface-tint": "#b3272c",
|
||||
"outline": "#8d706e",
|
||||
"surface-container": "#efeeec",
|
||||
"tertiary": "#37413b",
|
||||
"tertiary-fixed-dim": "#bec9c2",
|
||||
"ink-black": "#1A1A1A",
|
||||
"secondary-container": "#fed65b",
|
||||
"on-primary-container": "#ffb9b4",
|
||||
"primary-fixed-dim": "#ffb3ae",
|
||||
"on-surface-variant": "#5a413f",
|
||||
"on-tertiary-container": "#c2cdc6",
|
||||
"outline-variant": "#e2bebc",
|
||||
"on-secondary-container": "#745c00",
|
||||
"surface-container-lowest": "#ffffff",
|
||||
"surface-bright": "#faf9f7",
|
||||
"tertiary-container": "#4e5852",
|
||||
"on-error-container": "#93000a"
|
||||
},
|
||||
"borderRadius": {
|
||||
"DEFAULT": "0.25rem",
|
||||
"lg": "0.5rem",
|
||||
"xl": "0.75rem",
|
||||
"full": "9999px"
|
||||
},
|
||||
"spacing": {
|
||||
"stack-lg": "32px",
|
||||
"margin-page": "20px",
|
||||
"stack-sm": "4px",
|
||||
"stack-md": "16px",
|
||||
"gutter-card": "12px",
|
||||
"base": "8px"
|
||||
},
|
||||
"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;
|
||||
}
|
||||
.coupon-notch {
|
||||
mask-image: radial-gradient(circle at left, transparent 6px, black 6px), radial-gradient(circle at right, transparent 6px, black 6px);
|
||||
mask-composite: intersect;
|
||||
}
|
||||
body {
|
||||
background-color: #faf9f7;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
}
|
||||
.safe-bottom {
|
||||
padding-bottom: calc(1rem + env(safe-area-inset-bottom));
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
body {
|
||||
min-height: max(884px, 100dvh);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body class="font-body-md text-on-surface">
|
||||
<!-- TopAppBar -->
|
||||
<header class="fixed top-0 left-0 w-full z-50 flex items-center px-4 h-12 bg-surface">
|
||||
<button class="active:opacity-70 transition-opacity duration-200 flex items-center justify-center w-10 h-10 -ml-2" onclick="history.back()">
|
||||
<span class="material-symbols-outlined text-heritage-red text-[24px]">arrow_back</span>
|
||||
</button>
|
||||
<h1 class="flex-1 text-center font-headline-lg-mobile text-headline-lg-mobile font-semibold text-on-surface mr-8">我的地址</h1>
|
||||
</header>
|
||||
<!-- Main Content Area -->
|
||||
<main class="pt-16 pb-32 px-margin-page min-h-screen">
|
||||
<!-- Address List Scrollable Container -->
|
||||
<div class="flex flex-col gap-4">
|
||||
<!-- Address Card 1 (Default) -->
|
||||
<div class="bg-surface-container-lowest p-5 rounded-xl transition-transform duration-150 active:scale-[0.98] shadow-[0px_4px_20px_rgba(166,29,26,0.05)] border border-heritage-red/5">
|
||||
<div class="flex items-center justify-between mb-2">
|
||||
<div class="flex items-center gap-3">
|
||||
<span class="font-headline-md text-headline-md text-ink-black">张先生</span>
|
||||
<span class="font-body-lg text-body-lg text-subtle-gray">138****5678</span>
|
||||
</div>
|
||||
<span class="px-2 py-0.5 bg-heritage-red text-white text-[10px] font-bold rounded-sm tracking-wider uppercase">默认</span>
|
||||
</div>
|
||||
<p class="font-body-md text-body-md text-on-surface-variant line-clamp-2 mb-4 leading-relaxed">
|
||||
河南省洛阳市涧西区开元大道248号杜康大厦12层
|
||||
</p>
|
||||
<div class="h-[1px] w-full bg-surface-container-highest mb-4"></div>
|
||||
<div class="flex justify-between items-center">
|
||||
<div class="flex items-center text-heritage-red gap-1 opacity-80">
|
||||
<span class="material-symbols-outlined text-[18px]" style="font-variation-settings: 'FILL' 1;">check_circle</span>
|
||||
<span class="text-[12px] font-medium">默认地址</span>
|
||||
</div>
|
||||
<div class="flex gap-4">
|
||||
<button class="flex items-center gap-1 text-on-surface-variant active:opacity-60 transition-opacity">
|
||||
<span class="material-symbols-outlined text-[18px]">edit</span>
|
||||
<span class="text-label-md font-label-md">编辑</span>
|
||||
</button>
|
||||
<button class="flex items-center gap-1 text-on-surface-variant active:opacity-60 transition-opacity">
|
||||
<span class="material-symbols-outlined text-[18px]">delete</span>
|
||||
<span class="text-label-md font-label-md">删除</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Address Card 2 -->
|
||||
<div class="bg-surface-container-lowest p-5 rounded-xl transition-transform duration-150 active:scale-[0.98] shadow-[0px_4px_20px_rgba(166,29,26,0.05)] border border-transparent">
|
||||
<div class="flex items-center justify-between mb-2">
|
||||
<div class="flex items-center gap-3">
|
||||
<span class="font-headline-md text-headline-md text-ink-black">李女士</span>
|
||||
<span class="font-body-lg text-body-lg text-subtle-gray">159****2201</span>
|
||||
</div>
|
||||
</div>
|
||||
<p class="font-body-md text-body-md text-on-surface-variant line-clamp-2 mb-4 leading-relaxed">
|
||||
河南省郑州市金水区郑东新区商务内环路8号杜康大厦
|
||||
</p>
|
||||
<div class="h-[1px] w-full bg-surface-container-highest mb-4"></div>
|
||||
<div class="flex justify-between items-center">
|
||||
<button class="flex items-center gap-1 text-subtle-gray active:opacity-60 transition-opacity">
|
||||
<span class="material-symbols-outlined text-[18px]">radio_button_unchecked</span>
|
||||
<span class="text-[12px] font-medium">设为默认</span>
|
||||
</button>
|
||||
<div class="flex gap-4">
|
||||
<button class="flex items-center gap-1 text-on-surface-variant active:opacity-60 transition-opacity">
|
||||
<span class="material-symbols-outlined text-[18px]">edit</span>
|
||||
<span class="text-label-md font-label-md">编辑</span>
|
||||
</button>
|
||||
<button class="flex items-center gap-1 text-on-surface-variant active:opacity-60 transition-opacity">
|
||||
<span class="material-symbols-outlined text-[18px]">delete</span>
|
||||
<span class="text-label-md font-label-md">删除</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Address Card 3 -->
|
||||
<div class="bg-surface-container-lowest p-5 rounded-xl transition-transform duration-150 active:scale-[0.98] shadow-[0px_4px_20px_rgba(166,29,26,0.05)] border border-transparent">
|
||||
<div class="flex items-center justify-between mb-2">
|
||||
<div class="flex items-center gap-3">
|
||||
<span class="font-headline-md text-headline-md text-ink-black">王先生</span>
|
||||
<span class="font-body-lg text-body-lg text-subtle-gray">135****8888</span>
|
||||
</div>
|
||||
</div>
|
||||
<p class="font-body-md text-body-md text-on-surface-variant line-clamp-2 mb-4 leading-relaxed">
|
||||
河南省洛阳市龙门大道杜康村生产基地
|
||||
</p>
|
||||
<div class="h-[1px] w-full bg-surface-container-highest mb-4"></div>
|
||||
<div class="flex justify-between items-center">
|
||||
<button class="flex items-center gap-1 text-subtle-gray active:opacity-60 transition-opacity">
|
||||
<span class="material-symbols-outlined text-[18px]">radio_button_unchecked</span>
|
||||
<span class="text-[12px] font-medium">设为默认</span>
|
||||
</button>
|
||||
<div class="flex gap-4">
|
||||
<button class="flex items-center gap-1 text-on-surface-variant active:opacity-60 transition-opacity">
|
||||
<span class="material-symbols-outlined text-[18px]">edit</span>
|
||||
<span class="text-label-md font-label-md">编辑</span>
|
||||
</button>
|
||||
<button class="flex items-center gap-1 text-on-surface-variant active:opacity-60 transition-opacity">
|
||||
<span class="material-symbols-outlined text-[18px]">delete</span>
|
||||
<span class="text-label-md font-label-md">删除</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Atmospheric Visual Element -->
|
||||
<div class="mt-8 opacity-20 flex flex-col items-center justify-center py-8">
|
||||
<div class="w-16 h-16 mb-4 border border-heritage-red rounded-full flex items-center justify-center">
|
||||
<span class="material-symbols-outlined text-heritage-red text-3xl">location_on</span>
|
||||
</div>
|
||||
<p class="text-label-md font-label-md text-subtle-gray tracking-widest">DUKANG HERITAGE SERVICE</p>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
<!-- Fixed Bottom Button Section -->
|
||||
<div class="fixed bottom-0 left-0 w-full bg-surface/80 backdrop-blur-md z-50 border-t border-surface-container-highest/50 px-margin-page safe-bottom pt-4">
|
||||
<button class="w-full bg-heritage-red text-on-primary h-14 rounded-xl flex items-center justify-center gap-2 active:scale-[0.98] transition-transform duration-150 shadow-lg shadow-heritage-red/10">
|
||||
<span class="material-symbols-outlined text-[20px]">add</span>
|
||||
<span class="font-headline-md text-headline-md">新增收货地址</span>
|
||||
</button>
|
||||
</div>
|
||||
<!-- Micro-interaction Script -->
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
// Address Selection feedback
|
||||
const addressCards = document.querySelectorAll('main > div > div');
|
||||
addressCards.forEach(card => {
|
||||
card.addEventListener('click', (e) => {
|
||||
// Avoid trigger if clicking on action buttons
|
||||
if (e.target.closest('button')) return;
|
||||
|
||||
// Simple select animation
|
||||
card.classList.add('bg-surface-container-high');
|
||||
setTimeout(() => {
|
||||
card.classList.remove('bg-surface-container-high');
|
||||
}, 200);
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body></html>
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"title": "地址管理列表页",
|
||||
"screenId": "69704ee5a1a04b3780a67f062e3b2378",
|
||||
"category": "user",
|
||||
"syncedAt": "2026-06-29T02:35:09.200Z"
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 30 KiB |
Reference in New Issue
Block a user