<template>
  <div class="container">
    <div class="topBanner">
    </div>
    <div class="infoWrap">
      <div class="infoList">
        <div class="infoItem"
             @click="gotoDetail(1)">
          <img src="@/assets/images/consult/infoMsg.png"
               width="100%"
               alt />
          <!-- <p class="time"></p> -->
          <div class="textwarp">
            <h2>承办单位和定点机构有什么区别</h2>
            <p class="info">承办单位”指与文化和旅游部艺术发展中心考级中心直接签约的授权代理法人单位，悬挂牌匾由文化和旅游部艺术发展中心统一规制和颁发。</p>
          </div>
        </div>
        <div class="infoItem"
             @click="gotoDetail(2)">
          <img src="@/assets/images/consult/infoMsg2.png"
               width="100%"
               alt />
          <div class="textwarp">
            <h2>乐器演奏不清晰不连贯的原因有哪些</h2>
            <p class="info"> 你在练什么乐器？你是否经常吹不清楚，拉不流畅，弹不连贯？
              答案肯定很不乐观，这是器乐学习者的通病，初学者入门阶段大量存在。也许这一时期手生技疏情有可原，但如果一首乐曲练了很长一段时间毛病依然如故，那就非得好好找出原因来了。</p>
          </div>
        </div>
        <div class="infoItem"
             @click="gotoDetail(3)">
          <img src="@/assets/images/consult/infoMsg1.png"
               width="100%"
               alt />
          <!-- <p class="time"></p> -->
          <div class="textwarp">
            <h2>十级琴霸的备考建议</h2>
            <p class="info">考级冲刺月，很多考生都已进入紧张的备考阶段，每天练习音阶琶音、背谱等考试项目。以下是来自十级琴霸的备考忠告， 赶紧对照下文，看看接下来的一个多月里，你每天需要练习多久。</p>
          </div>
        </div>
        <div class="infoItem"
             @click="gotoDetail(4)">
          <img src="@/assets/images/consult/infoMsg3.png"
               width="100%"
               alt />
          <!-- <p class="time"></p> -->
          <div class="textwarp">
            <h2>音乐等艺术等科目纳入“新中考”</h2>
            <p class="info">2020年，武汉市教育局公布《推进高中阶段学校考试招生制度改革的实施方案（试行）》（以下简称“新中考”方案），即从当年初一入学的学生开始实施。</p>
          </div>
        </div>
      </div>
    </div>
    <silder />
  </div>
</template>
<script>
import silder from '@/components/silder.vue'
export default {
  components: { silder },
  data () {
    return {};
  },
  methods: {
    gotoDetail (num) {
      let newpage = this.$router.resolve({
        name: `detile${num}`,
      });
      window.open(newpage.href, '_blank');
    },
    changeStatus () { }
  },
};
</script>
<style lang="less" scoped>
.container {
  background-color: #f6f7f9;
}
.topBanner {
  background: url("../../assets/images/consult/consultBanner.png") center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  height: 470px;
  display: flex;
  flex-direction: column;
  align-items: center;
  .msg {
    margin-top: 194px;
    font-size: 50px;
    font-family: PingFangSC-Semibold, PingFang SC;
    font-weight: 600;
    color: #ffffff;
    line-height: 70px;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.32);
  }
}
.infoWrap {
  display: flex;
  flex-direction: column;
  align-items: center;

  .infoList {
    width: 988px;
    margin-top: 60px;
    text-align: left;

    .infoItem {
      display: flex;
      flex-direction: row;
      justify-content: flex-start;
      background-color: #fff;
      width: 988px;
      img {
        width: 304px;
        height: 210px;
      }
      margin-bottom: 56px;
      cursor: pointer;
      .textwarp {
        margin-left: 24px;
        width: 660px;
        h2 {
          margin-top: 20px;
          font-size: 26px;
          font-family: PingFangSC-Regular, PingFang SC;
          font-weight: 400;
          color: #1a1a1a;
          line-height: 33px;
          height: 57px;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
        }
        .info {
          margin-top: 10px;
          height: 60px;
          overflow: hidden;
          text-overflow: ellipsis;
          font-size: 14px;
          font-family: PingFangSC-Regular, PingFang SC;
          font-weight: 400;
          color: #808080;
          line-height: 20px;
          overflow: hidden;
          text-overflow: ellipsis;
          display: -webkit-box;
          -webkit-line-clamp: 2;
          -webkit-box-orient: vertical;
          padding-right: 34px;
        }
      }
    }
  }
}
</style>