<template>
  <div class="dashboard-editor-container">
    <div style="height:10%"></div>
    <el-row class="tc">
      <div style="font-size:50px">欢迎登录金淮花提货管理系统</div>
      <div class="mt20 mb10 count">
        已成功验证人数：<span>{{ count }}</span>
      </div>
    </el-row>
  </div>
</template>

<script>
import { getSmsCount } from '@/api/index';
export default {
  name: 'home',
  data() {
    return {
      count: 0
    };
  },
  methods: {},
  created() {
    getSmsCount().then(({ data }) => {
      this.count = data;
    });
  }
};
</script>

<style lang="scss" scoped>
.dashboard-editor-container {
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  padding: 32px;
  background-color: rgb(240, 242, 245);
  position: absolute;
  box-sizing: border-box;

  background-image: url(../assets/image/index_welcome.png);
  background-size: 300px;
  background-repeat: no-repeat;
  background-position: center;

  .chart-wrapper {
    background: #fff;
    padding: 16px 16px 0;
    margin-bottom: 32px;
  }
}
.tc {
  text-align: center;
  .count {
    border-radius: 6px;
    height: 108px;
    line-height: 108px;
    background-color: rgba(255, 255, 255, 0.4);
    font-size: 20px;
    font-weight: 700;
    box-shadow: rgba(0, 0, 0, 0.05) 4px 4px 40px 0px;
    border-color: rgba(0, 0, 0, 0.05);
    span {
      vertical-align: top;
      font-size: 40px;
      color: #41b584;
    }
  }
}

@media (max-width: 1024px) {
  .chart-wrapper {
    padding: 8px;
  }
}
</style>
