<template>
  <div class="leave-common-footer">
    <div class="leave-common-footer-content">
      <div class="leave-common-title">
        {{ list.title }}
      </div>
      <div class="leave-common-footer-list">
        <div
          v-for="item in list.list"
          :key="item.title"
          class="leave-common-footer-item"
          :class="{ setStyle: item.title === '人工' }"
        >
          <div class="leave-common-footer-item-icon">
            <span class="j-icon" :class="item.icon" />
          </div>
          <div class="leave-common-footer-item-title">
            <span class="text">{{ item.title }}-</span>{{ item.subtitle }}
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import dataList from '@/components/common/index.js'

export default {
  name: 'LeaveCommonFooter',
  data() {
    return {
      list: dataList
    }
  }
}
</script>

<style lang="scss" scoped>
.leave-common-footer {
  background: url(@/assets/images/BG.png) no-repeat;
  background-size: cover;
  .leave-common-title {
    text-align: center;
    color: #2ABED1;
    font-size: 16px;
  }
  .leave-common-footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0 16px;
  }
  .leave-common-footer-list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 16px;
    width: 424px;
    .leave-common-footer-item {
      display: flex;
      justify-content: center;
      margin-bottom: 16px;
      .leave-common-footer-item-icon {
        img {
          width: 16px;
          height: 16px;
        }
      }
      .leave-common-footer-item-title {
        margin-left: 8px;
        font-size: 14px;
        color: #1d1d1d;
        .text {
          font-weight: bold;
        }
      }
      &.setStyle {
        margin-right: 2px;
      }
    }
  }
}
</style>
