<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="img1" alt="能力提升">
            <img :src="img2" 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">
        <applyBtn class="btn-item" @active-pc="onApplyBtnActive" @active-h5="onApplyBtnActiveH5"/>
        <onlineInformationBtn />
      </div>
    </div>

    <videoDialog :source="curVideo" :visible.sync="visible"></videoDialog>
    <!--  申请方案  -->
    <applicationDialog :visible.sync="telDl"></applicationDialog>
  </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";
import applicationDialog from "~/components/common/applicationDialog";
import applyBtn from "~/components/common/applyBtn";

/**
 * @ 产品与服务 -> 课程资源 -> 领导能力
 */
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,applicationDialog,applyBtn,
    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/productImage/p42.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://spdb.mtavip.com/9e6c0d3021b5476598b337e729a13810/a47aa772e67241988fc7b1e37e70f2db-46563b462a065d22f5c4162b4505dda4-fd.mp4',
          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,
      img1: require("~/static/productImage/p47.png"),
      img2: require("~/static/productImage/p41.png"),
      telDl: false,
    }
  },
  methods: {
    shiKan({url}) {
      this.visible = true;
      this.curVideo = url;
    },
    onApplyBtnActive() {
      this.telDl = true;
    },
    onApplyBtnActiveH5() {
      this.$router.push({name: 'CourseDevelopPhone', query: {redirectUrl: '/product/lingDaoNengLi',}});
    },
  }
}
</script>

<style lang="scss" scoped>

.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;
  }
}

.products-services-box {
  display: flex;
  margin-bottom: 90px;
  justify-content: flex-start;

  img {
    width: 446px;
    height: 342px;

    &:first-child {
      margin-right: 190px;
      width: 370px;
      height: 340px;
      padding-left: 50px;
    }

    &:last-child {
      margin-right: 190px;
      width: 297px;
      height: 306px;
      padding-left: 50px;
    }
  }


  @media (max-width: 768px) {
    flex-direction: column;
    justify-content: center;
    margin-bottom: 3%;
    img {
      width: 100%;
      height: 200px;
      margin: 0;

      &:nth-child(1) {
        order: 2
      }

      &:nth-child(2) {
        order: 1;
      }
    }
  }
}

@media (max-width: 768px) {

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

    .products-services-box {
      flex-direction: column;
      img {
        max-width: 100%;
        height: auto;
        padding: 0;
      }
    }

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

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

}


</style>
