<template>
  <common-header />
  <!-- <div class="content">
    <div class="title">
      <div>内容 <span>智慧教研-协同备课-</span><span>内容</span></div>
    </div>
    <div class="bk-header">
      <p>{{ detailData.zx_name }}</p>
      <p>
        <span>责任教师:{{ detailData.zx_zrjs }} </span
        ><span>机构名称:{{ detailData.zx_ssjg }}</span>
      </p>
      <p>
        简介：<br />
        {{ detailData.zx_brief }}
      </p>
    </div>
    <div class="class-list">
      <p>课程章节大纲</p>

  <ul v-for="(item, index) in kcdgData" :key="index">
        <li>
          {{ item.zxk_name }}<span @click="toDetail(item.zxk_id)">备课</span>
        </li>
      </ul>
    </div>
  </div> -->
</template>

<script>
import { xtbk_detail, xtbk_kcdg } from "./api";
import CommonHeader from "@/components/CommonHeader/index.vue";
export default {
  name: "index",
  components: {
    CommonHeader,
  },
  data() {
    return {
      kmActiveName: "b",
      njActiveName: "b",
      detailData: {},

      kcdgData: [],
    };
  },
  methods: {
    //详情数据
    getData() {
      let data = { zx_id: this.zx_id };

      xtbk_detail(data).then((res) => {
        this.detailData = res.data.one_info;
      });
    },
    //课程大纲
    getkcdgData() {
      let data = {
        page: this.page,
        limit: this.limit,
        keyword: this.keyword,
      };

      xtbk_kcdg(data).then((res) => {
        this.kcdgData = res.data.page_data;
      });
    },

    toDetail(id) {
      this.$router.push({
        name: "zhjy_zhjyxtbk_xtbknr_nrxq",
        params: { id: id },
      });
    },
  },
  mounted() {
    if (this.$route.params.id != "") {
      this.zx_id = this.$route.params.id;
      this.getData();
      this.getkcdgData();
    }
  },
};
</script>

<style lang="scss" scoped>
.content {
  width: 100%;
  min-width: 1280px;
  margin: 0 auto;
}
.title {
  width: 100%;
  height: 60px;
  line-height: 60px;
  font-size: 18px;
  font-family: PingFangSC, PingFangSC-Regular;
  font-weight: 400;
  color: #050026;
  background: #ffffff;
  margin-bottom: 40px;
  box-shadow: 0px 1px 10px 0px rgba(17, 46, 74, 0.1);
  div {
    width: 1280px;

    margin: 0 auto;
    span:first-of-type {
      width: 56px;
      height: 20px;
      font-size: 14px;
      font-family: PingFangSC, PingFangSC-Regular;
      font-weight: 400;
      text-align: left;
      color: #949494;
      line-height: 20px;
      margin-left: 30px;
    }
    span:last-of-type {
      width: 56px;
      height: 20px;
      font-size: 14px;
      font-family: PingFangSC, PingFangSC-Regular;
      font-weight: 400;
      text-align: left;
      color: #000000;
      line-height: 20px;
    }
  }
}
.bk-header {
  width: 1280px;
  height: 322px;
  margin: 0 auto;
  background: url("@/assets/img/zhjy/nr_bg.png");
  background-size: 100% 322px;
  background-repeat: no-repeat;
  padding-top: 40px;
  padding-left: 40px;
  border-radius: 12px;
  p:first-of-type {
    width: 364px;
    height: 40px;
    font-size: 28px;
    font-family: PingFangSC, PingFangSC-Semibold;
    font-weight: 600;
    text-align: left;
    color: #ffffff;
    line-height: 40px;
    margin-bottom: 13px;
  }
  span {
    display: inline-block;
    width: 220px;
    height: 22px;
    font-size: 16px;
    font-family: PingFangSC, PingFangSC-Regular;
    font-weight: 400;
    text-align: left;
    color: #ffffff;
    line-height: 22px;
    margin-bottom: 32px;
  }
  p:last-of-type {
    width: 1138px;
    height: 83px;
    font-size: 14px;
    font-family: PingFangSC, PingFangSC-Regular;
    font-weight: 400;
    text-align: left;
    color: #ffffff;
    line-height: 20px;
  }
}
.class-list {
  width: 1280px;

  margin: 0 auto;
  margin-top: 35px;
  background: #ffffff;
  border-radius: 12px;

  box-shadow: 2px 10px 24px 0px rgba(161, 153, 168, 0.18);
  padding: 20px;
  p {
    width: 96px;
    height: 32px;
    font-size: 16px;
    font-family: PingFangSC, PingFangSC-Semibold;
    font-weight: 600;
    text-align: left;
    color: #171721;
    line-height: 32px;
    margin: 26px 19px;
  }
  .isselected {
    width: 1240px;
    height: 40px;
    background: #00a3ff;
    border-radius: 16px 16px 0px 0px;
    padding-left: 26px;
    font-size: 14px;
    font-family: PingFangSC, PingFangSC-Semibold;
    font-weight: 600;
    text-align: left;
    color: #ffffff;
    line-height: 40px;
  }
  ul {
    li {
      display: flex;
      justify-content: space-between;
      width: 1240px;
      height: 50px;
      line-height: 50px;
      padding-left: 20px;
      font-size: 14px;
      font-family: PingFangSC, PingFangSC-Semibold;
      font-weight: 600;
      text-align: left;
      color: #050026;
      margin: 15px 0;
      //   opacity: 0.05;
      background: rgba(#00a3ff, 0.05);
      border-radius: 16px 16px 0px 0px;

      span {
        display: inline-block;
        width: 102px;
        height: 32px;
        border: 1px solid #00a3ff;
        border-radius: 17px;
        font-size: 12px;
        font-family: PingFangSC, PingFangSC-Medium;
        font-weight: 500;
        text-align: center;
        color: #00a3ff;
        line-height: 32px;
        margin: 10px 60px;
        cursor: pointer;
      }

      // &:nth-of-type(1),
      // &:nth-of-type(2) {
      //   width: 1220px;
      //   display: flex;
      //   justify-content: space-between;
      //   margin-left: 20px;
      //   border-bottom: 1px dashed #979797;
      //   background-color: transparent;
      //   span {
      //     display: inline-block;
      //     width: 102px;
      //     height: 32px;
      //     border: 1px solid #00a3ff;

      //     border-radius: 17px;
      //     font-size: 12px;
      //     font-family: PingFangSC, PingFangSC-Medium;
      //     font-weight: 500;
      //     text-align: center;
      //     color: #00a3ff;

      //     line-height: 32px;
      //     margin-right: 60px;
      //   }
      // }
    }
  }
}
.footer {
  width: 100%;
  height: 50px;
  margin-top: 100px;
  border: 1px solid blue;
  display: inline-block;
}

::v-deep .el-table tr {
  background: rgba(#00a3ff, 0.05);
  height: 50px;
}
</style>

