<template>
  <div class="crop-area">
    <Model :title="title">
      <div class="content">
        <div style="display: flex; margin-left: 1%; width: 48%; margin-top: 2%" v-for="v in list" :key="v.name">
          <img class="img" :src="v.img" alt="" />
          <div>
            <div class="titl-color">{{ v.name }}</div>
            <div class="number">{{ v.value }}</div>
          </div>
        </div>
      </div>
    </Model>
  </div>
</template>

<script>
import Model from "../model.vue";
import img1 from "@/assets/image/tkzz_ic2@2x.png";
import img2 from "@/assets/image/ggypagc_ic2@2x.png";
import img3 from "@/assets/image/tjdlgc_ic2@2x.png";
import img4 from "@/assets/image/qtgc_ic2@2x.png";
import img5 from "@/assets/image/tjdlgc_ic2@2x.png";
import img6 from "@/assets/image/qtgc_ic2@2x.png";

export default {
  name: "area",
  components: { Model },
  props: {
    title: "",
    list: [
      {
        name: "开工日期",
        value: "2023-10-20",
        img: img1,
      },
      {
        name: "田块整治工程",
        value: "1216亩",
        img: img2,
      },
      {
        name: "堰塘（坝）",
        value: "4.4万m2",
        img: img3,
      },
      {
        name: "输配水工程",
        value: "7619m",
        img: img4,
      },
      {
        name: "田间道路",
        value: "1.15万m",
        img: img5,
      },
      {
        name: "农田防护林",
        value: "2400株",
        img: img6,
      },
    ],
  },
  data() {
    return {
      list1: [
        {
          name: "开工日期",
          value: "2023-10-20",
          img: img1,
        },
        {
          name: "田块整治工程",
          value: "1216亩",
          img: img2,
        },
        {
          name: "堰塘（坝）",
          value: "4.4万m2",
          img: img3,
        },
        {
          name: "输配水工程",
          value: "7619m",
          img: img4,
        },
        {
          name: "田间道路",
          value: "1.15万m",
          img: img5,
        },
        {
          name: "农田防护林",
          value: "2400株",
          img: img6,
        },
      ],
    };
  },
};
</script>

<style lang="less" scoped>
.crop-area {
  margin-top: 10px;

  .content {
    display: flex;
    // justify-content: space-evenly;
    flex-wrap: wrap;
    height: 220px;
  }
  .img {
    width: 45px;
    height: 45px;
    margin-right: 5px;
  }
  .titl-color {
    color: #d4edfd;
    font-size: 14px;
    text-align: left;
  }
  .number {
    color: #02feff;
    font-size: 18px;
    text-shadow: 0px 0px 2px #00a7ff;
    text-align: left;
  }
  .number:nth-child(1),
  .number:nth-child(2) {
    font-size: 14px;
  }
}
@font-face {
  font-family: zcool;
  src: url("@/styles/fonts/zcoo.TTF");
}
</style>
