mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-25 14:29:20 +08:00
feat: 优化欢迎页和系统菜单页
This commit is contained in:
@@ -83,6 +83,7 @@ const goImportTask = () => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<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>
|
||||||
@@ -163,6 +164,7 @@ const goImportTask = () => {
|
|||||||
<div class="badge" style="top: 370px; left: 325px">导入成功</div>
|
<div class="badge" style="top: 370px; left: 325px">导入成功</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</Page>
|
</Page>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -184,7 +186,7 @@ const goImportTask = () => {
|
|||||||
min-height: 0;
|
min-height: 0;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
position: relative;
|
position: relative;
|
||||||
overflow: hidden;
|
overflow: auto;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
@@ -199,23 +201,25 @@ const goImportTask = () => {
|
|||||||
.welcome-container {
|
.welcome-container {
|
||||||
width: min(1250px, 100%);
|
width: min(1250px, 100%);
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding: 40px;
|
padding: clamp(16px, 3vw, 40px);
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
gap: 56px;
|
gap: clamp(24px, 4vw, 56px);
|
||||||
align-items: center;
|
align-items: center;
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bg-blur {
|
.bg-blur {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 300px;
|
width: min(300px, 45vw);
|
||||||
height: 300px;
|
height: min(300px, 45vw);
|
||||||
background: rgb(59 130 246 / 10%);
|
background: rgb(59 130 246 / 10%);
|
||||||
filter: blur(80px);
|
filter: blur(80px);
|
||||||
border-radius: 9999px;
|
border-radius: 9999px;
|
||||||
z-index: 0;
|
z-index: 0;
|
||||||
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.blur-top {
|
.blur-top {
|
||||||
@@ -229,22 +233,25 @@ const goImportTask = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.content-left {
|
.content-left {
|
||||||
width: 430px;
|
width: min(430px, 100%);
|
||||||
flex-shrink: 0;
|
flex: 0 1 430px;
|
||||||
|
min-width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content-left h1 {
|
.content-left h1 {
|
||||||
margin-bottom: 12px;
|
margin-bottom: 12px;
|
||||||
color: var(--text-dark);
|
color: var(--text-dark);
|
||||||
font-size: 36px;
|
font-size: clamp(24px, 3.6vw, 36px);
|
||||||
letter-spacing: -1px;
|
letter-spacing: -1px;
|
||||||
|
line-height: 1.25;
|
||||||
}
|
}
|
||||||
|
|
||||||
.subtitle {
|
.subtitle {
|
||||||
margin-bottom: 45px;
|
margin-bottom: clamp(24px, 4vw, 45px);
|
||||||
color: rgb(59 130 246 / 90%);
|
color: rgb(59 130 246 / 90%);
|
||||||
font-size: 22px;
|
font-size: clamp(16px, 2.2vw, 22px);
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
line-height: 1.4;
|
||||||
}
|
}
|
||||||
|
|
||||||
.feature-item {
|
.feature-item {
|
||||||
@@ -282,8 +289,9 @@ const goImportTask = () => {
|
|||||||
|
|
||||||
.btn-group {
|
.btn-group {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 15px;
|
flex-wrap: wrap;
|
||||||
margin-top: 30px;
|
gap: 12px;
|
||||||
|
margin-top: clamp(20px, 3vw, 30px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-primary,
|
.btn-primary,
|
||||||
@@ -318,6 +326,12 @@ const goImportTask = () => {
|
|||||||
background: var(--surface-strong);
|
background: var(--surface-strong);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.flowchart-wrap {
|
||||||
|
flex: 1 1 480px;
|
||||||
|
min-width: 0;
|
||||||
|
max-width: 840px;
|
||||||
|
}
|
||||||
|
|
||||||
.flowchart-right {
|
.flowchart-right {
|
||||||
width: 840px;
|
width: 840px;
|
||||||
height: 600px;
|
height: 600px;
|
||||||
@@ -497,45 +511,64 @@ const goImportTask = () => {
|
|||||||
top: 485px;
|
top: 485px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ==================== 移动端适配 ==================== */
|
/* ==================== 响应式适配 ==================== */
|
||||||
|
|
||||||
|
@media (max-width: 1200px) {
|
||||||
|
.welcome-container {
|
||||||
|
gap: 32px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.flowchart-wrap {
|
||||||
|
overflow-x: auto;
|
||||||
|
overflow-y: hidden;
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
|
padding-bottom: 8px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@media (max-width: 1024px) {
|
@media (max-width: 1024px) {
|
||||||
|
.welcome-page {
|
||||||
|
align-items: flex-start;
|
||||||
|
}
|
||||||
|
|
||||||
.welcome-container {
|
.welcome-container {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 40px;
|
align-items: stretch;
|
||||||
padding: 30px;
|
gap: 32px;
|
||||||
|
padding: 28px 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content-left {
|
.content-left {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 600px;
|
max-width: 640px;
|
||||||
|
flex: none;
|
||||||
|
margin-inline: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.flowchart-right {
|
.flowchart-wrap {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: auto;
|
max-width: 840px;
|
||||||
min-height: 500px;
|
margin-inline: auto;
|
||||||
overflow-x: auto;
|
flex: none;
|
||||||
overflow-y: hidden;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
.welcome-container {
|
.welcome-container {
|
||||||
padding: 24px;
|
padding: 20px 16px 28px;
|
||||||
}
|
gap: 24px;
|
||||||
|
|
||||||
.content-left h1 {
|
|
||||||
font-size: 28px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.subtitle {
|
|
||||||
font-size: 18px;
|
|
||||||
margin-bottom: 30px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.feature-item {
|
.feature-item {
|
||||||
margin-bottom: 22px;
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.feature-item b {
|
||||||
|
font-size: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.feature-item p {
|
||||||
|
font-size: 13px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-group {
|
.btn-group {
|
||||||
@@ -548,46 +581,77 @@ const goImportTask = () => {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bg-blur {
|
/* 窄屏:流程图改为纵向卡片列表,保留内容不隐藏 */
|
||||||
width: 200px;
|
.flowchart-wrap {
|
||||||
height: 200px;
|
overflow: visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
.flowchart-right {
|
.flowchart-right {
|
||||||
|
width: 100%;
|
||||||
|
height: auto;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.flowchart-right .group-label,
|
||||||
|
.flowchart-right .line,
|
||||||
|
.flowchart-right .badge {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.flowchart-right .card,
|
||||||
|
.flowchart-right .line,
|
||||||
|
.flowchart-right .badge {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.flowchart-right .card {
|
||||||
|
position: relative;
|
||||||
|
top: auto !important;
|
||||||
|
left: auto !important;
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 14px;
|
||||||
|
text-align: left;
|
||||||
|
padding: 16px 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.flowchart-right .card:hover {
|
||||||
|
transform: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.flowchart-right .card-icon {
|
||||||
|
margin: 0;
|
||||||
|
font-size: 28px;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.flowchart-right .card h4 {
|
||||||
|
margin-bottom: 2px;
|
||||||
|
font-size: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.flowchart-right .card p {
|
||||||
|
margin: 0;
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.flowchart-right .step-tag {
|
||||||
|
top: 10px;
|
||||||
|
right: 12px;
|
||||||
|
left: auto;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 480px) {
|
@media (max-width: 480px) {
|
||||||
.welcome-container {
|
.welcome-container {
|
||||||
padding: 16px;
|
padding: 16px 12px 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content-left h1 {
|
.content-left h1 {
|
||||||
font-size: 24px;
|
letter-spacing: -0.4px;
|
||||||
letter-spacing: -0.5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.subtitle {
|
|
||||||
font-size: 16px;
|
|
||||||
margin-bottom: 24px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.feature-item b {
|
|
||||||
font-size: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.feature-item p {
|
|
||||||
font-size: 13px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-group {
|
|
||||||
margin-top: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bg-blur {
|
|
||||||
width: 150px;
|
|
||||||
height: 150px;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -110,8 +110,9 @@ const gridOptions: VxeGridProps<any> = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
||||||
minWidth: 150,
|
minWidth: 280,
|
||||||
fixed: 'right' as const,
|
fixed: 'right' as const,
|
||||||
|
showOverflow: false,
|
||||||
slots: { default: 'action' },
|
slots: { default: 'action' },
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
@@ -438,12 +439,12 @@ onMounted(() => {
|
|||||||
|
|
||||||
<!-- 操作列 -->
|
<!-- 操作列 -->
|
||||||
<template #action="{ row }: { row: any }">
|
<template #action="{ row }: { row: any }">
|
||||||
<Space>
|
<Space size="small" :wrap="false">
|
||||||
<Button size="small" @click="handleAddChild(row)">
|
<Button type="link" size="small" @click="handleAddChild(row)">
|
||||||
<PlusCircleIcon class="h-3 w-3" />
|
<PlusCircleIcon class="h-3 w-3" />
|
||||||
增加下级
|
增加下级
|
||||||
</Button>
|
</Button>
|
||||||
<Button size="small" @click="handleEdit(row)">
|
<Button type="link" size="small" @click="handleEdit(row)">
|
||||||
<EditIcon class="h-3 w-3" />
|
<EditIcon class="h-3 w-3" />
|
||||||
编辑
|
编辑
|
||||||
</Button>
|
</Button>
|
||||||
@@ -451,7 +452,7 @@ onMounted(() => {
|
|||||||
title="确定要删除这个菜单吗?"
|
title="确定要删除这个菜单吗?"
|
||||||
@confirm="handleDelete(row)"
|
@confirm="handleDelete(row)"
|
||||||
>
|
>
|
||||||
<Button size="small" danger>
|
<Button type="link" size="small" danger>
|
||||||
<TrashIcon class="h-3 w-3" />
|
<TrashIcon class="h-3 w-3" />
|
||||||
删除
|
删除
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
Reference in New Issue
Block a user