<template>
  <div class="body-container">
    <div class="largeScreenOnlineBox2">
      <div class="largeScreenOnlineCount">
        实时在线人数
      </div>
      <div class="largeScreenOnlineNum largeScreenOnlineNumFst">{{ realOnlineNum }}</div>
    </div>
    <div class="largeScreenOnlineBox2">
      <div class="largeScreenOnlineCount">
        当前统计在线人数
      </div>
      <div class="largeScreenOnlineNum largeScreenOnlineNumSec">{{ computeOnlineNum }}</div>
    </div>
  </div>
</template>

<script>

export default {
  name: 'onlineCount',
  data() {
    return {
      realOnlineNum: 0,
      computeOnlineNum: 0,
      largeScreenOnlineRefresh: null,
    };
  },
  created() {
  },
  beforeDestroy() {
    clearInterval(this.largeScreenOnlineRefresh);
  },
  methods: {
    showMessage(message, type) {
      this.$message({message, type});
    }
  }
};
</script>

<style scoped>
.largeScreenOnlineBox2 {
  height: 50%;
  position: relative;
}

.largeScreenOnlineCount {
  color: #ffffff;
  font-size: 1rem;
  padding-left: 2.5rem;
  padding-top: 1rem;
}

.largeScreenOnlineNum {
  background-image: url("../../assets/images/upBorder.png");
  background-size: 100% 100%;
  width: 90%;
  border-radius: 0.6rem;
  font-size: 3rem;
  margin-left: 5%;
  margin-top: 2%;
  height: 7rem;
  z-index: 1;
  text-align: center;
  padding-top: 1.5rem;
  position: relative;
  letter-spacing: 0.1rem;
}

.largeScreenOnlineNumFst {
  color: rgba(103, 239, 255, 1);
}

.largeScreenOnlineNumSec {
  color: rgba(101, 251, 181, 1);
}
</style>
