<template>
  <AppCard :title="$t('home.industrial.tit')">
    <template #title>
      <nuxt-link to="/services">{{ $t('home.industrial.tit') }}</nuxt-link>
    </template>
    <ul class="nav-content">
      <li v-for="(item, index) in data" :key="index">
        <AppLink :data="item">
          <div class="img_box">
            <img :src="item.icon" alt="" class="icon" />
            <img :src="item.iconActive" alt="" class="icon-active" />
          </div>
          <div class="text" v-html="item.text"></div>
        </AppLink>
      </li>
    </ul>
  </AppCard>
</template>
<script>
import AppLink from '@/components/Link'
export default {
  components: { AppLink },
  data() {
    return {
      data: [
        {
          icon: 'https://webapp-pub.oss-cn-beijing.aliyuncs.com/www/pc/home/school/icon_sass.png',
          iconActive: 'https://webapp-pub.oss-cn-beijing.aliyuncs.com/www/pc/home/school/icon_sass_active.png',
          text: this.$t('home.industrial.tit_t1'),
          href: 'https://e-saas.ezijing.com/',
          pathType: 1
        },
        {
          icon: 'https://webapp-pub.oss-cn-beijing.aliyuncs.com/www/pc/home/school/icon_gj.png',
          iconActive: 'https://webapp-pub.oss-cn-beijing.aliyuncs.com/www/pc/home/school/icon_gj_active.png',
          text: this.$t('home.industrial.tit_t2'),
          path: '/services/professional'
        },
        {
          icon: 'https://webapp-pub.oss-cn-beijing.aliyuncs.com/www/pc/home/school/icon_sy.png',
          iconActive: 'https://webapp-pub.oss-cn-beijing.aliyuncs.com/www/pc/home/school/icon_sy_active.png',
          text: this.$t('home.industrial.tit_t3'),
          path: '/practice/laboratory'
        },
        {
          icon: 'https://webapp-pub.oss-cn-beijing.aliyuncs.com/www/pc/home/school/icon_yf.png',
          iconActive: 'https://webapp-pub.oss-cn-beijing.aliyuncs.com/www/pc/home/school/icon_yf_active.png',
          text: this.$t('home.industrial.tit_t4'),
          path: '/services/teach'
        },
        {
          icon: 'https://webapp-pub.oss-cn-beijing.aliyuncs.com/www/pc/home/school/icon_yc.png',
          iconActive: 'https://webapp-pub.oss-cn-beijing.aliyuncs.com/www/pc/home/school/icon_yc_active.png',
          text: this.$t('home.industrial.tit_t5'),
          path: '/services/school'
        },
        {
          icon: 'https://webapp-pub.oss-cn-beijing.aliyuncs.com/www/pc/home/school/icon_jy.png',
          iconActive: 'https://webapp-pub.oss-cn-beijing.aliyuncs.com/www/pc/home/school/icon_jy_active.png',
          text: this.$t('home.industrial.tit_t6'),
          path: '/services/employment'
        },
        {
          icon: 'https://webapp-pub.oss-cn-beijing.aliyuncs.com/www/pc/home/school/icon_al.png',
          iconActive: 'https://webapp-pub.oss-cn-beijing.aliyuncs.com/www/pc/home/school/icon_al_active.png',
          text: this.$t('home.industrial.tit_t7'),
          path: '/services/college/case'
          // pathType: 1
        }
      ]
    }
  }
  // methods: {
  //   goPage(path, type) {
  //     if (path === '') {
  //       this.$message('暂未开通，敬请期待。')
  //       return
  //     } else {
  //       !type ? window.open(path) : this.$router.push({ path: path })
  //     }
  //   }
  // }
}
</script>

<style lang="scss" scoped>
.nav-content {
  display: flex;
  justify-content: space-between;
  background: #ffffff;
  padding: 78px 58px 70px 56px;
  margin-top: 20px;
  li {
    width: 105px;
    background: #ffffff;
    margin-right: 20px;
    cursor: pointer;

    .img_box {
      width: 100px;
      height: 100px;
      background: #f6f5f5;
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    img {
      display: block;
    }
    .icon-active {
      display: none;
    }
    &:hover {
      .img_box {
        background: #aa1941;
      }
      .text {
        color: #aa1941;
      }
      .icon {
        display: none;
      }
      .icon-active {
        display: block;
      }
    }
    .text {
      text-align: center;
      font-size: 16px;
      font-weight: 400;
      line-height: 18px;
      color: #666666;
      margin-top: 20px;
      // white-space: nowrap;
    }
  }
}
</style>
