用Vue写一个后台管理系统首页
时间: 2024-01-15 15:19:42 浏览: 132
好的,我可以给您提供一个简单的 Vue 后台管理系统首页的代码示例,如下所示:
```html
<template>
<div>
<h1>后台管理系统首页</h1>
<div class="overview">
<div class="card">
<h2>用户总数</h2>
<p>{{ userCount }}</p>
</div>
<div class="card">
<h2>订单总数</h2>
<p>{{ orderCount }}</p>
</div>
<div class="card">
<h2>商品总数</h2>
<p>{{ productCount }}</p>
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
userCount: 100,
orderCount: 50,
productCount: 200
}
}
}
</script>
<style>
.overview {
display: flex;
justify-content: space-between;
}
.card {
width: 30%;
padding: 20px;
background-color: #fff;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
border-radius: 5px;
text-align: center;
}
.card h2 {
font-size: 18px;
font-weight: bold;
margin-bottom: 10px;
}
.card p {
font-size: 24px;
font-weight: bold;
color: #333;
}
</style>
```
这是一个简单的后台管理系统首页,包含三个卡片,分别展示用户总数、订单总数和商品总数。您可以根据实际需求进行修改。
阅读全文
相关推荐














