<template>
  <div>
    <el-card class="top">
      <div class="box-card">
        <div class="item">
          <div class="title">当天活动（用户/视频）</div>
          <div class="number">230/340</div>
        </div>
        <div class="item">
          <div class="title">当天新增用户</div>
          <div class="number">230/340</div>
        </div>
        <div class="item">
          <div class="title">历史数据（用户/视频）</div>
          <div class="number">230/340</div>
        </div>
      </div>
    </el-card>
    <div class="bottom">
      <el-card class="left"></el-card>
      <el-card class="right">
        <div slot="header" class="clearfix">
          <span class="title">历史积分排行</span>
        </div>
        <el-table :data="tableData" style="width: 100%">
          <el-table-column prop="name" label="户号" width="180">
          </el-table-column>
          <el-table-column prop="score" label="积分" width="180">
          </el-table-column>
          <el-table-column prop="address" label="小区"> </el-table-column>
        </el-table>
      </el-card>
    </div>
  </div>
</template>
<script>
export default {
  name: "app",
  data() {
    return {
      tableData: [
        {
          name: "1幢311号",
          score: "222",
          address: "启文社区"
        },
        {
          name: "1幢311号",
          score: "222",
          address: "启文社区"
        },
        {
          name: "1幢311号",
          score: "222",
          address: "启文社区"
        }
      ]
    };
  },
  methods: {
    deleteRow(index, rows) {
      rows.splice(index, 1);
    }
  }
};
</script>
<style scoped>
.about {
  height: 100%;
}
.top {
  width: 100%;
}
.bottom {
  padding-top: 20px;
  display: flex;
  align-items: center;
}
.left {
  width: 60%;
  height: 400px;
}
.right {
  width: 37%;
  margin-left: 3%;
  height: 400px;
}
.box-card {
  width: 100%;
  display: flex;
  align-items: center;
}
.item {
  width: 300px;
  margin: 0 5%;
}
.title {
  text-align: left;
  margin: 10px 0;
  font-size: 16px;
  color: #666;
  font-weight: 550;
}
.number {
  font-size: 22px;
  font-weight: 550;
  line-height: 120px;
  background-color: rgb(248, 248, 248);
}
</style>
