InspectionCleaning/pages/adminHome/index.vue

88 lines
2.1 KiB
Vue
Raw Normal View History

2025-04-15 10:07:11 +08:00
<template>
<view class="content">
2025-04-15 11:04:10 +08:00
<view class="bg-box">
<view style="height: 150rpx"></view>
<view class="tip">欢迎使用,张三</view>
<view class="desc">欢迎使用巡检管理端</view>
<view class="card">
<view class="card-item">
<view class="item-title">区域数量 </view>
<view class="item-totel">10 </view>
</view>
<view class="card-item">
<view class="item-title">子区域数量 </view>
<view class="item-totel">20 </view>
</view>
<view class="card-item">
<view class="item-title">已绑定子区域数 </view>
<view class="item-totel">30 </view>
</view>
<view class="card-item">
<view class="item-title">未绑定子区域数 </view>
<view class="item-totel">40 </view>
</view>
</view>
</view>
2025-04-15 10:07:11 +08:00
<u-tabbar :list="vuex_tabbar"></u-tabbar>
</view>
</template>
<script>
import { loginApi } from "@/api/apiList";
export default {
data() {
return {
phone: "13800451500",
pwd: "123456",
};
},
mounted() {
uni.hideLoading(); // 关闭 Loading
},
onLoad() {},
methods: {},
};
</script>
<style lang="scss" scoped>
.content {
2025-04-15 11:04:10 +08:00
height: calc(100vh - 100rpx); // 确保容器有明确高度
2025-04-15 10:07:11 +08:00
// background-color: skyblue;
overflow: hidden;
2025-04-15 11:04:10 +08:00
// padding-bottom: 100rpx;
.bg-box {
background-color: #528dfe;
height: 800rpx;
.tip {
padding-left: 30rpx;
color: white;
font-size: 40rpx;
}
.desc {
margin-top: 20rpx;
padding-left: 30rpx;
color: white;
}
.card {
border: 1px solid red;
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-template-rows: repeat(2, 1fr);
gap: 30rpx;
padding: 50rpx;
.card-item {
border: 1px solid blue;
border-radius: 20rpx;
background-color: #e8efff;
height: 300rpx;
padding: 30rpx;
.item-title {
font-size: 30rpx;
}
.item-totel {
font-size: 50rpx;
}
}
}
}
2025-04-15 10:07:11 +08:00
}
</style>