<template>
  <div class="teacher-box content-max-width">
    <div class="module1 content-max-width">
      <div class="title">师资培训报名</div>
      <div class="p">网站师资培训页面选择项目课程点击在线报名，填写培训申请表后，关注审核结果和培训通知。</div>
      <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="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">
            学习系统以学习课程和辅助教学为主要功能。<br/>
老师学习课程以视频展示为主，清晰、流畅且稳定。视频播放支持倍速、全屏切换、课程讲义和视频双频同步播放；<br/>
辅助教学，使用学习系统，开班授课，可辅导所有学员班课讲解，以取得最好的成绩。
          </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">
              可使用学习系统的辅助教学功能。<br/>
支持视频课程教学播放、PPT课程讲义播放。<br/>
管理班级学员和开班课，了解进度
            </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>
