<template >
  <div class="rescueStationStatistics">
    <div class="title">全市站点分布</div>
    <div class="content-warpper">
      <VueSeamlessScroll 
        :data="listData"
        :class-option="classOption"
        class="warpper"
      >
        <div class="content">
          <div class="item" v-for="item in listData">
            <div class="value">{{item.value}}</div>
            <div class="label">{{item.name}}</div>
          </div>
        </div>
      </VueSeamlessScroll>
    </div>
  </div>
</template>

<script>
import CountTo from 'vue-count-to'
import VueSeamlessScroll from 'vue-seamless-scroll'

export default {
  name: 'RescueStationStatistics',
  components: {CountTo, VueSeamlessScroll},
  data() {
    return {
      listData: [
        {
          name: '北碚区',
          value: 12
        },
        {
          name: '渝北区',
          value: 3
        },
        {
          name: '渝北区',
          value: 13
        },
        {
          name: '渝北区',
          value: 13
        },
        {
          name: '北碚区',
          value: 12
        },
        {
          name: '渝北区',
          value: 3
        },
        {
          name: '渝北区',
          value: 13
        },
        {
          name: '渝北区',
          value: 13
        },
      ],
      classOption: {
        direction: 2,
        singleWidth: 78,
      }
    }
  },
  methods: {}
}
</script>

<style scoped lang='less'>
.rescueStationStatistics {
  .title {
    color: #74CDE3;
    font-size: 14px;
    margin-bottom: 10px;
  }
  .content-warpper {
    background: url('@/assets/images/rss-bg.png') no-repeat;
    background-size: 100% 100%;
    width: 312px;
    height: 92px;
  }
  .warpper {
    margin: 0px 3px;
    width: 302px;
    height: 92px;
    overflow: hidden;
  }

  .content {
    height: 92px;
    display: flex;
    align-items: center;
    .item {
      width: 78px;
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      .value {
        font-size: 23px;
        color: #ffde24;
        font-family: Anton-Regular;
      }
      .label {
        font-size: 12px;
        color: #fff;
      }
    }
  }
}
</style>
