<template lang="html">
  <div class="awardPageVue">

    <div class="center">
      <effect class="effect" :home-data="homeData" :page-title="pageTitle" />

      <div class="content">
        <!-- 年度优秀员工 -->
        <excellent-employees-of-the-year v-if="homeData.page === 1" />
        <!-- 小组年度优秀员工 -->
        <excellent-employees-of-the-group-in-the-year v-if="homeData.page === 2" />
        <!-- 年度优秀负责人 -->
        <excellent-person-in-charge-of-the-year v-if="homeData.page === 3" />
        <!-- 年度优秀部门 -->
        <excellent-department-of-the-year v-if="homeData.page === 4" />
        <!-- 最佳新人奖 -->
        <best-new-artist v-if="homeData.page === 5" />
        <!-- 幸运奖 -->
        <lucky-prize v-if="homeData.page === 6" />
      </div>
    </div>

  </div>
</template>

<script>
import effect from './effect'
import luckyPrize from './prizePages/luckyPrize'
import excellentEmployeesOfTheYear from './prizePages/excellentEmployeesOfTheYear'
import excellentEmployeesOfTheGroupInTheYear from './prizePages/excellentEmployeesOfTheGroupInTheYear'
import excellentPersonInChargeOfTheYear from './prizePages/excellentPersonInChargeOfTheYear'
import bestNewArtist from './prizePages/bestNewArtist'
import excellentDepartmentOfTheYear from './prizePages/excellentDepartmentOfTheYear'

export default {
  components: {
    effect,
    luckyPrize,
    excellentEmployeesOfTheYear,
    excellentEmployeesOfTheGroupInTheYear,
    excellentPersonInChargeOfTheYear,
    bestNewArtist,
    excellentDepartmentOfTheYear
  },
  props: {
    homeData: {},
    pageTitle: {
      type: Array,
      default: () => []
    }
  }
}
</script>

<style lang="scss" scoped>
.awardPageVue{
  .center{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    .effect{
      position: absolute;
      top: 50%;
      margin-left: 150px;
    }
    .content{
      width: 1600px;
      height: 800px;
      padding-left: 300px;
      text-align: left;
    }
  }
}
</style>
