<template>
  <div class="update">
    <h3>更新统计</h3>
    <div class="information">
      <u-subsection :list="list" :current="current"></u-subsection>

      <div class="card_list">
        <div class="card">
          <div class="card_name">新增居民档案</div>
          <div class="card_num">234</div>
        </div>
        <div class="card">
          <div class="card_name">居民档案更新</div>
          <div class="card_num">234</div>
        </div>
        <div class="card">
          <div class="card_name">新增网格员</div>
          <div class="card_num">234</div>
        </div>
        <div class="card">
          <div class="card_name">减少网格员</div>
          <div class="card_num">234</div>
        </div>
        <div class="card">
          <div class="card_name">新增积分事件</div>
          <div class="card_num">234</div>
        </div>
        <div class="card">
          <div class="card_name">新增积分</div>
          <div class="card_num">234</div>
        </div>
        <div class="card">
          <div class="card_name">新增走访记录</div>
          <div class="card_num">234</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "update",
  data() {
    return {
      list: [
        {
          name: '本日'
        }, 
        {
          name: '本周'
        }, 
        {
          name: '本月'
        },
        {
          name: '本年'
        }
      ],
      current: 0,
    }
  },
  created() {
    // this.getData()
  },
  mounted() {},
  methods: {
    getData() {
      // this.
    }
  },
}
</script>

<style lang="scss" scoped>
.update {
  padding: 0 30px;
  box-sizing: border-box;
  h3 {
    margin: 32px 0 24px 0;
  }
  .information {
    width: 100%;
    background: #FFFFFF;
    border-radius: 16px;
    padding: 32px;
    box-sizing: border-box;

    .card_list {
      width: 100%;
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      .card {
        width: 50%;
        height: 160px;
        text-align: center;
        .card_name {
          margin-top: 32px;
          color: #666666;
        }
        .card_num {
          font-size: 36px;
          color: #000000;
          font-weight: 600;
          margin-top: 12px;
        }
      }
    }
  }
}
</style>