<template>
  <div class="teacher-box">
    <div class="module1 content-max-width">
      <div class="title">师资培训报名</div>
      <div class="p">紫荆教育计划2021年共开展9期针对“金融产品数字化营销职业技能等级证书”的师资培训，具体安排如下：</div>
      <img style="width:30%;display:block;margin:0 auto;" src="https://zws-imgs-pub.ezijing.com/static/public/50ce208136ab7e9c023450940d94fb14.png" alt="">
      <p class="p">注：以上安排供参考，具体计划以紫荆教育官方通告为准。</p>
      <!-- <div class="p1">
        <span>培训报名对象：</span>
        <div class="color-c">
          相关对口金融专业的老师
        </div>
      </div> -->
      <div class="p1">
        <span>报名入口：</span>
        <div class="all-btn" @click="goPage('/train')">去报名</div>
      </div>
      <div class="p1">
        <span>通知关注：</span>
        <div class="all-btn" @click="goPage('/news')">看通知</div>
      </div>
      <div class="p1">
        <span>金融产品数字化营销师资培训（第一期）</span>
      </div>
      <div style="margin-left:36px">
        <div class="p1">
          <span>培训类型：</span>
          <div class="color-c">
            初级
          </div>
        </div>
        <div class="p1">
          <span>培训地点：</span>
          <div class="color-c">
            深圳 
          </div>
        </div>
        <div class="p1">
          <span>培训起始时间：</span>
          <div class="color-c">
            2021年3月22日-26日（3月21日报到） 
          </div>
        </div>
        <div class="p1">
          <span>联系人：</span>
          <div class="color-c">
            王老师
          </div>
        </div>
      </div>
      <div class="title mar-t36-b26">老师参加培训</div>
      <div class="item">
        <img src="https://zws-imgs-pub.ezijing.com/static/public/6a969be695f821530e26bda9cdd727fb.png" alt="">
        <div class="content">
          <div class="text">
            学习系统具备辅助师资培训学习的功能。辅助师资培训学习内容以视频展示为主，视频清晰、
播放流畅、系统稳定；课程播放支持倍速、全屏切换、课程讲义和视频双频同步播放。
          </div>
          <div class="all-btn" @click="goPage('https://x-learning.ezijing.com/', 1)">进入系统</div>
        </div>
      </div>
    </div>
    <div class="module2">
      <div class="content-max-width">
        <div class="title" id="pointt1">师训结业测评</div>
        <div class="p">老师参加完师资培训之后，需要从培训内容、教学设计、教授方法等方面进行全面测评，测评形式不限于小组讨论、个人答辩、试卷考试等，具体测评形式以当期师资培训方案为准。</div>
        <!-- <div class="p1">
          <span>通知关注：</span>
          <div class="all-btn" @click="goPage('/news')">看通知</div>
        </div> -->
        <div class="title mar-t36-b16" id="pointt2">师训结业证书</div>
        <div class="cert-box">
          <img src="https://zws-imgs-pub.ezijing.com/static/public/c10eedf619424f2881a214284818626c.png" alt="">
          <div class="text">参加师资培训并通过师资结业测评者，将获得由紫荆教育颁发的师训结业证书，具备“金融产品数字化营销职业技能等级证书”的培训授课资格。</div>
        </div>
      </div>
    </div>
    <div class="module3 content-max-width">
      <div class="title">老师开班授课</div>
      <div class="item">
        <div class="item">
          <img src="https://zws-imgs-pub.ezijing.com/static/public/6a969be695f821530e26bda9cdd727fb.png" alt="">
          <div class="content">
            <div class="text">
              学习系统具备老师开展授课辅助教学的功能。老师可使用系统辅助教学开班授课、辅导学生学习，可以利用线上便捷的辅助授课资源与线下开展的面授实训相结合，将理论体系与实训场景融为一体，全面提升培训质量。 
            </div>
            <div class="all-btn" @click="goPage('https://x-learning.ezijing.com/', 1)">进入系统</div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
