<template>
  <div class="wrap">
    <div class="single-banner single-banner-overview">
      <img class="banner-img" :src="modules[0].form.pic" alt="">
      <div class="texts">
        <h6 class="banner-title">{{ modules[0].form.title }}</h6>
      </div>
    </div>

    <ul class="tabs wow fadeInLeft">
      <template v-for="(item, i) in tabs">
        <li :class="{active: item.id == active}" :key="i" @click="tabChange(item)">{{ item.columnName }}</li>
      </template>
    </ul>

    <div class="tab-content">
      <div class="org">
        <div class="left">
          <h6>{{ modules[1].form.title }}</h6>
          <p class="text" v-html="modules[1].form.des"></p>
        </div>
        <img class="pic" src="http://10.10.11.7/images/overviewSetup/1.png" alt="">
      </div>
      <div class="lg-bg">
        <img width="100%" :src="modules[2].form.pic" alt="">
      </div>
      
    </div>
  </div>
</template>

<script>
import mixins from '@/mixins/page'
import overview from '@/mixins/overview'
import WOW from 'wow.js'
export default {
  mixins: [mixins, overview],
  data() {
    return {
      
    }
  },
  mounted() {
    new WOW().init()
  },
  methods: {
    
  }
};
</script>

<style lang="scss" scoped>
@import url(../../plugins/wow/animate.css);
@import "../../styles/page/page.scss";
.single-banner {
  .banner-img {
    height: 24rem;
  }
  .texts {
    top: auto !important;
    bottom: 2rem;
    h6 {
      font-size: 2.16rem
    }
  }
}
.tabs {
  display: flex;
  justify-content: center;
  box-shadow: 0px 2px 10px 0px rgba(223,223,223,0.28);
  li {
    padding: 25px 19px;
    margin: 0 10px;
    font-size: 1.1rem;
    color: #333;
    border-bottom: 4px solid transparent;
    text-shadow: 0px 2px 14px rgba(167,167,167,0.26);
    cursor: pointer;
    &.active {
      color: #1583FF;
      border-bottom-color: #1583FF;
    }
  }
}
.tab-content {
  padding: 77px 0;
}
.org {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 1294px;
  padding: 9px 86px 29px 116px;
  margin: 0 auto 50px;
  background: #FCFCFC;
  border-radius: 160px;
  .left {
    width: 705px;
  }
  h6 {
    font-size: 1.4rem;
    font-family: AlimamaShuHeiTi-Bold, AlimamaShuHeiTi;
    font-weight: bold;
    color: #333;
  }
  .text {
    margin-top: 10px;
    font-size: 1rem;
    color: #020202;
    line-height: 2rem;
  }
  .pic {
    width: 320px;
    height: 282px;
  }
}
.lg-bg {
  width: 85%;
  margin: 0 auto;
}
@media (max-width: 1200px) {
  .tabs {
    overflow: hidden;;
    overflow-x: auto;
    white-space: normal;
    justify-content: normal;
    display: -webkit-box;
    li {
      white-space: normal;
    }
  }
  .tab-content{
    padding: 20px 0;
    .org{
    width: 100%;
    padding:15px;
    flex-direction: column;
    .pic {
      width: 100%;
    }
    .left{
      width: 100%;
    }
  }
  }
}

@media (min-width: 280px) and (max-width: 1200px) {
  .single-banner {
    .banner-img {
      height: 15rem;
    }
    .texts{
      top: 8rem !important;
      left: 22rem !important;
    }
  }
}
@media (max-width: 320px) {
  .single-banner {
    .banner-img {
      height: 13rem;
    }
    .texts {
      top: 9rem !important;
      left: 8rem !important;
      .banner-title {
        font-size: 1.5rem;
      }
    }
  }
  .tab-content{
    .org{
    .pic {
      width: 100%;
      height: 13rem;
    }
  }
  }
}
@media (min-width: 320px) and (max-width: 375px) {
  .single-banner {
    .banner-img {
      height: 15rem;
    }
    .texts {
      top: 11rem !important;
    left: 10rem !important;
      .banner-title {
        font-size: 1.5rem;
      }
    }
  }
}

@media (min-width: 375px) and (max-width: 480px) {
  .single-banner {
    .banner-img {
      height: 18rem;
    }
    .texts {
      top: 14rem !important;
    left: 13rem !important;
      .banner-title {
        font-size: 1.5rem;
      }
    }
  }
}
@media (min-width: 480px) and (max-width: 640px) {
  .single-banner {
    .banner-img {
      height: 22rem;
    }
    .texts {
      top: 18rem !important;
      left: 25rem !important;
      .banner-title {
        font-size: 1.5rem;
      }
    }
  }
}
@media (min-width: 640px) and (max-width: 768px) {
  .single-banner {
    .banner-img {
      height: 25rem;
    }
    .texts {
      top: 21rem !important;
      left: 37rem !important;
      .banner-title {
        font-size: 1.5rem;
      }
    }
  }
  .tab-content{
    .org{
      .pic {
        width: 100%;
        height: 25rem;
      }
    }
  }
}
@media (min-width: 768px) and (max-width: 980px) {
  .single-banner {
    .banner-img {
      height: 28rem;
    }
    .texts {
      top: 21rem !important;
      left: 37rem !important;
      .banner-title {
        font-size: 1.5rem;
      }
    }
  }
  .tab-content{
    .org{
      .pic {
        width: 100%;
        height: 28rem;
      }
    }
  }
}
@media (min-width: 980px) and (max-width: 1200px) {
  .single-banner {
    .banner-img {
      height: 32rem;
    }
    .texts {
      top: 21rem !important;
      left: 37rem !important;
      .banner-title {
        font-size: 1.5rem;
      }
    }
  }
  .tab-content{
    .org{
      .pic {
        width: 100%;
        height: 32rem;
      }
    }
  }
}
</style>