DashboardHome.vue
5.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
<template>
<div class="dashboard-home soft-page-stack">
<section class="hero-card">
<div class="hero-copy">
<div class="hero-pill">运营总览</div>
<h2>欢迎回到地利外卖运营工作台</h2>
<p>首页保留总览和快捷入口,业务菜单页只保留导航与内容区域,减少顶部公共模块对操作空间的挤压。</p>
<div class="hero-grid">
<div class="hero-metric">
<span>核心范围</span>
<strong>租户 / 骑手 / 订单</strong>
</div>
<div class="hero-metric">
<span>当前主题</span>
<strong>轻柔紫调 / 紧凑运营风格</strong>
</div>
</div>
</div>
<div class="hero-visual">
<div class="orb orb-a"></div>
<div class="orb orb-b"></div>
<img :src="heroImage" alt="dashboard illustration" />
</div>
</section>
<section class="content-grid">
<a-card :bordered="false" class="soft-section-card">
<div class="soft-section-header">
<div class="soft-section-heading">
<h3 class="soft-section-title">快捷入口</h3>
<p class="soft-section-subtitle">常用运营菜单集中放在首页,减少跳转层级。</p>
</div>
</div>
<div class="quick-links">
<button v-for="item in quickLinks" :key="item.path" class="quick-link" type="button" @click="go(item.path)">
<strong>{{ item.title }}</strong>
<span>{{ item.desc }}</span>
</button>
</div>
</a-card>
<a-card :bordered="false" class="soft-section-card">
<div class="soft-section-header">
<div class="soft-section-heading">
<h3 class="soft-section-title">界面说明</h3>
<p class="soft-section-subtitle">这一版样式调整重点放在密度、统一性和中文后台习惯。</p>
</div>
</div>
<ul class="soft-notes">
<li>首页保留大视觉和信息卡片,适合做总览和快捷入口。</li>
<li>其他菜单页只保留紧凑头部和内容区,避免公共模块挤压表格空间。</li>
<li>整体主题继续沿用柔紫渐变、软阴影和圆角卡片。</li>
</ul>
</a-card>
</section>
</div>
</template>
<script setup lang="ts">
import { useRouter } from 'vue-router'
import heroImage from '@/assets/hero.png'
const router = useRouter()
const quickLinks = [
{ path: '/city', title: '租户管理', desc: '配置配送费、骑手等级与租户信息' },
{ path: '/rider', title: '骑手管理', desc: '查看骑手、设置等级和账号状态' },
{ path: '/order', title: '订单列表', desc: '集中处理配送中的订单流转' },
{ path: '/substation', title: '分站管理', desc: '维护租户站点账号和权限' },
]
function go(path: string) {
router.push(path)
}
</script>
<style scoped>
.dashboard-home {
display: grid;
gap: 16px;
}
.hero-card {
display: grid;
grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.9fr);
gap: 14px;
border-radius: 24px;
padding: 20px;
background: var(--panel-tint);
border: 1px solid var(--line);
box-shadow: var(--shadow-xl);
}
.hero-pill {
display: inline-flex;
padding: 6px 12px;
border-radius: 999px;
background: var(--panel-strong);
color: #6f5fe2;
font-size: 12px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.08em;
}
.hero-copy h2 {
margin: 12px 0 8px;
font-size: 24px;
line-height: 1.15;
font-family: 'Outfit', sans-serif;
color: var(--text-dark);
}
.hero-copy p {
margin: 0;
font-size: 13px;
line-height: 1.7;
}
.hero-copy p,
.hero-metric span,
.quick-link span,
.soft-notes {
color: var(--text-soft);
}
.hero-grid {
display: flex;
gap: 12px;
flex-wrap: wrap;
margin-top: 18px;
}
.hero-metric {
min-width: 190px;
border-radius: 18px;
background: var(--panel-strong);
padding: 11px 13px;
}
.hero-metric span {
display: block;
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.08em;
margin-bottom: 6px;
}
.hero-metric strong,
.quick-link strong {
color: var(--text-dark);
font-family: 'Outfit', sans-serif;
}
.hero-visual {
position: relative;
display: flex;
align-items: flex-end;
justify-content: center;
min-height: 220px;
}
.hero-visual img {
position: relative;
z-index: 2;
width: min(100%, 320px);
filter: drop-shadow(0 24px 36px rgba(135, 119, 212, 0.24));
}
.orb {
position: absolute;
border-radius: 999px;
}
.orb-a {
width: 220px;
height: 220px;
background: radial-gradient(circle, rgba(198, 185, 255, 0.48) 0%, transparent 70%);
top: 8px;
right: 50px;
}
.orb-b {
width: 100px;
height: 100px;
background: radial-gradient(circle, rgba(255, 217, 136, 0.38) 0%, transparent 70%);
right: 24px;
top: 40px;
}
.content-grid {
display: grid;
grid-template-columns: 1.2fr 0.8fr;
gap: 14px;
}
.quick-links {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
}
.quick-link {
text-align: left;
border: 1px solid var(--line);
background: var(--panel);
border-radius: 18px;
padding: 14px;
cursor: pointer;
}
.quick-link strong {
display: block;
margin-bottom: 4px;
font-size: 14px;
}
.quick-link span {
font-size: 12px;
line-height: 1.6;
}
.soft-notes {
margin: 0;
padding-left: 18px;
font-size: 13px;
line-height: 1.7;
}
.soft-notes li + li {
margin-top: 10px;
}
@media (max-width: 980px) {
.hero-card,
.content-grid,
.quick-links {
grid-template-columns: 1fr;
}
.hero-copy h2 {
font-size: 24px;
}
}
</style>