<template>
  <div class="crop-area">
    <Model title="2023年工程进展">
      <div class="content">
        <div style="display: flex; width: 48%; margin-left: 2%; margin-bottom: 30px" v-for="v in list" :key="v">
          <img class="img" :src="v.img" alt="" />
          <div class="num-bg">
            <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_ic@2x.png";
import img2 from "@/assets/image/ggyps_ic@2x.png";
import img3 from "@/assets/image/tjdlgc_ic@2x.png";
import img4 from "@/assets/image/fhybhgc_ic@2x.png";
import img5 from "@/assets/image/ntspdgc_ic@2x.png";
import img6 from "@/assets/image/qtgc_ic@2x.png";

export default {
  name: "area",
  components: { Model },
  props: {
    title: "",
  },
  data() {
    return {
      list: [
        {
          name: "田块整治",
          value: this.title == "新街镇" ? "50%" : "100%",
          img: img1,
        },
        {
          name: "灌溉排水工程",
          value: this.title == "新街镇" ? "20%" : "90%",
          img: img2,
        },
        {
          name: "田间道路工程",
          value: this.title == "新街镇" ? "20%" : "90%",
          img: img3,
        },
        {
          name: "防护保护工程",
          value: this.title == "新街镇" ? "20%" : "90%",
          img: img4,
        },
        {
          name: "农田配电工程",
          value: this.title == "新街镇" ? "20%" : "90%",
          img: img5,
        },
        {
          name: "其他工程",
          value: this.title == "新街镇" ? "20%" : "90%",
          img: img6,
        },
        {
          name: "地力提升工程",
          value: this.title == "新街镇" ? "20%" : "90%",
          img: img4,
        },
        {
          name: "科技推广工程",
          value: this.title == "新街镇" ? "20%" : "90%",
          img: img1,
        },
      ],
    };
  },
};
</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;
  }

  .titl-color {
    color: #fff;
    font-size: 14px;
  }

  .number {
    color: #02feff;
    font-size: 18px;
    text-shadow: 0px 0px 2px #00a7ff;
    font-family: "zcool";
  }

  .num-bg {
    width: 90%;
    height: 46px;
    text-align: left;
    background: linear-gradient(90deg, rgba(2, 254, 255, 0.47) 0%, rgba(2, 62, 112, 0) 100%);
    border-radius: 0px 0px 0px 0px;
    opacity: 0.7;
    padding-left: 10px;
  }
}

@font-face {
  font-family: zcool;
  src: url("@/styles/fonts/zcoo.TTF");
}
</style>
