<template>
  <div class='td-container'>
    <h2>
      武汉小学乐团
      <div class="term">第一学期</div>
      <div class="term active">第二学期</div>
    </h2>
    <div class="td-core">
      <p class='msg'> <img src="@/assets/images/base/clock.png"
             alt=""> 报名中</p>
      <!-- navMenu -->
      <el-tabs v-model="activeName"
               type="card"
               @tab-click="handleClick">
        <el-tab-pane label="基本信息"
                     name="1">
        </el-tab-pane>
        <el-tab-pane label="老师列表"
                     name="2">
          <teacherList />
        </el-tab-pane>
        <el-tab-pane label="学员列表"
                     name="3">
          <studentList />
        </el-tab-pane>
        <el-tab-pane label="班级详情"
                     name="4">
          <classList />
        </el-tab-pane>
        <el-tab-pane label="课表详情"
                     name="5">
          <courseList />
        </el-tab-pane>
        <el-tab-pane label="课程课酬"
                     name="6">
          <salaryList />
        </el-tab-pane>
        <el-tab-pane label="课酬调整"
                     name="7">
        </el-tab-pane>
      </el-tabs>
    </div>
  </div>
</template>
<script>
import studentList from '@/views/teamDetail/components/studentList'
import teacherList from '@/views/teamDetail/components/teacherList'
import courseList from '@/views/teamDetail/components/courseList'
import classList from '@/views/teamDetail/components/classList'
import salaryList from '@/views/teamDetail/components/salaryList'
export default {
  data () {
    return {
      activeName: '3',
    }
  },
  methods: {
    handleClick (val) {
      this.activeIndex = val;
    }
  },
  components: {
    studentList,
    teacherList,
    courseList,
    classList,
    salaryList
  }
}
</script>
<style lang="scss" scoped>
.td-container {
  box-sizing: border-box;
  background-color: #fff;
  padding: 18px 95px 55px 60px;
  h2 {
    height: 48px;
    line-height: 48px;
    position: relative;
    padding-left: 30px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
  }
  .td-core {
    background-color: #fff;
    min-height: calc(100vh - 160px);
    padding: 0 40px;
    position: relative;
    .msg {
      text-align: right;
      color: #f97215;
      font-size: 32px;
      font-weight: bold;
      position: absolute;
      right: 40px;
      top: -33px;
      img {
        width: 36px;
        height: 36px;
        position: relative;
        top: 5px;
        margin-right: 8px;
      }
    }
  }
  .term {
    height: 32px;
    line-height: 32px;
    border-radius: 24px;
    width: 100px;
    color: #14928a;
    border: 1px solid rgba(20, 146, 138, 1);
    font-size: 16px;
    text-align: center;
    margin-right: 12px;
    &:nth-child(1) {
      margin-left: 47px;
    }
  }
  .term.active {
    color: #fff;
    background-color: #14928a;
  }
}
</style>
<style lang='scss'>
.el-tabs__item.is-active {
  color: #14928a;
  font-size: 16px;
  font-weight: 600;
}
.el-tabs__item:hover {
  color: #14928a;
  font-size: 16px;
  font-weight: 600;
}

.headWrap {
  padding: 40px 0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  .left {
    width: 1000px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    .headItem {
      width: 364px;
      height: 30px;
      color: #444;
      border-right: 1px solid #979797;
      p {
        font-size: 14px;
        line-height: 30px;
        span {
          font-size: 16px;
          line-height: 30px;
        }
      }
      &:nth-child(1) {
        width: 256px;
      }
      &:nth-child(2n) {
        text-align: center;
      }
      &:nth-child(3n) {
        border-right: 1px solid #fff;
        text-align: center;
      }
      &:nth-child(4n) {
        text-align: left !important;
        width: 256px;
      }
    }
  }
}
</style>