mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 05:09:21 +08:00
178 lines
9.7 KiB
HTML
178 lines
9.7 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>创建导入任务 - 毛玻璃组件</title>
|
|
<script src="https://cdn.tailwindcss.com"></script>
|
|
<link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;700&display=swap" rel="stylesheet">
|
|
<style>
|
|
body {
|
|
font-family: 'Plus Jakarta Sans', sans-serif;
|
|
background: linear-gradient(135deg, #e0e7ff 0%, #fae8ff 50%, #f1f5f9 100%);
|
|
min-height: 100vh;
|
|
display: flex; align-items: center; justify-content: center;
|
|
}
|
|
/* 延续之前的 Glass 核心类 */
|
|
.glass {
|
|
background: rgba(255, 255, 255, 0.45);
|
|
backdrop-filter: blur(20px);
|
|
-webkit-backdrop-filter: blur(20px);
|
|
border: 1px solid rgba(255, 255, 255, 0.5);
|
|
}
|
|
/* 内部映射卡片 */
|
|
.glass-inner-card {
|
|
background: rgba(255, 255, 255, 0.3);
|
|
border: 1px solid rgba(255, 255, 255, 0.4);
|
|
transition: all 0.3s ease;
|
|
}
|
|
.glass-inner-card:hover { background: rgba(255, 255, 255, 0.5); transform: translateY(-2px); }
|
|
|
|
/* 步进器线条动画 */
|
|
.step-line { height: 2px; background: rgba(99, 102, 241, 0.1); flex-grow: 1; margin: 0 1rem; position: relative; overflow: hidden; }
|
|
.step-line-active::after { content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 100%; background: #6366f1; animation: slide 1s ease-in-out; }
|
|
|
|
@keyframes slide { from { width: 0; } to { width: 100%; } }
|
|
|
|
.custom-scroll::-webkit-scrollbar { width: 4px; }
|
|
.custom-scroll::-webkit-scrollbar-thumb { background: rgba(99, 102, 241, 0.2); border-radius: 10px; }
|
|
</style>
|
|
</head>
|
|
<body class="p-4">
|
|
|
|
<!-- 弹窗主体容器 -->
|
|
<div class="max-w-4xl w-full glass rounded-[3rem] shadow-2xl overflow-hidden flex flex-col max-h-[90vh]">
|
|
|
|
<!-- Header -->
|
|
<div class="px-10 py-8 border-b border-white/40 flex justify-between items-center">
|
|
<div>
|
|
<h2 class="text-2xl font-black text-slate-800 tracking-tight">创建导入任务</h2>
|
|
<p class="text-xs text-slate-500 font-bold mt-1 uppercase tracking-widest">Import Task Wizard</p>
|
|
</div>
|
|
<button class="w-10 h-10 glass rounded-full flex items-center justify-center text-slate-400 hover:text-slate-600 transition">✕</button>
|
|
</div>
|
|
|
|
<!-- 步进器 Stepper -->
|
|
<div class="px-12 py-10">
|
|
<div class="flex items-center">
|
|
<!-- Step 1: Done -->
|
|
<div class="flex items-center">
|
|
<div class="w-10 h-10 bg-indigo-100 text-indigo-600 rounded-2xl flex items-center justify-center font-bold shadow-inner">✓</div>
|
|
<span class="ml-3 text-xs font-black text-indigo-600">选择店铺</span>
|
|
</div>
|
|
<div class="step-line step-line-active"></div>
|
|
<!-- Step 2: Active -->
|
|
<div class="flex items-center">
|
|
<div class="w-10 h-10 bg-indigo-600 text-white rounded-2xl flex items-center justify-center font-bold shadow-lg shadow-indigo-200">2</div>
|
|
<span class="ml-3 text-xs font-black text-slate-700">字段映射</span>
|
|
</div>
|
|
<div class="step-line"></div>
|
|
<!-- Step 3: Pending -->
|
|
<div class="flex items-center">
|
|
<div class="w-10 h-10 glass rounded-2xl flex items-center justify-center font-bold text-slate-400">3</div>
|
|
<span class="ml-3 text-xs font-bold text-slate-400">状态映射</span>
|
|
</div>
|
|
<div class="step-line"></div>
|
|
<!-- Step 4: Pending -->
|
|
<div class="flex items-center">
|
|
<div class="w-10 h-10 glass rounded-2xl flex items-center justify-center font-bold text-slate-400">4</div>
|
|
<span class="ml-3 text-xs font-bold text-slate-400">确认信息</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 内容区域 (这里以 Step 2 字段映射为例展示) -->
|
|
<div class="px-12 pb-10 flex-1 overflow-y-auto custom-scroll space-y-6">
|
|
|
|
<!-- 顶部操作栏 -->
|
|
<div class="flex justify-between items-center bg-white/20 p-4 rounded-2xl border border-white/40">
|
|
<span class="text-sm font-medium text-slate-600">系统已根据 CSV 表头为您自动匹配了 5 个字段</span>
|
|
<div class="flex gap-2">
|
|
<select class="bg-white/50 border-none rounded-xl text-xs font-bold px-4 py-2 outline-none">
|
|
<option>默认映射模板 (拼多多)</option>
|
|
</select>
|
|
<button class="text-xs font-bold text-indigo-600 hover:underline">保存为新模板</button>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 映射列表布局 -->
|
|
<div class="grid grid-cols-1 gap-4">
|
|
|
|
<!-- 映射单元 1 -->
|
|
<div class="glass-inner-card p-5 rounded-[1.5rem] flex items-center gap-8">
|
|
<div class="w-1/3">
|
|
<label class="text-[10px] font-black text-indigo-500 uppercase">系统标准字段</label>
|
|
<h4 class="text-base font-bold text-slate-800">规格编码 <span class="text-rose-500">*</span></h4>
|
|
<p class="text-[10px] text-slate-400">字段定义: spec_code</p>
|
|
</div>
|
|
<div class="flex-1 flex items-center gap-4">
|
|
<div class="text-slate-300">
|
|
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14 5l7 7m0 0l-7 7m7-7H3"/></svg>
|
|
</div>
|
|
<div class="flex-1">
|
|
<select class="w-full bg-white/60 border border-white/80 rounded-2xl px-5 py-3 text-sm font-bold outline-none focus:ring-2 focus:ring-indigo-300 transition-all">
|
|
<option>商家编码-规格维度 (CSV列)</option>
|
|
<option>商品ID</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 映射单元 2 (错误示例) -->
|
|
<div class="glass-inner-card p-5 rounded-[1.5rem] flex items-center gap-8 border-rose-200 bg-rose-50/20">
|
|
<div class="w-1/3">
|
|
<label class="text-[10px] font-black text-rose-500 uppercase">系统标准字段</label>
|
|
<h4 class="text-base font-bold text-slate-800">商家实收金额 <span class="text-rose-500">*</span></h4>
|
|
<p class="text-[10px] text-slate-400">字段定义: received_amount</p>
|
|
</div>
|
|
<div class="flex-1 flex items-center gap-4">
|
|
<div class="text-rose-300">
|
|
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14 5l7 7m0 0l-7 7m7-7H3"/></svg>
|
|
</div>
|
|
<div class="flex-1">
|
|
<select class="w-full bg-rose-50/50 border border-rose-200 rounded-2xl px-5 py-3 text-sm font-bold outline-none text-rose-500">
|
|
<option>-- 请选择 CSV 对应列 --</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 映射单元 3 -->
|
|
<div class="glass-inner-card p-5 rounded-[1.5rem] flex items-center gap-8">
|
|
<div class="w-1/3">
|
|
<label class="text-[10px] font-black text-indigo-500 uppercase">系统标准字段</label>
|
|
<h4 class="text-base font-bold text-slate-800">下单时间 <span class="text-rose-500">*</span></h4>
|
|
</div>
|
|
<div class="flex-1 flex items-center gap-4">
|
|
<div class="text-slate-300">
|
|
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14 5l7 7m0 0l-7 7m7-7H3"/></svg>
|
|
</div>
|
|
<div class="flex-1">
|
|
<select class="w-full bg-white/60 border border-white/80 rounded-2xl px-5 py-3 text-sm font-bold outline-none">
|
|
<option>支付时间 (Pay Time)</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Footer -->
|
|
<div class="px-12 py-8 border-t border-white/40 bg-white/20 flex justify-between items-center">
|
|
<button class="px-8 py-3 rounded-2xl font-bold text-slate-500 hover:bg-white/50 transition">
|
|
取消导入
|
|
</button>
|
|
<div class="flex gap-4">
|
|
<button class="glass px-8 py-3 rounded-2xl font-bold text-indigo-600 hover:bg-white/60 transition border border-indigo-100">
|
|
上一步
|
|
</button>
|
|
<button class="bg-indigo-600 text-white px-10 py-3 rounded-2xl font-bold shadow-xl shadow-indigo-200 hover:bg-indigo-700 transition">
|
|
下一步:状态映射
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</body>
|
|
</html> |