<template>
  <div class="client-platform-page client-resources-page">

    <!-- 题库资源页 banner栏 -->
    <div class="client-platform-banner">
      <div  :style="{backgroundImage: `url(${require(`~/static/images/client/resources/resources-banner-background.jpg`)})`}" class="client-platform-banner"></div>
    </div>
    <!--  企业通用岗位培训方案 -->
    <div class="client-container">
      <h4 class="client-title">企业通用岗位培训方案</h4>
      <ul class="train-scheme-list">
        <li><div><i></i><span>职业素养</span></div></li>
        <li><div><i></i><span>领导能力</span></div></li>
        <li><div><i></i><span>人力资源</span></div></li>
        <li><div><i></i><span>市场营销</span></div></li>
        <li><div><i></i><span>行政管理</span></div></li>
        <li><div><i></i><span>财务管理</span></div></li>
        <li><div><i></i><span>客服服务</span></div></li>
        <li><div><i></i><span>生产采购</span></div></li>

      </ul>
    </div>
    <div class="platform-products-services">
      <ul>
        <li>
          <div class="client-container">
            <div class="products-services-box products-contrary-box">
              <h4 class="client-title">为企业培训打造学习矩阵</h4>
              <img :src="trainAdvantagesImg1" alt="完善的课程学习体系" />
              <div class="products-services-content">
                <p>
                  课程总数近<span class="blue-big-size">5000门</span><br>
                  涵盖<span class="blue-big-size">2000个</span>知识要点<br>
                  提供<span class="blue-big-size">9大通用岗位</span>培训方案<br>
                  课程资源<span class="blue-big-size">每月持续更新</span><br>
                </p>
                <div>
                  <a rel="nofollow" class="client-default-Btn" href="https://cdnks.mtavip.com/a/register?flug=2" target="_blank">申请方案</a>
                  <span rel="nofollow" class="client-default-white-Btn" @click="goIntroductionPage">联系我们</span>
                </div>
              </div>
            </div>
          </div>
        </li>
      </ul>

    </div>
    <!--  情景动画 -->
    <div class="course-learn-box">
      <h4 class="client-title">课程内容形式多样</h4>
      <div class="client-container tc">
        <ul class="learn-box-list">
          <li>
            <a href="https://1251882694.vod2.myqcloud.com/51d57535vodtransgzp1251882694/9cc031355285890792886057331/v.f30.mp4"></a>
            <div>
              <span><img :src="courseVideoImg16" alt="FLASH动画课程"><i @click="playVideo(15)"></i></span>
              <p>FLASH动画课程</p>
              <p class="course-explain-black">主要以图文动画的形式表现教学者的作用和教与学之间的关系，从而改变学习的本质</p>
            </div>
          </li>
          <li>
            <a href="https://spdb.mtavip.com/65615d29a5da4478b8d4ebfd6810d2da/65ab43fa5fb942aab2af981c2f7ea5c7-da005714eae365940692db31fbf6e9b8-fd.mp4"></a>
            <div>
              <span><img :src="courseVideoImg8" alt="视频课程"><i @click="playVideo(7)"></i></span>
              <p>视频课程</p>
              <p class="course-explain-black">把教师视频与PowerPoint课件一并摄制下来，生成为视频课件</p>
            </div>
          </li>
          <li>
            <a href="https://1251882694.vod2.myqcloud.com/51d57535vodtransgzp1251882694/9ce0a1a35285890792886070899/v.f30.mp4"></a>
            <div><span><img :src="courseVideoImg6" alt="名师讲堂"><i @click="playVideo(5)"></i></span>
              <p>名师讲堂</p>
              <p class="course-explain-black">各行各业讲师汇聚一堂，为不同专属领域打造明星级课堂</p>
            </div>
          </li>
        </ul>
        <div class="platform-products-services">
          <a rel="nofollow" class="client-default-Btn" href="https://cdnks.mtavip.com/a/register?flug=2" target="_blank">申请方案</a>
          <span rel="nofollow" class="client-default-white-Btn" @click="goIntroductionPage">联系我们</span>
        </div>
      </div>
    </div>

    <!-- 新闻资讯 -->
    <div class="platform-news-information">
      <div class="client-container">
        <h4 class="client-title">新闻资讯</h4>
        <ul>
          <li style="font-size: 16px" v-for="(item, index) in topCarousels">
            <div>
              <img :src="item.pic" alt="新闻资讯" />
              <h4 @click="checkInfo(item)">{{ item.title }}</h4>
              <span>发布时间：{{item.yyyy }}-{{ item.mmdd }}</span>
              <p>{{ item.intro }}</p>
            </div>
          </li>
        </ul>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    name:     'resources',
    layout:   'templateB',
    async asyncData({ $axios,store }) {
      // 设置选中菜单
      store.commit('setActiveNav', '/resources');


      let [res1, res2] = await Promise.all([
                                             await $axios.$post(`/home/banner/list`, { 'code': 3 }).then(res => {
                                               return res;
                                             }),
                                             await $axios.$post(`/home/news/carousel`, { 'newsClassifyId': 0,'keyword':'培训' }).then(res => {
                                               return res;
                                             })
                                           ]);
      return {
        bannerList: res1.data.data||[],
        topCarousels: res2.data.data||[],

      };
    },
    data() {
      return {
        trainAdvantagesImg1:  require(`~/static/images/client/resources/train-scheme-img.png`),
        courseVideoImg6:  require(`~/static/images/client/course/course-video-img6.png`),
        courseVideoImg8:  require(`~/static/images/client/course/course-video-img8.png`),
        courseVideoImg16:  require(`~/static/images/client/course/course-video-img16.png`),
      };
    },
    head(){
      return {
        title: '培训学校管理系统_远程培训系统_培训软件系统_【栋科软件工程有限公司】',
        meta: [
          {
            name: 'keywords',
            content: '培训公司系统,培训行业管理系统,模拟培训考试系统,培训系统管理软件,培训软件'
          },
          {
            name:'description',
            content:'麦塔在线培训系统量身定制满足您需求的在线学习平台，完善的学习流程帮助用户建设标准化的在线培训体系，麦塔培训软件系统具有功能丰富的在线考试模块和稳定安全的数据保护。'
          }
        ],
      }
    },
    computed: {},
    methods:  {
      goIntroductionPage(){
        this.$router.push({ name: 'introduction' });
      },
      checkInfo(data) {
        const opt = {
          id: data.code,
        };
        this.$router.push({ name: 'news-id', params: opt });
      },
      clickBanner(data){
        if(data){
          window.open(data)
        }
      },
    },
    created() {

    },
    mounted() {
    },
    beforeDestroy() {
    },
  };
</script>
<style>

</style>
