<template>
  <view class="content">
    <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>
    <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 {
  height: calc(100vh - 100rpx); // 确保容器有明确高度
  // background-color: skyblue;
  overflow: hidden;
  // 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;
        }
      }
    }
  }
}
</style>
