<template>
  <div class="containerBox">
    <div class="boxItem" v-for=" item in testList">
      <p>
        <span class="Number">{{ item.number.toLocaleString() }}</span>{{ item.unit }}
      </p>
      <p class="title">{{ item.title }}</p>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      testList: [
        {
          number: 137230,
          unit: '人',
          title: '使用总人数'
        },
        {
          number: 6998,
          unit: '人',
          title: '昨日活跃人数'
        },
        {
          number: 6998,
          unit: '次',
          title: '今日访问次数'
        },
        {
          number: 998232,
          unit: '次',
          title: '总访问次数'
        },
        {
          number: 2998,
          unit: '户',
          title: '入住商户总数'
        },
      ]
    }
  },
  props: {
    list: {
      type: Array,
      default: [],
    },
  },
  mounted() {
  },
  methods: {},
  beforeDestroy() {
  },
}
</script>
<style lang="less" scoped>
.containerBox {
  display: flex;
  width: 880px;
  .boxItem {
    width: 20%;
    height: 74px;
    background-image: url('~@/assets/img/PanelItem.png');
    background-size: contain;
    background-repeat: no-repeat;
    flex-basis: 20%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px;

    .Number {
      background: linear-gradient(0deg, rgba(255, 220, 81, 1) 0%, rgba(255, 255, 255, 1) 100%);
      background-clip: text;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      font-weight: bold;
      font-size: 24px;
      line-height: 32px;
    }

    .title {
      font-size: 16px;
      font-weight: bold;
    }
  }
}
</style>
