<template>
  <div class="body">
    <vTitle>各楼宇人干数统计</vTitle>
    <ul class="con">
      <li v-for="(item, i) in data" :key="i">
        <span :style="{ color: item.color }">{{ item.num }}</span>
        <img :src="require(`@/assets/images/gaikuang/${item.img}`)" alt="" />
        <span>{{ item.name }}</span>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  components: {},
  data() {
    return {
      data: [
        {
          name: "综合大楼",
          num: "376,23",
          img: "1.png",
          color: "#0ad5ff",
        },
        {
          name: "学术交流中心",
          num: "276,23",
          img: "2.png",
          color: "#66B0C9",
        },
        {
          name: "公寓楼",
          num: "453",
          img: "3.png",
          color: "#E0B822",
        },
        {
          name: "综合服务中心",
          num: "376,23",
          img: "1.png",
          color: "#0ad5ff",
        },
        {
          name: "科研楼",
          num: "276,23",
          img: "2.png",
          color: "#66B0C9",
        },
        {
          name: "综合大楼",
          num: "376,23",
          img: "3.png",
          color: "#E0B822",
        },
      ],
    };
  },
  mounted() {},
};
</script>

<style lang="less" scoped>
.con {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  li {
    width: 30%;
    margin: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    > span {
      font-size: 16px;
      &:first-of-type {
        font-size: 24px;
      }
    }
    > img {
      width: 90%;
      margin: 10px 0;
    }
  }
}
</style>
