<template>
  <div class="crop-area">
    <Model title="土壤平均肥力">
      <div class="content">
        <div style="display: flex; margin-left: 1%; width: 49%; margin-top: 20px" 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 },
  data() {
    return {
      list: [
        {
          name: "碱解氮(mg/kg)",
          value: "125",
          img: img1,
        },
        {
          name: "有效磷(mg/kg)",
          value: "5.8",
          img: img2,
        },
        {
          name: "速效钾(mg/kg)",
          value: "148",
          img: img3,
        },
        {
          name: "有机质(g/kg)",
          value: "29.43",
          img: img4,
        },
        {
          name: "PH值",
          value: "6.1",
          img: img5,
        },
        {
          name: "土壤性质",
          value: "黏土土壤",
          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: 16px;
    text-align: left;
  }
  .number {
    color: #02feff;
    font-size: 18px;
    text-shadow: 0px 0px 2px #00a7ff;
    text-align: left;
  }
}
@font-face {
  font-family: zcool;
  src: url("@/styles/fonts/zcoo.TTF");
}
</style>
