mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-23 23:59:19 +08:00
simplify: 欢迎页只保留居中 Logo
This commit is contained in:
@@ -1,134 +1,15 @@
|
||||
<script setup lang="ts">
|
||||
import { Page } from '@vben/common-ui';
|
||||
|
||||
import { Card, Flex, Typography } from 'ant-design-vue';
|
||||
|
||||
const { Text, Title, Paragraph } = Typography;
|
||||
import { Flex } from 'ant-design-vue';
|
||||
|
||||
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">
|
||||
<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="1" class="!mb-2 !text-4xl !font-bold">
|
||||
欢迎使用 CD 电商数据中台
|
||||
</Title>
|
||||
|
||||
<Paragraph type="secondary" class="!mb-0 !text-lg">
|
||||
高效订单管理与数据洞察,让电商运营更简单
|
||||
</Paragraph>
|
||||
</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>
|
||||
<Flex align="center" justify="center" class="h-full">
|
||||
<img src="/cd-logo.png" alt="Logo" class="h-32 w-32 rounded-2xl" />
|
||||
</Flex>
|
||||
</Page>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user