<template>
  <div>
    <banner-tab
      :data="bannerTabData"
      @changeTab="changeTab"
    ></banner-tab>
    <apply v-show="activeIndex == 0" :data="content"></apply>
    <support v-show="activeIndex == 1" :data="content"></support>
  </div>
</template>
<script>
import cAction from '@action'
import bannerTab from '@/components/news/tab/bannerTab.vue'
import apply from './components/apply.vue'
import support from './components/support.vue'
export default {
  components: {
    apply,
    bannerTab,
    support
  },
  data() {
    return {
      bannerTabData: {
        menu: ['申请路径', '学费与权益'],
        imgUrl: 'https://zws-imgs-pub.ezijing.com/static/public/d94d3b94c95674ebc6d1932b3322cb14.png'
      },
      activeIndex: 0,
      content: {
        module0: '',
        module1: '',
        module2: '',
        module3: '',
        module4: ''
      }
    }
  },
  mounted() {
    // this.getData()
  }, 
  methods: {
    changeTab(index) {
      this.activeIndex = index
    }
  },
}
</script>
<style lang="scss" scoped>
.center97{
  width: 970px;
  margin: 0 auto;
}
.top-nav{
  .center97{
    position: relative;
  }
  img{
    width: 100%;
    display: block;
  }
  .menu{
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex;
    li{
      width: 128px;
      line-height: 36px;
      text-align: center;
      color: #fff;
      font-size: 16px;
      margin-right: 2px;
      cursor: pointer;
      background: rgba(76, 129, 196, 1);
      &.active{
        background: #fff;
        color: rgba(76, 129, 196, 1);
      }
    }
  }
}
</style>
