Files
dukang/pages/_archive/订单售后详情_补发与退款操作_1aa9156b/code.html
T
2026-06-30 10:33:56 +08:00

320 lines
18 KiB
HTML

<!DOCTYPE html><html class="light" 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&amp;family=Be+Vietnam+Pro:wght@400;500&amp;family=Inter:wght@400;500;600&amp;display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&amp;display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&amp;display=swap" rel="stylesheet">
<style>
.material-symbols-outlined {
font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.modal-overlay {
background-color: rgba(0, 0, 0, 0.4);
backdrop-filter: blur(4px);
}
.ticket-notch {
mask-image: radial-gradient(circle at left, transparent 8px, black 8.5px), radial-gradient(circle at right, transparent 8px, black 8.5px);
mask-composite: intersect;
}
</style>
<script id="tailwind-config">
tailwind.config = {
darkMode: "class",
theme: {
extend: {
"colors": {
"on-tertiary-fixed-variant": "#3f4943",
"secondary-fixed-dim": "#e9c349",
"surface-tint": "#b3272c",
"heritage-red": "#A61D24",
"surface-bright": "#faf9f7",
"inverse-surface": "#2f3130",
"secondary-fixed": "#ffe088",
"on-surface": "#1a1c1b",
"on-primary-container": "#ffb9b4",
"error": "#ba1a1a",
"status-blue": "#2A6EBB",
"surface-variant": "#e3e2e0",
"tertiary-fixed-dim": "#bec9c2",
"outline-variant": "#e2bebc",
"ink-black": "#1A1A1A",
"surface": "#faf9f7",
"success-green": "#2D6A4F",
"on-tertiary-fixed": "#141e19",
"inverse-on-surface": "#f1f1ef",
"on-secondary-container": "#745c00",
"surface-container-highest": "#e3e2e0",
"secondary-container": "#fed65b",
"on-tertiary-container": "#c2cdc6",
"on-primary": "#ffffff",
"surface-container-highest": "#e3e2e0",
"on-error": "#ffffff",
"error-container": "#ffdad6",
"on-primary-fixed-variant": "#910817",
"surface-container-low": "#f4f3f1",
"primary-fixed-dim": "#ffb3ae",
"primary-fixed": "#ffdad7",
"tertiary": "#37413b",
"surface-container-lowest": "#ffffff",
"on-tertiary": "#ffffff",
"tertiary-container": "#4e5852",
"on-primary-fixed": "#410004",
"background": "#faf9f7",
"aged-amber": "#FFBF00",
"secondary": "#735c00",
"primary": "#820012",
"on-background": "#1a1c1b",
"tertiary-fixed": "#dae5dd",
"surface-dim": "#dadad8",
"outline": "#8d706e",
"on-secondary-fixed-variant": "#574500",
"on-primary-fixed-variant": "#910817",
"primary-container": "#a61d24",
"on-secondary": "#ffffff",
"on-error-container": "#93000a",
"on-secondary-fixed": "#241a00",
"inverse-primary": "#ffb3ae",
"subtle-gray": "#999999",
"surface-container": "#efeeec"
},
"borderRadius": {
"DEFAULT": "0.25rem",
"lg": "0.5rem",
"xl": "0.75rem",
"full": "9999px"
},
"spacing": {
"base": "8px",
"margin-page": "20px",
"stack-lg": "32px",
"stack-md": "16px",
"gutter-card": "12px",
"stack-sm": "4px"
},
"fontFamily": {
"body-lg": ["Be Vietnam Pro"],
"body-md": ["Be Vietnam Pro"],
"headline-lg": ["Manrope"],
"label-md": ["Inter"],
"headline-lg-mobile": ["Manrope"],
"coupon-amount": ["Manrope"],
"headline-md": ["Manrope"],
"headline-xl": ["Manrope"]
},
"fontSize": {
"body-lg": ["16px", {"lineHeight": "24px", "fontWeight": "400"}],
"body-md": ["14px", {"lineHeight": "20px", "fontWeight": "400"}],
"headline-lg": ["24px", {"lineHeight": "32px", "fontWeight": "600"}],
"label-md": ["12px", {"lineHeight": "16px", "letterSpacing": "0.05em", "fontWeight": "500"}],
"headline-lg-mobile": ["20px", {"lineHeight": "28px", "fontWeight": "600"}],
"coupon-amount": ["28px", {"lineHeight": "28px", "fontWeight": "700"}],
"headline-md": ["18px", {"lineHeight": "26px", "fontWeight": "600"}],
"headline-xl": ["32px", {"lineHeight": "40px", "letterSpacing": "-0.02em", "fontWeight": "700"}]
}
},
},
}
</script>
<style>
body {
min-height: max(884px, 100dvh);
}
</style>
</head>
<body class="bg-background min-h-screen pb-32">
<!-- Top Navigation -->
<header class="bg-surface sticky top-0 z-40 w-full px-margin-page py-base flex justify-between items-center shadow-sm">
<div class="flex items-center gap-4">
<button class="active:scale-95 duration-150 p-1 hover:bg-surface-container-high rounded-full">
<span class="material-symbols-outlined text-on-surface">arrow_back</span>
</button>
<h1 class="font-headline-md text-headline-md-mobile text-heritage-red font-bold">订单售后处理</h1>
</div>
<div class="w-10 h-10 rounded-full bg-surface-container-high flex items-center justify-center overflow-hidden border border-outline-variant/30">
<img class="w-full h-full object-cover" data-alt="Professional avatar of a corporate administrator in a modern office, wearing a clean business suit, soft studio lighting with warm heritage red accents in the background, high-end photography style, distinguished and authoritative mood." src="https://lh3.googleusercontent.com/aida-public/AB6AXuA8iBa-FDXTj8t_OQNDKZkBNkOsL4FBe_HYTV5BcpVQmr63lS0uaUKfgtcfpUM3glDiHazvVQT7c3avVd0qfIKmZXF4X5036rzlhQZGZX7Bj0KkHURIl0dAzhQdIYSNgnOfnl9rRchCuauWo_hIXJ_h1b51s1kPML09Rq4uVWqSuftsNxalAC2Uil4--4Cm942hKvfxLdWM0dSSaTiVS19_9213MxHBBb1TzXkfraIfr_S9udG6s6Y-IGdom-G2nJqK8ojfjYVePNI">
</div>
</header>
<main class="max-w-3xl mx-auto px-margin-page pt-stack-md space-y-stack-md">
<!-- Status Banner -->
<section class="bg-surface-container-low rounded-xl p-6 border-l-4 border-heritage-red flex items-center justify-between shadow-[0px_4px_20px_rgba(166,29,36,0.05)]">
<div>
<p class="font-label-md text-label-md text-subtle-gray mb-1">当前订单状态</p>
<h2 class="font-headline-lg-mobile text-headline-lg-mobile text-ink-black flex items-center gap-2">
已送达
<span class="material-symbols-outlined text-success-green text-[20px]">check_circle</span>
</h2>
</div>
<div class="text-right">
<p class="font-body-md text-body-md text-subtle-gray">更新时间</p>
<p class="font-body-md text-body-md text-on-surface font-medium">2023-11-24 14:30</p>
</div>
</section>
<!-- Product Card -->
<section class="bg-surface-container-lowest rounded-xl p-gutter-card shadow-[0px_4px_20px_rgba(166,29,36,0.05)]">
<div class="flex gap-4">
<div class="w-24 h-24 rounded-lg bg-surface-container overflow-hidden flex-shrink-0 relative">
<img class="w-full h-full object-cover" data-alt="Ultra-premium studio product photography of a 500ml Dukang Chinese baijiu bottle, featuring elegant calligraphy on a cream label, sophisticated red wax seal, crystalline glass texture, lit with soft warm amber amber light to highlight the liquid's clarity, set against a minimalist off-white background." src="https://lh3.googleusercontent.com/aida-public/AB6AXuAdRQiq5hNrbNV9bXWv_aOCXH00M0XoLZ3-uhEkOxbVKKpc1Ur4HoQ0MYx2p7hGp7ze8QZlsImpS-pM--32eUB6-cqaF4Z7guIHMXQoXyaZuM1-MzogAVgIj0lh0dUk4awPYg6XpvOBVK7l4FjOjcvovHmTxX30szX-fgZZpiaMBpP1qlOwIXnS6Hn5bmHHGSDGEJn5oySqOgwVWe82XCaI8KeosMJLjj29cFqqDLCnCDgQ_xQonCnmcmokBDxaChYK9kfeH8bhCSA">
<div class="absolute bottom-0 left-0 right-0 bg-aged-amber text-on-secondary-fixed text-[10px] font-bold px-1 py-0.5 text-center">¥300 好客权益已附</div>
</div>
<div class="flex-grow flex flex-col justify-between py-1">
<div>
<h3 class="font-headline-md text-headline-md text-ink-black leading-tight">杜康·传奇1972 尊享版</h3>
<p class="font-body-md text-body-md text-subtle-gray mt-1">规格: 500ml * 1瓶</p>
</div>
<div class="flex justify-between items-baseline">
<span class="font-body-md text-body-md text-ink-black">数量: x1</span>
<span class="font-headline-md text-headline-md text-heritage-red">¥1,299.00</span>
</div>
</div>
</div>
</section>
<!-- Order Information Details -->
<section class="bg-surface-container-lowest rounded-xl p-6 shadow-[0px_4px_20px_rgba(166,29,36,0.05)] space-y-4">
<h4 class="font-headline-md text-headline-md text-ink-black border-b border-outline-variant/20 pb-2">基础信息</h4>
<div class="grid grid-cols-1 md:grid-cols-2 gap-y-4 gap-x-8">
<div class="space-y-1">
<p class="font-label-md text-label-md text-subtle-gray">订单编号</p>
<p class="font-body-md text-body-md text-on-surface flex items-center gap-2">
DK2023112488921
<span class="material-symbols-outlined text-[16px] text-heritage-red cursor-pointer">content_copy</span>
</p>
</div>
<div class="space-y-1">
<p class="font-label-md text-label-md text-subtle-gray">支付时间</p>
<p class="font-body-md text-body-md text-on-surface">2023-11-23 09:15:44</p>
</div>
<div class="space-y-1">
<p class="font-label-md text-label-md text-subtle-gray">用户手机</p>
<p class="font-body-md text-body-md text-on-surface">138 **** 9928</p>
</div>
<div class="space-y-1">
<p class="font-label-md text-label-md text-subtle-gray">配送地址</p>
<p class="font-body-md text-body-md text-on-surface leading-snug">河南省洛阳市伊川县杜康路32号 办公大楼 402室</p>
</div>
</div>
</section>
<!-- Timeline Section (Optional but adds value) -->
<section class="bg-surface-container-lowest rounded-xl p-6 shadow-[0px_4px_20px_rgba(166,29,36,0.05)]">
<h4 class="font-headline-md text-headline-md text-ink-black mb-6">流转日志</h4>
<div class="space-y-6 relative before:absolute before:left-[11px] before:top-2 before:bottom-2 before:w-[2px] before:bg-outline-variant/30">
<div class="relative pl-8">
<div class="absolute left-0 top-1 w-6 h-6 bg-heritage-red rounded-full flex items-center justify-center z-10 shadow-sm">
<span class="material-symbols-outlined text-white text-[14px]">local_shipping</span>
</div>
<p class="font-body-md text-body-md text-ink-black font-semibold">订单完成投递</p>
<p class="font-label-md text-label-md text-subtle-gray">2023-11-24 14:30:22</p>
</div>
<div class="relative pl-8">
<div class="absolute left-0 top-1 w-6 h-6 bg-outline-variant rounded-full flex items-center justify-center z-10">
<div class="w-2 h-2 bg-white rounded-full"></div>
</div>
<p class="font-body-md text-body-md text-on-surface">支付成功,系统自动分配物流单号</p>
<p class="font-label-md text-label-md text-subtle-gray">2023-11-23 09:16:01</p>
</div>
</div>
</section>
</main>
<!-- Fixed Bottom Actions -->
<footer class="fixed bottom-0 left-0 w-full bg-surface-container-lowest px-margin-page py-4 flex gap-4 shadow-[0px_-4px_20px_rgba(166,29,36,0.05)] z-30">
<button class="flex-1 py-3 px-6 bg-aged-amber text-on-secondary-fixed-variant rounded-xl font-headline-md text-headline-md hover:brightness-95 active:scale-95 transition-all flex items-center justify-center gap-2" onclick="openModal('reshipModal')">
<span class="material-symbols-outlined text-[20px]">destruction</span>
安排补发
</button>
</footer>
<!-- Reship Confirm Modal -->
<div class="modal-overlay fixed inset-0 z-50 flex items-center justify-center p-margin-page hidden" id="reshipModal">
<div class="bg-surface-container-lowest w-full max-w-md rounded-2xl shadow-xl overflow-hidden animate-in fade-in zoom-in duration-300">
<div class="p-6">
<div class="flex justify-between items-center mb-6">
<h3 class="font-headline-lg-mobile text-headline-lg-mobile text-ink-black font-bold">确认安排补发</h3>
<button class="material-symbols-outlined text-subtle-gray hover:text-heritage-red transition-colors" onclick="closeModal('reshipModal')">close</button>
</div>
<div class="space-y-4 mb-6">
<div class="bg-surface-container rounded-lg p-3 flex gap-3 items-center">
<span class="material-symbols-outlined text-heritage-red">person</span>
<div>
<p class="font-label-md text-label-md text-subtle-gray">收货人</p>
<p class="font-body-md text-body-md text-ink-black">张先生 138****9928</p>
</div>
</div>
<div class="bg-surface-container rounded-lg p-3 flex gap-3 items-center">
<span class="material-symbols-outlined text-heritage-red">inventory_2</span>
<div>
<p class="font-label-md text-label-md text-subtle-gray">补发商品</p>
<p class="font-body-md text-body-md text-ink-black">杜康·传奇1972 尊享版 x1</p>
</div>
</div>
<div class="space-y-2">
<label class="font-label-md text-label-md text-ink-black">补发原因 <span class="text-heritage-red">*</span></label>
<textarea class="w-full border-outline-variant/40 rounded-xl p-3 font-body-md text-body-md focus:ring-heritage-red focus:border-heritage-red min-h-[100px]" placeholder="请输入详细的补发原因,如:物流破损、少发货等..."></textarea>
</div>
</div>
<div class="flex gap-3">
<button class="flex-1 py-3 border border-outline-variant text-subtle-gray rounded-xl font-label-md hover:bg-surface-container transition-all" onclick="closeModal('reshipModal')">取消</button>
<button class="flex-1 py-3 bg-heritage-red text-white rounded-xl font-headline-md font-bold hover:brightness-110 shadow-md">确认补发</button>
</div>
</div>
</div>
</div>
<!-- Refund Modal -->
<div class="modal-overlay fixed inset-0 z-50 flex items-center justify-center p-margin-page hidden" id="refundModal">
<div class="bg-surface-container-lowest w-full max-w-md rounded-2xl shadow-xl overflow-hidden animate-in fade-in zoom-in duration-300">
<div class="p-6">
<div class="flex justify-between items-center mb-6">
<h3 class="font-headline-lg-mobile text-headline-lg-mobile text-ink-black font-bold">手动退款</h3>
<button class="material-symbols-outlined text-subtle-gray hover:text-heritage-red transition-colors" onclick="closeModal('refundModal')">close</button>
</div>
<div class="space-y-5 mb-6">
<div class="flex justify-between items-center px-2">
<span class="font-body-lg text-body-lg text-subtle-gray">实付金额</span>
<span class="font-headline-lg text-headline-lg text-ink-black">¥1,299.00</span>
</div>
<div class="space-y-2">
<label class="font-label-md text-label-md text-ink-black">退款金额 <span class="text-heritage-red">*</span></label>
<div class="relative">
<span class="absolute left-4 top-1/2 -translate-y-1/2 font-headline-md text-subtle-gray">¥</span>
<input class="w-full border-outline-variant/40 rounded-xl py-3 pl-8 pr-4 font-headline-md text-heritage-red focus:ring-heritage-red focus:border-heritage-red" max="1299" type="number" value="1299.00">
</div>
<p class="text-[10px] text-heritage-red px-1">最大退款金额不可超过实付金额 ¥1,299.00</p>
</div>
<div class="space-y-2">
<label class="font-label-md text-label-md text-ink-black">退款原因 <span class="text-heritage-red">*</span></label>
<textarea class="w-full border-outline-variant/40 rounded-xl p-3 font-body-md text-body-md focus:ring-heritage-red focus:border-heritage-red min-h-[100px]" placeholder="请填写手动退款的具体原因说明..."></textarea>
</div>
</div>
<div class="flex gap-3">
<button class="flex-1 py-3 border border-outline-variant text-subtle-gray rounded-xl font-label-md hover:bg-surface-container transition-all" onclick="closeModal('refundModal')">关闭</button>
<button class="flex-1 py-3 bg-error text-white rounded-xl font-headline-md font-bold hover:bg-error/90 shadow-md">确认退款</button>
</div>
</div>
</div>
</div>
<script>
function openModal(id) {
const modal = document.getElementById(id);
modal.classList.remove('hidden');
document.body.style.overflow = 'hidden';
}
function closeModal(id) {
const modal = document.getElementById(id);
modal.classList.add('hidden');
document.body.style.overflow = 'auto';
}
// Close on background click
window.onclick = function(event) {
if (event.target.classList.contains('modal-overlay')) {
event.target.classList.add('hidden');
document.body.style.overflow = 'auto';
}
}
</script>
</body></html>