<template>
  <common-header />
  <div class="allPageWidthBg courseResources">
    <div class="courseResourcesCont">
      <div class="baseTop">
        <p>浙江传媒学院艺术课程</p>
      </div>

      <div
        class="normalArrange"
        v-for="(kc, kcindex) in baseData"
        :key="kcindex"
      >
        <div class="marklabel">
          <div class="marklabel_left">
            <p>
              {{ kc.kc_name }}
            </p>
          </div>
        </div>
        <div class="allDetailCourse">
          <div class="allIn" v-if="kc.kc && kc.kc.length > 0">
            <div
              class="singlePart relative"
              v-for="(item, index) in kc.kc"
              :key="index"
              @click="windowOpen(item.url)"
            >
              <div class="courseCover"><img :src="item.kk_img" alt="" /></div>
              <p>{{ item.kk_name }}</p>
              <p><span style="margin-left: 0;">{{ item.cm }}</span></p>
              <div class="absolute dataShow">{{item.stu}}</div>
            </div>
          </div>
          <div class="NOdata" v-else>
            <img src="@/assets/kczy/noData4.png" alt="" />
            <p class="NOdata_p">暂无数据~</p>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<script setup>
import img0 from "@/assets/zjcm/img0.png";
import img1 from "@/assets/zjcm/img1.png";
import img2 from "@/assets/zjcm/img2.png";
import img3 from "@/assets/zjcm/img3.png";
import img4 from "@/assets/zjcm/img4.png";
import img5 from "@/assets/zjcm/img5.png";
import img6 from "@/assets/zjcm/img6.png";
import img7 from "@/assets/zjcm/img7.png";
import img8 from "@/assets/zjcm/img8.png";

let baseData = $ref([
  {
    kc_name: "国家级",
    kc: [
      {
        kk_name: "手机摄影艺术",
        kk_img: img5,
        stu: "胡晓阳",
        cm: "设计艺术学院",
        url:'https://www.icourse163.org/course/ZJICM-1206015810?tid=1206313217'
      },
      {
        kk_name: "朗读艺术入门",
        kk_img: img6,
        stu: "王一婷",
        cm: "播音主持艺术学院",
        url:'https://coursehome.zhihuishu.com/courseHome/1000008754#teachTeam'
      },
      {
        kk_name: "礼仪文化修养",
        kk_img: img7,
        stu: "周悦娜",
        cm: "播音主持艺术学院",
        url:'https://www.xueyinonline.com/detail/236769752'
      },
    ],
  },
  {
    kc_name: "省级",
    kc: [
      {
        kk_name: "即兴口语表达",
        kk_img: img4,
        stu: "孙光磊",
        cm: "播音主持艺术学院",
        url:'https://coursehome.zhihuishu.com/courseHome/1000008706#teachTeam'
      },
      {
        kk_name: "艺术概论",
        kk_img: img3,
        stu: "应小敏",
        cm: "文学院",
        url:'https://www.zjooc.cn/course/8a2284e48a8df9a8018aa6e97cd15bd8'
      },
      {
        kk_name: "书法鉴赏",
        kk_img: img2,
        stu: "蔡罕",
        cm: "公共艺术教育部",
        url:'https://www.xueyinonline.com/detail/236489893'
      },
      {
        kk_name: "带你走上主播台",
        kk_img: img1,
        stu: "吕帅",
        cm: "播音主持艺术学院",
        url:'https://coursehome.zhihuishu.com/courseHome/1000008756#teachTeam'
      },
      {
        kk_name: "健美操",
        kk_img: img0,
        stu: "尤晓旭",
        cm: "大学体育教学部",
        url:'https://www.xueyinonline.com/detail/236422646'
      },
      {
        kk_name: "一刻钟：学会美术鉴赏",
        kk_img: img8,
        stu: "王一帆",
        cm: "公共艺术教育部",
        url:'https://www.xueyinonline.com/detail/237578314'
      },
    ],
  },
]);


function windowOpen(href) {
  window.open(href)
}


</script>


