98 lines
1.9 KiB
Plaintext
98 lines
1.9 KiB
Plaintext
<template>
|
|
<view class="home-page">
|
|
<view class="welcome-section">
|
|
<text class="welcome-title">欢迎使用 CRMEB 管理后台</text>
|
|
<text class="welcome-subtitle">Welcome to CRMEB Admin</text>
|
|
</view>
|
|
|
|
<view class="quick-stats">
|
|
<view class="stat-card">
|
|
<text class="stat-value">0</text>
|
|
<text class="stat-label">今日订单</text>
|
|
</view>
|
|
<view class="stat-card">
|
|
<text class="stat-value">0</text>
|
|
<text class="stat-label">今日销售额</text>
|
|
</view>
|
|
<view class="stat-card">
|
|
<text class="stat-value">0</text>
|
|
<text class="stat-label">新增用户</text>
|
|
</view>
|
|
<view class="stat-card">
|
|
<text class="stat-value">0</text>
|
|
<text class="stat-label">待处理订单</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script setup lang="uts">
|
|
/**
|
|
* 管理后台首页组件
|
|
* 在 AdminLayout 内部显示
|
|
*/
|
|
import { ref } from 'vue'
|
|
|
|
// 这里可以添加首页的数据和逻辑
|
|
</script>
|
|
|
|
<style scoped>
|
|
.home-page {
|
|
padding: 24px;
|
|
background-color: #f0f2f5;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.welcome-section {
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
padding: 48px 32px;
|
|
border-radius: 12px;
|
|
margin-bottom: 24px;
|
|
text-align: center;
|
|
}
|
|
|
|
.welcome-title {
|
|
display: block;
|
|
font-size: 32px;
|
|
font-weight: 600;
|
|
color: #ffffff;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.welcome-subtitle {
|
|
display: block;
|
|
font-size: 16px;
|
|
color: rgba(255, 255, 255, 0.9);
|
|
}
|
|
|
|
.quick-stats {
|
|
display: flex;
|
|
gap: 16px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.stat-card {
|
|
flex: 1;
|
|
min-width: 200px;
|
|
background-color: #ffffff;
|
|
padding: 24px;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
|
|
text-align: center;
|
|
}
|
|
|
|
.stat-value {
|
|
display: block;
|
|
font-size: 36px;
|
|
font-weight: 600;
|
|
color: #1890ff;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.stat-label {
|
|
display: block;
|
|
font-size: 14px;
|
|
color: #8c8c8c;
|
|
}
|
|
</style>
|