<template>
  <div class="content-max-width">
    <breadcrumb class="content-max-width crumb" :data="crumbData"/>
    <div class="train-detail-box content-max-width">
      <div class="content-left">
        <div class="title">{{ data.title }}</div>
        <div class="item-box">
          <img :src="data.cover_pc_url" alt="">
          <div class="right-content">
            <!-- <div class="title">《金融产品数字化营销职业技能等级认证教材》（初级）</div> -->
            <div class="des-box">
              <p>活动类型：金融产品数字化营销职业技能培训证书（初级）</p>
              <p>活动地点：深圳</p>
              <p>培训起始时间：2021.03.19—2020.11.20</p>
              <p>联系人：王老师</p>
            </div>
            <router-link to="/train/form">
              <div class="detail-btn">立即报名</div>
            </router-link>
          </div>
        </div>
      </div>
      <div class="content-card" v-if="data.excerpt != null">
        <div class="tit">最新会议</div>
        <div class="text" v-html="data.excerpt">生实解着利土具度海张际取得时美议九报当社并因或争拉青再大精周不院指权展理会后市中议候只土写海院油称县白力反油子特军再六红省采大队清</div>
        <!-- <div class="btn-boxs">
          <div class="btns">确定</div>
        </div> -->
      </div>
    </div>
    <div class="new-contents content-max-width">
      <div class="p">
        <div class="name">会议简介：</div>
        <div class="cont">本系列教材紧跟金融各行业数字化转型和职业教育的人才培养发展的需求， 随行业的数字化转型、数字化营销工具和专业升级等情况及时动态更新。</div>
      </div>
      <div class="p">
        <div class="name">会议流程如下：</div>
        <div class="cont">老师参加完师资培训之后，需要从培训内容、教学设计、教授方法等方面进行全面测评，测评形式不限于小组讨论、个人答辩、试卷考试等，具体测评形式以当期师资培训方案为准。</div>
      </div>
      <div class="p">
        <div class="name">报名咨询：</div>
        <div class="cont">13121937531</div>
      </div>
      <div class="p">
        <div class="name">联系人：</div>
        <div class="cont">王怡正</div>
      </div>
      <div class="p">
        <div class="name">联系电话：</div>
        <div class="cont">13121931111</div>
      </div>
      <!-- <div class="pdf">《金融产品数字化营销中级》 </div> -->
      <!-- <div class="pdf">《金融产品数字化营销中级》 </div> -->
    </div>
  </div>
</template>
<script>
import item from './components/item'
import action from '@action'
import breadcrumb from '@/components/breadcrumb'
export default {
  components: {
    item,
    breadcrumb
  },
  data() {
    return {
      crumbData: [
        {
          path: '/',
          name: '首页'
        },
        {
          name: '师资培训'
        }
      ],
      data: {}
    }    
  },
  mounted() {
    this.getData()
  },
  methods: {
    getData() {
      action.articleAction.getArticleDetail(this.$route.query.id).then(res => {
        this.data = res.data
      })
    }
  }
}
</script>
<style lang="scss" scoped>
.content-max-width{
  width: 1112px;
  margin: 0 auto;
}
.train-detail-box{
  display: flex;
  padding-top: 12px;
  .title{
    width: 753px;
    line-height: 50px;
    border-bottom: 1px solid #eee;
    font-size: 18px;
    font-weight: bold;
    color: #C01540;
  }
}
.content-left{
  width: 753px;
}
.item-box{
  padding: 24px 0 0;
  // border-bottom: 1px solid #eee;
  display: flex;
  img{
    width: 200px;
    height: 100px;
    display: block;
  }
  .right-content{
    margin-left: 24px;
    .title{
      font-size: 18px;
      font-weight: bold;
      color: #C01540;
      line-height: 25px;
    }
    .des-box{
      // margin-top: 24px;
      p{
        font-size: 14px;
        color: #666666;
        line-height: 20px;
        margin-bottom: 8px;
        &.ind{
          text-indent: 2em;
        }
      }
    }
    .detail-btn{
      color: #fff;
      text-align: center;
      line-height: 36px;
      width: 96px;
      height: 36px;
      background: linear-gradient(315deg, rgba(225, 47, 116, 0.83) 0%, #C01540 100%);
      border-radius: 4px;
      margin-top: 8px;
    }
  }
}
.content-card{
  margin-top: 20px;
  margin-left: auto;
  width: 336px;
  background: #FFFFFF;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.06);
  height: auto;
  height: max-content;  
  .tit{
    height: 58px;
    line-height: 58px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #222222;
    line-height: 58pxpx;
    padding-left: 20px;
    box-sizing: border-box;
  }
  .text{
    padding: 10px 20px 20px;
    font-size: 16px;
    color: #C01540;
    line-height: 22px;
  }
  .btn-boxs{
    height: 56px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    .btns{
      line-height: 36px;
      text-align: center;
      width: 62px;
      height: 36px;
      background: linear-gradient(315deg, rgba(225, 47, 116, 0.83) 0%, #C01540 100%);
      border-radius: 4px;
      margin-left: auto;
      margin-right: 24px;
      color: #fff;
    }
  }
}
.crumb{
  padding-top: 24px;
}
.new-contents{
  padding-bottom: 36px;
  .p{
    display: flex;
    margin-top: 16px;
    .name{
      width: 98px;
      height: 20px;
      font-size: 14px;
      font-weight: bold;
      color: #262626;
      line-height: 20px;
      text-align: right;
    }
    .cont{
      width: 357px;
      font-size: 14px;
      color: #7D7D7D;
      line-height: 20px;
    }
  }
  .pdf{
    margin-top: 16px;
    font-size: 14px;
    color: #0053C6;
    line-height: 20px;
    text-indent: 1.5em;
  }
}
</style>
