mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-23 23:59:19 +08:00
refactor(ui): 重新设计欢迎页,增加设计感和功能展示
- 渐变色 Logo 区域 - 4 个功能卡片展示核心能力 - 快速入口按钮 - 背景网格装饰
This commit is contained in:
@@ -6,55 +6,129 @@ import { Card, Flex, Typography } from 'ant-design-vue';
|
||||
const { Text, Title, Paragraph } = Typography;
|
||||
|
||||
defineOptions({ name: 'WelcomePage' });
|
||||
|
||||
const features = [
|
||||
{
|
||||
icon: '📦',
|
||||
title: '订单管理',
|
||||
desc: '批量导入订单数据,支持多种格式',
|
||||
color: '#3b82f6',
|
||||
},
|
||||
{
|
||||
icon: '📊',
|
||||
title: '数据分析',
|
||||
desc: '多维度统计,洞察销售趋势',
|
||||
color: '#10b981',
|
||||
},
|
||||
{
|
||||
icon: '🏪',
|
||||
title: '店铺管理',
|
||||
desc: '统一管理多平台店铺',
|
||||
color: '#f59e0b',
|
||||
},
|
||||
{
|
||||
icon: '🔄',
|
||||
title: '数据同步',
|
||||
desc: '实时同步订单状态变化',
|
||||
color: '#8b5cf6',
|
||||
},
|
||||
];
|
||||
|
||||
const quickActions = [
|
||||
{ label: '订单导入', icon: '📥', path: '/order-import' },
|
||||
{ label: '商品管理', icon: '📦', path: '/product' },
|
||||
{ label: '数据分析', icon: '📊', path: '/dashboard' },
|
||||
];
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Page :auto-content-height="true">
|
||||
<Flex vertical align="center" justify="center" class="h-full">
|
||||
<Card class="max-w-[600px] text-center">
|
||||
<Flex vertical align="center" gap="middle">
|
||||
<!-- Logo 区域 -->
|
||||
<div class="mb-4">
|
||||
<img
|
||||
src="/cd-logo.png"
|
||||
alt="Logo"
|
||||
class="h-20 w-20 rounded-lg"
|
||||
/>
|
||||
<div class="relative h-full overflow-hidden">
|
||||
<!-- 背景装饰 -->
|
||||
<div
|
||||
class="pointer-events-none absolute inset-0 opacity-[0.03]"
|
||||
style="
|
||||
background-image: radial-gradient(circle at 25% 25%, #000 2px, transparent 2px),
|
||||
radial-gradient(circle at 75% 75%, #000 2px, transparent 2px);
|
||||
background-size: 50px 50px;
|
||||
"
|
||||
></div>
|
||||
|
||||
<Flex vertical align="center" justify="center" class="relative h-full px-6">
|
||||
<!-- Logo 和标题区 -->
|
||||
<Flex vertical align="center" class="mb-12 text-center">
|
||||
<div
|
||||
class="mb-6 flex h-[100px] w-[100px] items-center justify-center rounded-2xl shadow-lg"
|
||||
style="
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
box-shadow: 0 20px 40px -12px rgba(102, 126, 234, 0.35);
|
||||
"
|
||||
>
|
||||
<img src="/cd-logo.png" alt="Logo" class="h-16 w-16 rounded-xl" />
|
||||
</div>
|
||||
|
||||
<!-- 标题 -->
|
||||
<Title level="2">欢迎使用 CD 电商数据中台</Title>
|
||||
<Title level="1" class="!mb-2 !text-4xl !font-bold">
|
||||
欢迎使用 CD 电商数据中台
|
||||
</Title>
|
||||
|
||||
<!-- 副标题 -->
|
||||
<Paragraph type="secondary" class="text-base">
|
||||
高效订单管理与数据洞察
|
||||
<Paragraph type="secondary" class="!mb-0 !text-lg">
|
||||
高效订单管理与数据洞察,让电商运营更简单
|
||||
</Paragraph>
|
||||
|
||||
<div class="mt-4 w-full border-t pt-4">
|
||||
<Paragraph class="text-left text-sm text-gray-500">
|
||||
<Text strong>快速入门:</Text>
|
||||
</Paragraph>
|
||||
<ul class="mt-2 space-y-2 text-left text-sm text-gray-600">
|
||||
<li class="flex items-start gap-2">
|
||||
<span class="mt-1 h-1.5 w-1.5 rounded-full bg-blue-500"></span>
|
||||
<span>在「配置管理」中设置您的订单状态、店铺等基础信息</span>
|
||||
</li>
|
||||
<li class="flex items-start gap-2">
|
||||
<span class="mt-1 h-1.5 w-1.5 rounded-full bg-green-500"></span>
|
||||
<span>通过「订单导入」功能批量导入您的订单数据</span>
|
||||
</li>
|
||||
<li class="flex items-start gap-2">
|
||||
<span class="mt-1 h-1.5 w-1.5 rounded-full bg-orange-500"></span>
|
||||
<span>在「数据分析」中查看订单统计和销售报表</span>
|
||||
</li>
|
||||
<li class="flex items-start gap-2">
|
||||
<span class="mt-1 h-1.5 w-1.5 rounded-full bg-purple-500"></span>
|
||||
<span>如有疑问,请联系系统管理员</span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</Flex>
|
||||
</Card>
|
||||
</Flex>
|
||||
|
||||
<!-- 功能卡片区 -->
|
||||
<div class="mb-12 grid w-full max-w-4xl grid-cols-2 gap-6">
|
||||
<Card
|
||||
v-for="feature in features"
|
||||
:key="feature.title"
|
||||
hoverable
|
||||
class="transition-all duration-300 hover:-translate-y-1"
|
||||
:style="{ borderTopColor: feature.color, borderTopWidth: '3px' }"
|
||||
>
|
||||
<Flex align="start" :gap="16">
|
||||
<div
|
||||
class="flex h-12 w-12 items-center justify-center rounded-xl text-2xl"
|
||||
:style="{ backgroundColor: feature.color + '15' }"
|
||||
>
|
||||
{{ feature.icon }}
|
||||
</div>
|
||||
<div class="flex-1">
|
||||
<Text strong class="mb-1 block text-base">{{
|
||||
feature.title
|
||||
}}</Text>
|
||||
<Text type="secondary" class="text-sm">{{
|
||||
feature.desc
|
||||
}}</Text>
|
||||
</div>
|
||||
</Flex>
|
||||
</Card>
|
||||
</div>
|
||||
|
||||
<!-- 快速入口 -->
|
||||
<Card class="w-full max-w-4xl">
|
||||
<Flex justify="space-between" align="center">
|
||||
<Text strong class="text-base">快速开始</Text>
|
||||
<Flex :gap="12">
|
||||
<div
|
||||
v-for="action in quickActions"
|
||||
:key="action.path"
|
||||
class="flex cursor-pointer items-center gap-2 rounded-lg border border-gray-200 px-4 py-2 transition-colors hover:border-blue-400 hover:bg-blue-50"
|
||||
>
|
||||
<span>{{ action.icon }}</span>
|
||||
<span class="text-sm">{{ action.label }}</span>
|
||||
</div>
|
||||
</Flex>
|
||||
</Flex>
|
||||
</Card>
|
||||
|
||||
<!-- 底部提示 -->
|
||||
<Text
|
||||
type="secondary"
|
||||
class="mt-8 text-center text-sm"
|
||||
>
|
||||
提示:在左侧菜单中配置您的店铺和订单状态,即可开始使用完整功能
|
||||
</Text>
|
||||
</Flex>
|
||||
</div>
|
||||
</Page>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user