<template>
  <div style="text-align: center; width: 100%; height: 100%">
    欢迎使用{{ sysTitle }}...
  </div>
</template>

<script>
// import {home, performanceChange, performanceChecked} from "@/api/home/index";
import CountTo from 'vue-count-to'

export default {
  components: {
    CountTo
  },
  data() {
    return {
      sysTitle: '',
      videoCount: 0,
      marketingCount: 0,
      devopsCount: 0,
      productionCount: 0,
      projectCount: 0,
      dataCount: 0,
      productDemandCount: 0,
      projectWarningCount: 0,
      projectOverspendingCount: 0,//告警
      testCaseCount: 0,//用例
    }
  },
  created() {
    this.sysTitle = localStorage.getItem("sysTitle")
    // this.getCount();
  },
  methods: {
    // getCount() {
    //   home().then(response => {
    //     if (response.code === 200) {
    //       this.videoCount = response.videoCount;
    //       this.marketingCount = response.marketingCount;
    //       this.devopsCount = response.devopsCount;
    //       this.productionCount = response.productionCount;
    //       this.projectCount = response.projectCount;
    //       this.dataCount = response.dataCount;
    //       this.productDemandCount = response.productDemandCount;
    //       this.projectWarningCount = response.projectWarningCount;
    //       this.projectOverspendingCount = response.projectOverspendingCount;
    //       this.testCaseCount = response.testCaseCount;
    //     }
    //   });
    // }
  }
}
</script>

<style lang="scss" scoped>
.panel-group {
  margin-top: 18px;

  .card-panel-col {
    margin-bottom: 32px;
  }

  .card-panel {
    height: 108px;
    cursor: pointer;
    font-size: 12px;
    position: relative;
    overflow: hidden;
    color: #666;
    background: #fff;
    box-shadow: 4px 4px 40px rgba(0, 0, 0, .05);
    border-color: rgba(0, 0, 0, .05);

    &:hover {
      .card-panel-icon-wrapper {
        color: #fff;
      }

      .icon-education {
        background: #40c9c6;
      }

      .icon-message {
        background: #34bfa3;
      }

      .icon-question {
        background: #34bfa3;
      }

      .icon-server {
        background: #34bfa3;
      }

      .icon-tool {
        background: #34bfa3;
      }

      .icon-video-camera {
        background: #34bfa3
      }

      .icon-management {
        background: #34bfa3
      }
    }

    .icon-education {
      color: #40c9c6;
    }

    .icon-message {
      color: #36a3f7;
    }

    .icon-question {
      color: #34bfa3;
    }

    .icon-server {
      color: #34bfa3;
    }

    .icon-tool {
      color: #34bfa3;
    }

    .icon-video-camera {
      color: #34bfa3
    }

    .icon-management {
      color: #34bfa3
    }

    .card-panel-icon-wrapper {
      float: left;
      margin: 14px 0 0 14px;
      padding: 16px;
      transition: all 0.38s ease-out;
      border-radius: 6px;
    }

    .card-panel-icon {
      float: left;
      font-size: 48px;
    }

    .card-panel-description {
      float: right;
      font-weight: bold;
      margin: 26px;
      margin-left: 0px;

      .card-panel-text {
        line-height: 18px;
        color: rgba(0, 0, 0, 0.45);
        font-size: 16px;
        margin-bottom: 12px;
      }

      .card-panel-num {
        font-size: 20px;
      }
    }
  }
}

@media (max-width: 550px) {
  .card-panel-description {
    display: none;
  }

  .card-panel-icon-wrapper {
    float: none !important;
    width: 100%;
    height: 100%;
    margin: 0 !important;

    .svg-icon {
      display: block;
      margin: 14px auto !important;
      float: none !important;
    }
  }
}
</style>