<style scoped lang="scss">
@import "@/styles/common_resource.scss";
.courseResources {
  width: 100%;
  .courseResourcesCont {
    width: 1440px;
    margin: 0 auto;
    .baseTop {
      p {
        font-size: 48px;
        font-weight: 600;
        text-align: center;
        color: #000000;
        padding-top: 60px;
      }
      .searchValue {
        width: 497px;
        height: 50px;
        margin: 0 auto;
        background: #ffffff;
        border: 1px solid #00a3ff;
        border-radius: 8px;
        margin-top: 33px;
        overflow: hidden;
        position: relative;
        input {
          width: 100%;
          height: 100%;
          outline: 0;
          box-sizing: border-box;
          padding-left: 10px;
        }
        .searchBtn {
          width: 26px;
          height: 26px;
          background: #00a3ff;
          border-radius: 6px;
          position: absolute;
          right: 5px;
          top: 50%;
          transform: translate(-50%, -50%);
          text-align: center;
          vertical-align: middle;
          cursor: pointer;
          img {
            display: block;
            text-align: center;
            margin: 6px auto 0;
          }
        }
      }
      .littleTab {
        width: 300px;
        margin: 0 auto;
        ul {
          margin-top: 22px;
          display: flex;
          li {
            display: inline-block;
            font-size: 16px;
            font-weight: 400;
            text-align: left;
            color: #606565;
            margin: 0 5px;
            justify-content: space-between;
            cursor: pointer;
          }
        }
      }
    }
  }
}
.active {
  color: #000000 !important;
  font-weight: bold !important;
}
</style>
<style lang="scss" scoped>
.normalArrange {
  margin-top: 30px;
  p {
    font-size: 20px;
    font-weight: 500;
    text-align: left;
    color: #000000;
    span {
      font-size: 16px;
      font-weight: 500;
      text-align: left;
      color: #949494;
      margin-left: 8px;
      font-weight: normal;
    }
  }
  .marklabel {
    width: 100%;
    display: flex;
    .marklabel_left {
      width: 85%;
      margin-top: 30px;
      ul {
        display: flex;
        li {
          width: 100px;
          height: 40px;
          line-height: 40px;
          color: #949494;
          border-radius: 20px;
          font-size: 16px;
          font-weight: 600;
          text-align: center;
          background: #d4f1fe;
          font-weight: normal;
          margin-right: 15px;
          cursor: pointer;
        }
      }
    }
    .marklabel_right {
      width: 15%;
      margin-top: 30px;
      font-size: 16px;
      font-weight: 400;
      text-align: right;
      color: #00a3ff;
      line-height: 40px;
      cursor: pointer;
    }
  }
  .allDetailCourse {
    margin-top: 30px;
    min-height: 264px;

    .allIn {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      flex-wrap: wrap;
      .singlePart {
        width: 19.2%;
        height: 234px;
        border-radius: 12px;
        box-shadow: 0px 10px 24px 0px rgba(153, 160, 168, 0.18);
        margin-right: 1%;
        margin-bottom: 30px;
        position: relative;
        cursor: pointer;
        .courseCover {
          height: 157px;
          img {
            border-radius: 10px 10px 0 0;
            width: 100%;
            height: 100%;
          }
        }
        p {
          height: 22px;
          font-size: 16px;
          font-weight: 400;
          text-align: left;
          color: #000000;
          box-sizing: border-box;
          padding: 0 6px;
          margin: 10px 0;
          display: block;
          overflow: hidden;
          white-space: nowrap;
          text-overflow: ellipsis;
        }
        .evalStar {
          box-sizing: border-box;
          padding: 0 6px;
          margin-top: 5px;
          img {
            width: 18px;
            display: inline-block;
          }
        }
        .dataShow {
          position: absolute;
          right: 0;
          top: 0;
          z-index: 13;
          width: 100px;
          height: 32px;
          line-height: 32px;
          text-align: center;
          background: rgba(0, 0, 0, 0.5);
          color: #fff;
          border-bottom-left-radius: 12px;
          border-top-right-radius: 12px;
        }
      }
      .singlePart:nth-child(5n) {
        margin-right: 0 !important;
      }
    }
  }
}
.activeIn {
  background: #00a3ff !important;
  color: #ffffff !important;
}
</style>
