<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: #BF0927;
      &.active{
        background: #fff;
        color: #C70025;
      }
    }
  }
}
</style>
