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