<template>
  <el-carousel
    v-if="title != '新街镇'"
    height="270"
    direction="vertical"
    :interval="5000"
    indicator-position="none"
    :autoplay="true"
  >
    <el-carousel-item v-for="item in 2" :key="item">
      <Model title="气象数据" v-if="item == 1">
        <div class="box">
          <div>
            <div class="contentBox">
              <img src="@/assets/image/rqw.png" />
              <div class="contentBoxWeZi">
                <div>日平均气温</div>
                <span class="contentBoxWeZiNum" style="">12.4</span> 度
              </div>
            </div>
            <div class="contentBox">
              <img src="@/assets/image/kqsd.png" />
              <div class="contentBoxWeZi">
                <div>日平均湿度</div>
                <span class="contentBoxWeZiNum" style="">70.95</span> %
              </div>
            </div>
          </div>
          <div>
            <div class="contentBox">
              <img src="@/assets/image/rqw.png" />
              <div class="contentBoxWeZi">
                <div>月平均气温</div>
                <span class="contentBoxWeZiNum" style="">13.5</span> 度
              </div>
            </div>
            <div class="contentBox">
              <img src="@/assets/image/kqsd.png" />
              <div class="contentBoxWeZi">
                <div>月平均湿度</div>
                <span class="contentBoxWeZiNum" style="">72.05</span> %
              </div>
            </div>
          </div>
        </div>
      </Model>
      <Model title="土壤环境平均数据" v-if="item == 2">
        <div class="box">
          <div>
            <div class="contentBox">
              <img src="@/assets/image/trwd.png" />
              <div class="contentBoxWeZi">
                <div>土壤温度</div>
                <span class="contentBoxWeZiNum" style="">18.8</span> 度
              </div>
            </div>
            <div class="contentBox">
              <img src="@/assets/image/trhsl.png" />
              <div class="contentBoxWeZi">
                <div>土壤含水量</div>
                <span class="contentBoxWeZiNum" style="">15.3</span> %
              </div>
            </div>
          </div>
          <div>
            <div class="contentBox">
              <img src="@/assets/image/trpH.png" />
              <div class="contentBoxWeZi">
                <div>土壤PH</div>
                <span class="contentBoxWeZiNum" style="">6.5</span>
              </div>
            </div>
            <div class="contentBox">
              <img src="@/assets/image/tryf.png" />
              <div class="contentBoxWeZi">
                <div>土壤盐份</div>
                <span class="contentBoxWeZiNum" style="">8us/cm</span>
              </div>
            </div>
          </div>
        </div>
      </Model>
    </el-carousel-item>
  </el-carousel>

  <el-carousel
    v-else
    height="270"
    direction="vertical"
    :interval="5000"
    indicator-position="none"
    :autoplay="false"
  >
    <el-carousel-item>
      <Model title="土壤环境平均数据">
        <div class="box">
          <div>
            <div class="contentBox">
              <img src="@/assets/image/trwd.png" />
              <div class="contentBoxWeZi">
                <div>土壤温度</div>
                <span class="contentBoxWeZiNum" style="">18.8</span> 度
              </div>
            </div>
            <div class="contentBox">
              <img src="@/assets/image/trhsl.png" />
              <div class="contentBoxWeZi">
                <div>土壤含水量</div>
                <span class="contentBoxWeZiNum" style="">15.3</span> %
              </div>
            </div>
          </div>
          <div>
            <div class="contentBox">
              <img src="@/assets/image/trpH.png" />
              <div class="contentBoxWeZi">
                <div>土壤PH</div>
                <span class="contentBoxWeZiNum" style="">6.5</span>
              </div>
            </div>
            <div class="contentBox">
              <img src="@/assets/image/tryf.png" />
              <div class="contentBoxWeZi">
                <div>土壤盐份</div>
                <span class="contentBoxWeZiNum" style="">8us/cm</span>
              </div>
            </div>
          </div>
        </div>
      </Model>
    </el-carousel-item>
  </el-carousel>
</template>

<script>
import Model from "../model.vue";

export default {
  name: "leftBottom",
  props: {
    title: {
      type: String,
      default: "随县",
    },
  },
  data() {
    return {};
  },

  components: { Model },
  computed: {},

  mounted() {},

  methods: {},
};
</script>
<style lang="less" scoped>
.box {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.contentBox {
  display: flex;
  align-items: center;
  margin-top: 30px;
}

.contentBoxWeZi {
  color: #d4edfd;
  font-size: 20px;
  text-align: left;
  margin-left: 15px;
}
.contentBoxWeZiNum {
  font-size: 16px;
  color: #02feff;
  text-shadow: 0px 0px 2px #00a7ff;
}
</style>
