<template>
  <div class="client-platform-page client-exam-page">
    <!--  广告  -->
    <div class="client-banner-box">
      <div
        :style="{backgroundImage: `url(${bannerList[0].pic || require(`~/static/images/client/train/train-banner-background.png`)})`}"
        class="client-platform-banner"></div>
    </div>

    <!--  学习受益  -->
    <div class="client-xuexishouyi-box client-container">
      <h4 class="client-title">学习收益</h4>
      <ul>
        <li>
          <div class="products-services-box">
            <img src="#" alt="能力提升">
            <img src="#" alt="能力提升">
          </div>
        </li>
        <li>
          <imgCardLv2 class="my-imgCardLv2" :option="productData"></imgCardLv2>
        </li>
      </ul>
    </div>

    <!--  部分课程列表  -->
    <div class="platform-course-list client-container">
      <h4>部分课程列表</h4>
      <mtaTable :data="tableData" :config="tableConfig" @shi-kan="shiKan"></mtaTable>
      <div class="btn-groups center">
        <freeTrialBtn class="btn-item" myType="kaoshi"/>
        <onlineInformationBtn />
      </div>
    </div>

    <videoDialog :source="curVideo" :visible.sync="visible"></videoDialog>

  </div>
</template>

<script>
import mtaTable from "~/components/common/mtaTable";
import videoDialog from "~/components/common/videoDialog";
import freeTrialBtn from "~/components/common/freeTrialBtn";
import onlineInformationBtn from "~/components/common/onlineInformationBtn";
import pingfen from "~/components/common/pingfen";
import {BannerImgs} from "~/defaultConfig";
import imgCardLv2 from "~/components/common/layout/imgDes/imgCardLv2";

/**
 * @ 产品与服务 -> 课程资源 -> 领导能力
 */
export default {
  name: "professionalQuality",
  layout:   'templateB',
  async asyncData({$axios}) {
    const arr = [
      $axios.$post(`/home/banner/list`, {'code': BannerImgs.lingdaonengli}),
    ]
    const [res1] = await Promise.all(arr);
    return {
      bannerList: res1.data.data || [],
    }
  },
  components: {
    mtaTable, videoDialog,
    freeTrialBtn,onlineInformationBtn, pingfen, imgCardLv2},
  head(){
    return {
      title: '在线考试平台_在线考试软件_试卷软件系统',
      meta: [
        {
          name: 'keywords',
          content: '考试平台,试卷系统,试卷软件'
        },
        {
          name:'description',
          content:'麦塔考试系统具有良好高并发性和访问安全部署、严格的考试监控防作弊功能、PC移动支持多终端，随时随地考试、丰富的考试管理功能。'
        }
      ],
    }
  },
  data() {
    return {
      productData: {
        content: {
          title: '掌握知识',
          list: [
            {
              value: '明确企业管理者的角色定位及岗位使命',
            },
            {
              value: '针对企业管理中的难点及关键点，掌握相应的处理策略解决问题',
            },
            {
              value: '全面提升企业管理者的岗位必备能力',
            },
            {
              value: '了解团队管理及引领团队变革的关键点',
            },
            {
              value: '帮助管理者掌握部署培养的方法及战略执行',
            },
          ],
          order: 2,
        },
        img: {
          url: require('~/static/codeImage/code-jingli.png'),
          order: 1,
        },
        mianfei: true,
        zixun: true,
        shenqing: false,
        myType: 'kaoshi'
      },
      tableConfig: [
        {
          label: '课程名称',
          key: 'name'
        },
        {
          label: '使用行业',
          key: 'hangye'
        },
        {
          label: '使用人群',
          key: 'renqun'
        }
      ],
      tableData: [
        {
          name: '职场沟通-这样表达更有效',
          shikanUrl: 'https://1111',
          hangye: '全行业',
          renqun: '基层领导'
        },
        {
          name: '教练型领导力',
          shikanUrl: '',
          hangye: '全行业',
          renqun: '基层领导'
        },
        {
          name: '如何塑造领导魅力',
          shikanUrl: '',
          hangye: '全行业',
          renqun: '基层领导'
        },
        {
          name: '管理者的四种角色定位',
          shikanUrl: '',
          hangye: '全行业',
          renqun: '中层领导'
        },
        {
          name: '团队沟通管理',
          shikanUrl: '',
          hangye: '全行业',
          renqun: '中层领导'
        },
        {
          name: '激活团队六项实战技能',
          shikanUrl: '',
          hangye: '全行业',
          renqun: '中层领导'
        },
        {
          name: '弱势管理',
          shikanUrl: '',
          hangye: '全行业',
          renqun: '高层领导'
        },
        {
          name: '阿米巴经营：让员工比你操心更多',
          shikanUrl: '',
          hangye: '全行业',
          renqun: '高层领导'
        },
        {
          name: 'NLP总裁商战智慧',
          shikanUrl: '',
          hangye: '全行业',
          renqun: '高层领导'
        },
        {
          name: '领袖兵法',
          shikanUrl: '',
          hangye: '全行业',
          renqun: '高层领导'
        },
      ],
      curVideo: '',
      visible: false,
    }
  },
  methods: {
    shiKan({url}) {
      this.visible = true;
      this.curVideo = url;
    }
  }
}
</script>

<style lang="scss" scoped>
.client-banner-box {
  width: 100%;
  height: 736px;
  .client-platform-banner {
    height: 100%;
    width: 100%;
  }
}

.client-xuexishouyi-box {
  .client-title {
    font-size: 30px;
    font-weight: 800;
    color: #333;
    text-align: center;
    margin-bottom: 140px;
  }
  .products-services-box {
    display: flex;
  }
}
.platform-course-list {
  h4 {
    font-size: 30px;
    font-weight: 800;
    color: #333;
    text-align: center;
    margin-bottom: 98px;
  }
}

@media (max-width: 768px) {

  .client-xuexishouyi-box {
    .client-title {
      font-size: 20px;
      margin-bottom: 10%;
    }

    .products-services-box {
      flex-direction: column;
      img {
        width: 100%;
        margin-bottom: 5%;
      }
    }

    .my-imgCardLv2 {
      margin-bottom: 10%;
    }
  }

  .platform-course-list {
    h4 {
      font-size: 20px;
      margin-bottom: 10%;
    }
  }

}


</style>
