feat: 调整欢迎页流程描述

This commit is contained in:
2026-08-25 10:11:19 +08:00
parent 3d8865beb7
commit 53bb8a32fd
@@ -1,48 +1,64 @@
<script setup lang="ts"> <script setup lang="ts">
import { computed } from 'vue';
import { useRouter } from 'vue-router'; import { useRouter } from 'vue-router';
import { Page } from '@vben/common-ui'; import { Page } from '@vben/common-ui';
import { createIconifyIcon } from '@vben/icons'; import { createIconifyIcon } from '@vben/icons';
import { preferences } from '@vben/preferences';
import { useUserStore } from '@vben/stores';
import { Button } from 'ant-design-vue';
defineOptions({ name: 'WelcomePage' }); defineOptions({ name: 'WelcomePage' });
const router = useRouter(); const router = useRouter();
const userStore = useUserStore();
const CheckIcon = createIconifyIcon('lucide:check'); const CheckIcon = createIconifyIcon('lucide:check');
const ShopIcon = createIconifyIcon('solar:shop-2-linear'); const ShopIcon = createIconifyIcon('solar:shop-2-linear');
const DocumentSyncIcon = createIconifyIcon('fluent:document-sync-24-regular'); const SyncIcon = createIconifyIcon('fluent:arrow-sync-24-regular');
const FlowIcon = createIconifyIcon('carbon:flow-stream'); const TransformIcon = createIconifyIcon('carbon:data-refinery');
const RocketIcon = createIconifyIcon('solar:rocket-2-linear'); const CalcIcon = createIconifyIcon('solar:calculator-linear');
const LoadingIcon = createIconifyIcon('line-md:loading-twotone-loop');
const ChartIcon = createIconifyIcon('solar:chart-2-linear'); const ChartIcon = createIconifyIcon('solar:chart-2-linear');
const DownloadIcon = createIconifyIcon('solar:file-download-linear'); const LayersIcon = createIconifyIcon('lucide:layers');
const RankIcon = createIconifyIcon('lucide:bar-chart-3');
const ArrowIcon = createIconifyIcon('lucide:arrow-right');
const goWorkbench = () => { const greeting = computed(() => {
const name = userStore.userInfo?.realName?.trim();
return name ? `${name},欢迎回来` : '欢迎回来';
});
const companyName = computed(() => {
const info = userStore.userInfo as null | { company?: { name?: string } };
return info?.company?.name?.trim() || '';
});
function goWorkbench() {
router.push({ name: 'Workbench' }); router.push({ name: 'Workbench' });
}; }
</script> </script>
<template> <template>
<Page <Page :auto-content-height="true" class="welcome-page">
:auto-content-height="true" <div class="bg-blur blur-top" aria-hidden="true"></div>
class="welcome-page" <div class="bg-blur blur-bottom" aria-hidden="true"></div>
>
<div class="bg-blur blur-top"></div>
<div class="bg-blur blur-bottom"></div>
<div class="welcome-container"> <div class="welcome-container">
<div class="content-left"> <div class="content-left">
<h1>电商经营数据中台</h1> <p class="greeting">{{ greeting }}</p>
<div class="subtitle">多平台订单集成与经营分析一体化平台</div> <h1>{{ preferences.app.name }}</h1>
<div class="subtitle">电商经营数据中台</div>
<p v-if="companyName" class="company">{{ companyName }}</p>
<div class="feature-item"> <div class="feature-item">
<div class="icon-box"> <div class="icon-box">
<CheckIcon /> <CheckIcon />
</div> </div>
<div> <div>
<b>多平台智能集成:</b> <b>多平台开放对接</b>
<p> <p>
统一接入多平台订单数据,集中完成采集、清洗与标准化,打破平台间数据孤岛。 通过拼多多等电商平台开放平台完成店铺授权,订单支持全量与增量自动同步,无需手工导入。
</p> </p>
</div> </div>
</div> </div>
@@ -52,9 +68,9 @@ const goWorkbench = () => {
<CheckIcon /> <CheckIcon />
</div> </div>
<div> <div>
<b>高度自定义映射:</b> <b>同步 · 转换 · 计算</b>
<p> <p>
通过字段映射和订单状态映射,快速对齐企业既有业务口径与订单生命周期管理规则。 订单拉取后自动完成数据转换与经营指标计算,成本、推广费、利润等口径统一,数据持续更新。
</p> </p>
</div> </div>
</div> </div>
@@ -64,80 +80,88 @@ const goWorkbench = () => {
<CheckIcon /> <CheckIcon />
</div> </div>
<div> <div>
<b>高效数据洞察:</b> <b>工作台深度分析</b>
<p> <p>
从订单到利润的全链路分析,沉淀店铺经营看板、目标达成与报表导出能力。 经营概览掌握 KPI 与趋势,多维分析下钻平台/店铺/品类/商品,配合销售排行与区间对比支撑日常运营。
</p> </p>
</div> </div>
</div> </div>
<div class="btn-group"> <div class="btn-group">
<button class="btn-primary" @click="goWorkbench">工作台</button> <Button size="large" type="primary" class="btn-primary" @click="goWorkbench">
进入工作台
<ArrowIcon class="btn-icon" />
</Button>
</div> </div>
</div> </div>
<div class="flowchart-wrap"> <div class="flowchart-wrap">
<div class="flowchart-right"> <div class="flowchart-right">
<div class="group-label g-1"><b>接入配置</b><span>店铺与规则</span></div> <div class="group-label g-1"><b>平台对接</b><span>授权接入</span></div>
<div class="group-label g-2"><b>任务执行</b><span>自动化处理</span></div> <div class="group-label g-2"><b>数据处理</b><span>自动流水线</span></div>
<div class="group-label g-3"><b>经营分析</b><span>指标应用</span></div> <div class="group-label g-3"><b>经营分析</b><span>工作台</span></div>
<div class="card pos-1"> <div class="card pos-1">
<div class="step-tag">Step 1</div> <div class="step-tag">Step 1</div>
<ShopIcon class="card-icon text-blue" /> <ShopIcon class="card-icon text-blue" />
<h4>选择店铺</h4> <h4>店铺授权</h4>
<p>多平台API授权</p> <p>开放平台 API 授权</p>
</div> </div>
<div class="card pos-2"> <div class="card pos-2">
<div class="step-tag">Step 2</div> <div class="step-tag">Step 2</div>
<DocumentSyncIcon class="card-icon text-purple" /> <SyncIcon class="card-icon text-blue" />
<h4>映射字段</h4> <h4>订单同步</h4>
<p>自定义表头对应</p> <p>全量 / 增量拉取</p>
</div> </div>
<div class="card pos-3"> <div class="card pos-3">
<div class="step-tag">Step 3</div> <div class="step-tag">Step 3</div>
<FlowIcon class="card-icon text-purple" /> <TransformIcon class="card-icon text-purple" />
<h4>映射状态</h4> <h4>数据转换</h4>
<p>统一订单生命周期</p> <p>字段与状态标准化</p>
</div> </div>
<div class="card pos-4"> <div class="card pos-4">
<div class="step-tag">Step 4</div> <div class="step-tag">Step 4</div>
<RocketIcon class="card-icon text-orange" /> <CalcIcon class="card-icon text-orange" />
<h4>创建导入任务</h4> <h4>指标计算</h4>
<p>设置同步频率</p> <p>成本归集与利润核算</p>
</div> </div>
<div class="card pos-5 processing-card"> <div class="card pos-5 processing-card">
<LoadingIcon class="card-icon text-blue" /> <ChartIcon class="card-icon text-blue" />
<h4>系统处理中</h4> <h4>经营概览</h4>
<p>数据清洗与校验</p> <p>KPI · 趋势 · 店铺汇总</p>
</div> </div>
<div class="card pos-6"> <div class="card pos-6">
<ChartIcon class="card-icon text-green" /> <LayersIcon class="card-icon text-green" />
<h4>数据面板</h4> <h4>多维分析</h4>
<p>可视化实时概览</p> <p>平台 / 店铺 / 品类 / 商品</p>
</div> </div>
<div class="card pos-7"> <div class="card pos-7">
<DownloadIcon class="card-icon text-green" /> <RankIcon class="card-icon text-green" />
<h4>导出报表</h4> <h4>排行与对比</h4>
<p>支持Excel/PDF</p> <p>销售额榜 · 区间对比</p>
</div> </div>
<!-- 对接 → 同步 -->
<div class="line active" style="width: 55px; top: 95px; left: 205px"></div> <div class="line active" style="width: 55px; top: 95px; left: 205px"></div>
<!-- 同步 → 转换 -->
<div class="line active" style="width: 55px; top: 95px; left: 405px"></div> <div class="line active" style="width: 55px; top: 95px; left: 405px"></div>
<!-- 转换 → 计算(折线) -->
<div <div
class="line" class="line"
style="width: 200px; height: 100px; top: 120px; left: 335px; border-width: 0 1px 1px 0; border-radius: 0 0 15px 0" style="width: 200px; height: 100px; top: 120px; left: 335px; border-width: 0 1px 1px 0; border-radius: 0 0 15px 0"
></div> ></div>
<div class="badge" style="top: 175px; left: 470px">配置完成</div> <div class="badge" style="top: 175px; left: 470px">处理完成</div>
<!-- 计算 → 经营概览 -->
<div class="line active" style="width: 55px; top: 275px; left: 405px"></div> <div class="line active" style="width: 55px; top: 275px; left: 405px"></div>
<!-- 经营概览 → 多维 / 排行 -->
<div <div
class="line" class="line"
style="height: 60px; top: 320px; left: 532px; border-width: 0 1px 0 0" style="height: 60px; top: 320px; left: 532px; border-width: 0 1px 0 0"
@@ -154,7 +178,7 @@ const goWorkbench = () => {
class="line" class="line"
style="height: 60px; top: 380px; left: 432px; border-width: 0 0 0 1px" style="height: 60px; top: 380px; left: 432px; border-width: 0 0 0 1px"
></div> ></div>
<div class="badge" style="top: 370px; left: 325px">导入成功</div> <div class="badge" style="top: 370px; left: 325px">进入工作台</div>
</div> </div>
</div> </div>
</div> </div>
@@ -172,7 +196,6 @@ const goWorkbench = () => {
--text-gray: #64748b; --text-gray: #64748b;
--surface: rgb(255 255 255 / 88%); --surface: rgb(255 255 255 / 88%);
--surface-strong: #ffffff; --surface-strong: #ffffff;
--surface-muted: #f8fafc;
--border-color: #e2e8f0; --border-color: #e2e8f0;
--badge-bg: #eff6ff; --badge-bg: #eff6ff;
--badge-border: #dbeafe; --badge-border: #dbeafe;
@@ -183,12 +206,7 @@ const goWorkbench = () => {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
background: linear-gradient( background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 40%, #eef2ff 100%);
145deg,
#f8fafc 0%,
#f1f5f9 40%,
#eef2ff 100%
);
} }
.welcome-container { .welcome-container {
@@ -231,8 +249,14 @@ const goWorkbench = () => {
min-width: 0; min-width: 0;
} }
.greeting {
margin: 0 0 10px;
color: var(--text-gray);
font-size: 15px;
}
.content-left h1 { .content-left h1 {
margin-bottom: 12px; margin: 0 0 8px;
color: var(--text-dark); color: var(--text-dark);
font-size: clamp(24px, 3.6vw, 36px); font-size: clamp(24px, 3.6vw, 36px);
letter-spacing: -1px; letter-spacing: -1px;
@@ -240,16 +264,22 @@ const goWorkbench = () => {
} }
.subtitle { .subtitle {
margin-bottom: clamp(24px, 4vw, 45px); margin-bottom: 8px;
color: rgb(59 130 246 / 90%); color: rgb(59 130 246 / 90%);
font-size: clamp(16px, 2.2vw, 22px); font-size: clamp(16px, 2.2vw, 22px);
font-weight: 600; font-weight: 600;
line-height: 1.4; line-height: 1.4;
} }
.company {
margin: 0 0 clamp(20px, 3vw, 32px);
color: #475569;
font-size: 14px;
}
.feature-item { .feature-item {
display: flex; display: flex;
margin-bottom: 28px; margin-bottom: 24px;
} }
.icon-box { .icon-box {
@@ -275,6 +305,7 @@ const goWorkbench = () => {
} }
.feature-item p { .feature-item p {
margin: 0;
color: var(--text-gray); color: var(--text-gray);
font-size: 14px; font-size: 14px;
line-height: 1.6; line-height: 1.6;
@@ -284,28 +315,21 @@ const goWorkbench = () => {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
gap: 12px; gap: 12px;
margin-top: clamp(20px, 3vw, 30px); margin-top: clamp(20px, 3vw, 28px);
} }
.btn-primary { .btn-primary {
border-radius: 8px; display: inline-flex !important;
font-size: 16px; align-items: center;
cursor: pointer; gap: 8px;
transition: all 0.3s ease; height: 44px !important;
padding: 12px 30px; padding-inline: 28px !important;
border: none; border-radius: 10px !important;
color: #fff; font-size: 15px;
background: linear-gradient(
135deg,
color-mix(in srgb, var(--primary-blue) 90%, #fff),
color-mix(in srgb, var(--primary-blue) 70%, #1d4ed8)
);
box-shadow: 0 8px 18px rgb(37 99 235 / 22%);
} }
.btn-primary:hover { .btn-icon {
transform: translateY(-2px); font-size: 16px;
box-shadow: 0 10px 24px rgb(37 99 235 / 30%);
} }
.flowchart-wrap { .flowchart-wrap {
@@ -395,12 +419,13 @@ const goWorkbench = () => {
} }
.card h4 { .card h4 {
margin-bottom: 4px; margin: 0 0 4px;
color: var(--text-dark); color: var(--text-dark);
font-size: 14px; font-size: 14px;
} }
.card p { .card p {
margin: 0;
color: var(--text-gray); color: var(--text-gray);
font-size: 11px; font-size: 11px;
} }
@@ -493,8 +518,6 @@ const goWorkbench = () => {
top: 485px; top: 485px;
} }
/* ==================== 响应式适配 ==================== */
@media (max-width: 1200px) { @media (max-width: 1200px) {
.welcome-container { .welcome-container {
gap: 32px; gap: 32px;
@@ -559,10 +582,9 @@ const goWorkbench = () => {
.btn-primary { .btn-primary {
width: 100%; width: 100%;
text-align: center; justify-content: center;
} }
/* 窄屏:流程图改为纵向卡片列表,保留内容不隐藏 */
.flowchart-wrap { .flowchart-wrap {
overflow: visible; overflow: visible;
} }
@@ -615,7 +637,6 @@ const goWorkbench = () => {
} }
.flowchart-right .card p { .flowchart-right .card p {
margin: 0;
font-size: 13px; font-size: 13px;
} }
@@ -625,20 +646,9 @@ const goWorkbench = () => {
left: auto; left: auto;
} }
} }
@media (max-width: 480px) {
.welcome-container {
padding: 16px 12px 24px;
}
.content-left h1 {
letter-spacing: -0.4px;
}
}
</style> </style>
<style> <style>
/* 深色模式:不使用 scoped,确保选择器能正确命中 html.dark */
html.dark .welcome-page { html.dark .welcome-page {
--primary-blue: #60a5fa; --primary-blue: #60a5fa;
--accent-green: #34d399; --accent-green: #34d399;
@@ -649,7 +659,6 @@ html.dark .welcome-page {
--text-gray: hsl(240deg 5% 64.9%); --text-gray: hsl(240deg 5% 64.9%);
--surface: hsl(222.34deg 10.43% 12.27% / 86%); --surface: hsl(222.34deg 10.43% 12.27% / 86%);
--surface-strong: hsl(240deg 3.7% 15.9%); --surface-strong: hsl(240deg 3.7% 15.9%);
--surface-muted: hsl(240deg 3.7% 15.9% / 88%);
--border-color: hsl(240deg 3.7% 22%); --border-color: hsl(240deg 3.7% 22%);
--badge-bg: hsl(217deg 91% 60% / 14%); --badge-bg: hsl(217deg 91% 60% / 14%);
--badge-border: hsl(217deg 91% 60% / 28%); --badge-border: hsl(217deg 91% 60% / 28%);
@@ -665,6 +674,15 @@ html.dark .welcome-page .bg-blur {
background: rgb(96 165 250 / 18%); background: rgb(96 165 250 / 18%);
} }
html.dark .welcome-page .greeting,
html.dark .welcome-page .company {
color: hsl(240deg 5% 64.9%);
}
html.dark .welcome-page .subtitle {
color: #60a5fa;
}
html.dark .welcome-page .line { html.dark .welcome-page .line {
border-color: hsl(240deg 3.7% 22%); border-color: hsl(240deg 3.7% 22%);
} }