<template>
  <div class="detail-box" :style="setHeight">
    <div class="title">请选择机构类型</div>
    <div class="card-box">
      <div class="card">
        <div class="tit">院校</div>
        <div class="icon1"></div>
        <div class="btn" @click="goPage('https://vslc.ncb.edu.cn/ncb_admin/#/login?systemType=3')">点击选择</div>
      </div>
      <div class="card">
        <div class="tit">培训评价组织</div>
        <div class="icon2"></div>
        <div class="btn" @click="goPage('https://vslc.ncb.edu.cn/ncb_admin/#/login?systemType=2')">点击选择</div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  computed: {
    setHeight() {
      return `height: ${document.documentElement.clientHeight}px`
    }
  },
  methods: {
    goPage(url) {
      window.open(url)
    }
  }
}
</script>
<style lang="scss" scoped>
body{
  width: 100%;
  height: 100%;
}
.detail-box{
  width: 100%;
  height: 100%;
  background: url(https://zws-imgs-pub.ezijing.com/static/public/9de4efa3d87e1ce5ab1ab4561cf2b3a1.png) center;
  background-size: cover;
  .title{
    text-align: center;
    padding: 80px 0;
    font-size: 24px;
    font-family: PingFangSC-Semibold, PingFang SC;
    font-weight: 600;
    color: #C01540;
    line-height: 33px;
  }
  .card-box{
    display: flex;
    justify-content: center;
    .card{
      width: 250px;
      height: 314px;
      background: #FFFFFF;
      box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.05);
      border-radius: 4px;
      &:nth-child(1){
        margin-right: 180px;
      }
      .tit{
        font-size: 18px;
        font-weight: bold;
        color: #222222;
        line-height: 18px;
        text-align: center;
        padding: 40px 0;
      }
      .icon1{
        margin: 0 auto;
        width: 88px;
        height: 100px;
        background: url(https://zws-imgs-pub.ezijing.com/static/public/24e834ede8334617a09c493ac35822d0.png);
        background-size: 100% 100%;
        margin-bottom: 40px;
      }
      .icon2{
        margin: 0 auto;
        width: 101px;
        height: 100px;
        background: url(https://zws-imgs-pub.ezijing.com/static/public/04f69710ea011f233709e593ac0cd88b.png);
        background-size: 100% 100%;
        margin-bottom: 40px;
      }
      .btn{
        margin: 0 auto;
        width: 96px;
        height: 36px;
        background: linear-gradient(315deg, rgba(225, 47, 116, 0.83) 0%, #C01540 100%);
        border-radius: 4px;
        font-size: 14px;
        color: #FFFFFF;
        line-height: 36px;
        text-align: center;
        cursor: pointer;
      }
    }
  }
}
</style>