import action from '@action'
export default {
  data() {
    return {
      articleClassify: this.$store.state.classify,
      datas: ''
    }
  },
  mounted() {
    if (this.$route.query.point) {
      setTimeout(() => {
        this.pointScroll()
      }, 500)
    }
  },
  methods: {
    pointScroll(){
      $('html, body').animate({ 
        scrollTop: $(`#point${this.$route.query.point}`).offset().top
      }, 500)
    },
    goPage(path, n) {
      if (n) {
        window.open(path)
      } else {
        this.$router.push({
          path: path
        })
      }
    },
    newsList() {
      debugger
      if (!Object.keys(this.$store.state.classify).length) {
        setTimeout(() => {
          this.articleClassify = this.$store.state.classify
          this.newsList()
        }, 2000)
      } else {
        const findId = this.articleClassify.children.find(item => {
          return item.display_name === '我是老师'
        })
        action.articleAction.getArticle({ category_id: findId.id }).then(res => {
          this.datas = res.data.list[0].content
        })
      }
    }
  },
  watch: {
    $route: {
      handler: function(val, oldVal){
        this.pointScroll()
      },
      deep: true
    }
  }
}
</script>
<style lang="scss" scoped>
.content-max-width{
  width: 1200px;
  margin: 0 auto;
}
.all-btn{
  width: 104px;
  height: 40px;
  background: linear-gradient(315deg, rgba(225, 47, 116, 0.83) 0%, #C01540 100%);
  border-radius: 4px;
  text-align: center;
  line-height: 40px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}
.teacher-box{
  .module1{
    padding: 36px 0;
    .title{
      font-weight: bold;
      color: #333333;
      line-height: 33px;
      font-size: 24px;
      &.mar-t36-b26{
        margin: 36px 0 26px;
      }
    }
    .p{
      font-size: 18px;
      color: #666666;
      line-height: 36px;
      margin: 16px 0;
    }
    .p1{
      margin: 16px 0;
      display: flex;
      align-items: center;
      .color-c{
        line-height: 30px;
        color: #666666;
        font-size: 18px;
      }
      span{
        font-size: 18px;
        font-weight: bold;
        color: #222222;
        line-height: 30px;
      }
    }
    .item{
      display: flex;
      img{
        width: 326px;
        height: 180px;
      }
      .content{
        margin-left: auto;
        width: 790px;
        .text{
          font-size: 18px;
          color: #666666;
          line-height: 36px;
        }
        .all-btn{
          margin-top: 16px;
        }
      }
    }
  }
  .module2{
    background: #fff;
    padding: 36px 0;
    .title{
      font-size: 24px;
      font-weight: bold;
      color: #333333;
      line-height: 33px;
      &.mar-t36-b16{
        margin: 36px 0 16px;
      }
    }
    .p{
      font-size: 18px;
      color: #666666;
      line-height: 36px;
      margin: 16px 0;
    }
    .p1{
      margin: 16px 0;
      display: flex;
      align-items: center;
      .color-c{
        line-height: 30px;
        color: #666666;
        font-size: 18px;
      }
      span{
        font-size: 18px;
        font-weight: bold;
        color: #222222;
        line-height: 30px;
      }
    }
    .cert-box{
      display: flex;
      align-items: center;
      img{
        width: 230px;
        height: 145px;
      }
      .text{
        font-size: 18px;
        color: #666666;
        margin-left: 80px;
      }
    }
  }
  .module3{
    padding: 36px 0;
    .title{
      font-size: 24px;
      font-weight: bold;
      color: #333333;
      line-height: 33px;
    }
    .item{
      margin-top: 20px;
      display: flex;
      img{
        width: 326px;
        height: 180px;
      }
      .content{
        margin-left: 76px;
        .text{
          font-size: 18px;
          color: #666666;
          line-height: 36px;
        }
        .all-btn{
          margin-top: 16px;
        }
      }
    }
  }
}
</style>
