<template>
  <div class="map-layout">
    <div class="map-header">
      <!-- <div ><el-input /></div> -->
      <div class="map-header-center">
        <div class="map-header-center-title">融通地产危险源辨识系统</div>
        <div class="map-header-center-tip">
          Rongtong Real Estate Hazard Identification System
        </div>
      </div>
    </div>
    <div class="map-content">
      <div class="map-content-left"></div>
      <mapDetail v-if="$route.name == 'mapDetail'" />
      <mapIndex v-if="$route.name == 'mapIndex'" />
      <div class="map-content-right"></div>
    </div>

    <div class="map-footer"></div>
  </div>
</template>

<script>
import mapIndex from "./map-index.vue";
import mapDetail from "./map-detail.vue";
export default {
  name: "echarts",
  components: { mapIndex, mapDetail },
  data() {
    return {};
  },
  mounted() {},
  methods: {},
};
</script>

<style lang="scss" scoped>
.map-layout {
  width: 100%;
  height: 100%;
  background: #000;
  background: url("../../assets/map/bg.png") no-repeat;
  background-size: 100% 100%;

  .map-header {
    height: 83px;
    z-index: 10;
    color: #fff;
    padding: 5px 16px;
    background: url("../../assets/map/top.png") no-repeat;
    background-size: 100% 100%;
    box-shadow: border-box;
    &-center {
      text-align: center;
      &-title {
        text-shadow: 0px 0px 10px rgba(21, 203, 249, 1);
        font-weight: 700;
        font-size: 24px;
      }
      &-tip {
        font-family: "微软雅黑", sans-serif;
        font-size: 16px;
        color: rgba(215, 215, 215, 0.4);
      }
    }
  }
  .map-footer {
    background: url("../../assets/map/bottom.png") no-repeat;
    background-size: 100% 100%;
    height: 44px;
  }
  .map-content {
    width: 100%;
    height: calc(100% - 128px);
    position: relative;
    &-left::after,
    &-right::after {
      content: "";
      width: 44px;
      height: 84%;
      background: url("../../assets/map/hud-left.png") no-repeat;
      background-size: 100% 100%;
      position: absolute;
      left: 0;
      top: 50%;
      z-index: 10;
      transform: translateY(-52%);
    }
    &-right::after {
      background-image: url("../../assets/map/hud-right.png");
      position: absolute;
      right: 0;
      left: auto;
    }
  }
}
::-webkit-scrollbar {
  display: none;
}
</style>
