<template>
  <div class="construct-container">
    <div class="construct-left">
      <div class="tag-image">
        <img src="../assets/images/建设.png" />
      </div>
      <div class="construct-left-map">
        <Map />
      </div>
    </div>
    <div class="construct-right">
      <div>
        <div class="info-title">项目概况</div>
        <div>
          <CommonTotal :numberList="projectList" />
        </div>
      </div>
      <div>
        <div class="info-title">投资完成情况</div>
        <div>
          <CommonTotal :numberList="investmentList" />
        </div>
      </div>
      <div>
        <div class="info-title">投资完成情况</div>
        <div class="progress">
          <div><CircleProgress /></div>
          <div class="investment-progress">
            <span>19.72/58.42亿元</span>
            <div class="progress-image"></div>
          </div>
        </div>
      </div>
      <div>
        <div class="info-title">投资回收完成情况</div>
        <div>
          <CommonTotal :numberList="recycleList" />
        </div>
      </div>
    </div>
  </div>
</template>

<script setup>
import Map from "./Map.vue";
import CommonTotal from "./CommonTotal.vue";
import { reactive, ref, onMounted, onUnmounted } from "vue";
import CircleProgress from "./CircleProgress.vue";
const projectList = reactive([
  { title: "总个数（个）", value: "59" },
  { title: "总投资（亿元）", value: "2733.35" },
  { title: "总规模（公里）", value: "5116.72" },
]);
const investmentList = reactive([
  { title: "10月完成投资（亿元）", value: "0" },
  { title: "2025年完成投资（亿元）", value: "19.725" },
  { title: "累计完成投资（亿元）", value: "807.56" },
]);
// recycleList
const recycleList = reactive([
  { title: "10月完成投资（亿元）", value: "0" },
  { title: "2025年完成投资（亿元）", value: "2.98" },
  { title: "完成率", value: "50.2%" },
]);
</script>

<style scoped lang="less">
.construct-container {
  display: flex;
  .construct-left {
    // width: 65%;
    flex: 1;
    height: 100%;
    .tag-image {
      img {
        .vw(width, 85);
      }
    }
    .construct-left-map {
      .vh(height, 700);
      .vh(padding-top, 4);
    }
  }
  .construct-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    .info-title {
      .vw(width, 180);
      .vh(height, 30);
      .vh(line-height, 30);
      .vw(margin-left,10);
      .font(14);
      .vw(padding-left,23);
      text-align: left;
      color: #fff;
      font-family: YouSheBiaoTiYuan;
      background-image: url("../assets/images/tag.png");
      background-repeat: no-repeat;
      background-size: cover;
      background-position: center;
      font-weight: 700;
      letter-spacing: 3px;
      background-size: 100% 100%;
    }
    .progress {
      display: flex;
      align-items: center;
      .vw(margin-left, 10);
      .investment-progress {
        display: flex;
        flex-direction: column;
        align-items: end;
        span {
          .vh(margin-bottom,-20);
        }
        .progress-image {
          justify-content: center;
          align-items: center;
          .vw(width,520);
          .vh(height,85);
          background-image: url("../assets/images/箭头.png");
          background-repeat: no-repeat;
          background-size: contain;
          background-position: center;
          background-size: 100% 100%;
        }
      }
    }
  }
}
</style>
