<template>
  <div class="main-container flex jc-center">
    <!-- 内容区域 -->
    <div class="content-container">
      <right1 class="list-section"></right1>
      <left2 class="chart-section"></left2>
      <right2 class="chart-section"></right2>
      <right3 class="chart-section"></right3>
    </div>
  </div>
</template>

<script>
import left2 from "./components/left2.vue";
import right1 from "./components/right1.vue";
import right2 from "./components/right2.vue";
import right3 from "./components/right3.vue";

export default {
  name: 'RequireIndex',
  components: {
    left2,
    right1,
    right2,
    right3
  },
  data() {
    return {
    };
  },
  mounted() {
    this.$store.commit('CHANGE_SEARCH',false);
  },
  beforeDestroy(){
    this.$store.commit('CHANGE_SEARCH',true);
  },
};
</script>

<style lang="scss" scoped>
.main-container {
  width: 100%;
  min-height: 100vh;
  background: rgb(6, 15, 48);
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  padding-bottom: 3.5rem;
  padding-top: 1.05rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;

  .data-cards {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem;
    
    .data-card {
      width: 32%;
      
      .card-border {
        width: 100%;
        height: 2.2rem;
        background: rgba(3, 54, 132, 0.8);
      }

      .card-content {
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0.2rem;

        .num {
          font-size: 0.6rem;
          color: #02dff6;
          font-weight: bold;
          margin-bottom: 0.2rem;
        }

        .label {
          font-size: 0.24rem;
          color: #ffffff;
          text-align: center;
          line-height: 1.2;
        }
      }
    }
  }

  .content-container {
    padding: 0.3rem;

    .chart-section {
      height: 6rem;
    }

    .list-section {
      height: 8rem;
    }
  }
}

// 隐藏滚动条
::-webkit-scrollbar {
  display: none;
}
</style>