<template>
  <div>
    <div class="service-content max-width-center">
      <div class="is-pc">
        <card title="我们的优势">
          <ul class="nav-content">
            <li v-for="(item, index) in data" :key="index">
              <img :src="item.icon" class="icon" />
              <img v-if="!isMobile" :src="item.iconActive" class="icon-active" />
              <div class="text" v-html="item.text"></div>
            </li>
          </ul>
        </card>
      </div>
    </div>
  </div>
</template>
<script>
import Card from '@/components/Card'
import AppLink from '@/components/Link'
export default {
  name: 'projectFeatures',
  components: {
    AppLink,
    Card
  },
  data() {
    return {
      answerList: [
        [
          '《2023年中国宏观经济与政府政策解读》<br/>趋势力量',
          '《股权架构设计与股权激励》<br/>治理力量',
          '《全面注册制下资本运营与企业上市》<br/>资本力量',
          '《品类定位升级，找到下一条增长曲线》<br/>模式力量'
        ],
        [
          '《构建激发团队的绩效管理体系》<br/>人才力量',
          '《股权架构设计与股权激励》<br/>治理力量',
          '《基于打胜仗的领导力》<br/>领导力量',
          '《业财融合，企业战略执行的财务协同》<br/>财务力量',
          '《复制成功，构建以客户为中心流程管理》<br/>流程力量'
        ],
        ['《财富管理与资产配置大时代背景》<br/>财富力量', '《适合你的资产配置模型》<br/>配置力量', '《穿越牛熊的资产配置策略》<br/>资产力量']
      ],
      titleParams: {
        name: this.$t('home.project.title')
      },
      data: [
        {
          icon: 'https://webapp-pub.ezijing.com/project/exed/training/ys-1.png',
          iconActive: 'https://webapp-pub.ezijing.com/project/exed/training/ys-1-a.png',
          text: '源自清华<br />国企背景',
          path: '',
          pathType: 0
        },
        {
          icon: 'https://webapp-pub.ezijing.com/project/exed/training/ys-2.png',
          iconActive: 'https://webapp-pub.ezijing.com/project/exed/training/ys-2-a.png',
          text: '全方位<br />培训管理',
          path: '',
          pathType: 0
        },
        {
          icon: 'https://webapp-pub.ezijing.com/project/exed/training/ys-3.png',
          iconActive: 'https://webapp-pub.ezijing.com/project/exed/training/ys-3-a.png',
          text: '业内<br />名师云集',
          path: '',
          pathType: 0
        },
        {
          icon: 'https://webapp-pub.ezijing.com/project/exed/training/ys-4.png',
          iconActive: 'https://webapp-pub.ezijing.com/project/exed/training/ys-4-a.png',
          text: '全面覆盖<br />各领域课程',
          path: '',
          pathType: 0
        },
        {
          icon: 'https://webapp-pub.ezijing.com/project/exed/training/ys-5.png',
          iconActive: 'https://webapp-pub.ezijing.com/project/exed/training/ys-5-a.png',
          text: '多维度<br />学习支持',
          path: '',
          pathType: 0
        },
        {
          icon: 'https://webapp-pub.ezijing.com/project/exed/training/ys-6.png',
          iconActive: 'https://webapp-pub.ezijing.com/project/exed/training/ys-6-a.png',
          text: '强大的<br />资源平台',
          path: '',
          pathType: 0
        }
      ]
    }
  },
  methods: {
    goPage(path) {
      if (path === '') {
        // this.$message('暂未开通，尽请期待。')
        return
      }
      window.open(path)
    }
  },
  mounted() {
    console.log(this.isMobile)
  },
  computed: {
    isMobile() {
      return this.$store.state.isMobile
    }
  }
}
</script>

<style lang="scss" scoped>
.is-pc {
  .question-box {
    margin: 100px auto 0 !important;
    .q-c {
      background: #fff;
      margin-top: 80px;
    }
  }
  .answer-box {
    background-color: #aa1941;
    padding: 70px 0 80px;
    margin-top: 95px;
    .answer-list_all {
      padding-top: 70px;
      display: flex;
      justify-content: space-between;
      .answer-list {
        .answer-list_item {
          width: 378px;
          height: 50px;
          border: 1px solid #fff;
          text-align: center;
          line-height: 18px;
          color: #fff;
          padding-top: 5px;
          box-sizing: border-box;
          margin-bottom: 8px;
        }
      }
    }
  }
  .service-content {
    padding-top: 68px;
    .nav-content {
      display: flex;
      justify-content: space-between;
      padding-top: 70px;
      li {
        width: 156px;
        height: 186px;
        padding-top: 30px;
        box-sizing: border-box;
        // background: #f9f8f8;
        border: 1px solid #d5d5d5;
        background: #fff;
        // box-shadow: 0px 4px 38px rgba(142, 30, 34, 0.41);
        cursor: pointer;
        transition: all 0.3s;
        img {
          width: 64px;
          height: 64px;
          display: block;
          margin: 0 auto;
        }
        .icon-active {
          display: none;
        }
        &:hover {
          background: #aa1941;
          box-shadow: 0px 4px 20px rgba(142, 30, 34, 0.41);
          .text {
            color: #fff;
          }
          .icon {
            display: none;
          }
          .icon-active {
            display: block;
          }
        }
        .text {
          font-size: 16px;
          line-height: 26px;
          color: #666666;
          margin-top: 23px;
          text-align: center;
        }
      }
    }
  }
  .max-width-center {
    width: 1212px;
    margin: 0 auto;
  }
}
.is-h5 {
  .service-content {
    ul {
      display: flex;
      overflow-x: scroll;
      -webkit-overflow-scrolling: touch;
    }
    li {
      min-width: 0.78rem;
      background: #ffffff;
      margin-right: 0.1rem;
      padding-top: 0.11rem;
      img {
        width: 0.4rem;
        height: 0.4rem;
        display: block;
        margin: 0 auto;
      }
      .text {
        font-size: 0.1rem;
        line-height: 0.16rem;
        color: #666666;
        padding-top: 0.05rem;
        text-align: center;
        padding-bottom: 0.1rem;
      }
    }
  }
}
</style>
