<template>
  <div class="count-container">
    <div class="count-item">
      <div class="count-title">布控总数</div>
      <div class="count-number"><Statis :count="dataform.bkzs" :len="7" /></div>
    </div>
    <div class="count-item">
      <div class="count-title">已处置数</div>
      <div class="count-number"><Statis :count="dataform.czs" :len="7" /></div>
    </div>
  </div>
</template>

<script setup>
import Statis from "@/components/statis.vue";
import { reactive } from "vue";
const dataform = reactive({
  bkzs: 287,
  czs: 123
});
</script>

<style scoped lang="scss">
.count-container {
  display: flex;
  padding: 10px 5px;
  background: rgba(0, 29, 75, 0.4);
  gap: 4px;
}

.count-item {
  flex: 1;
  display: flex;
  align-items: center;
  border-radius: 4px;
  padding: 6px;
  background: url("~@/assets/images/bg12.png") no-repeat center center;
  background-size: 100% 100%;
}

.count-title {
  color: #fff;
  font-size: 14px;
  text-align: center;
  margin-right: 4px;
  background: url("~@/assets/images/bg13.png") no-repeat center center;
  background-size: 100% 100%;
}

.count-number {
  font-family: "Digital-7", monospace;
  font-size: 32px;
  background: #1e3799;
  color: #00ffff;
  padding: 8px;
  border-radius: 4px;
  text-align: center;
  letter-spacing: 2px;
  width: 150px;
  height: 33px;
  background: url("~@/assets/images/statis.png") no-repeat center center;
  background-size: 100% 100%;
  padding: 0 10px;
  box-sizing: border-box;
}
</style>