<template>
  <div class="service-content max-width-center">
    <div class="title">数字经济产业学院</div>
    <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>
  </div>
</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: '紫荆E-SAAS<br/>平台',
          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: '专业共建<br/>数字化改造',
          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: '数字经济<br/>实验室',
          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: '教学研发',
          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: '引产入校',
          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: '实习就业',
          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: '落地案例',
          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>
.service-content {
  width: 1200px;
  margin: 70px auto;
  .title {
    font-size: 30px;
    font-weight: bold;
    color: #333333;
  }
  .nav-content {
    display: flex;
    justify-content: space-between;
    background: #ffffff;
    padding: 78px 58px 70px 56px;
    margin-top: 20px;
    li {
      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>
