<template>
  <div class="pb_content">
    <div class="pb_content_body" style="height: 100%">
      <div class="body_student">
        <div class="student_head">
          <div class="box_course">
            <div class="wheel"><img src="../assets/wheel2.png" alt="" /></div>
            <div class="right_box">
              <div class="right_box_title">认识木头制作|颗粒板和胶合板制作</div>
              <div class="people">
                <div class="man">
                  <img src="../assets/people.png" alt="" />
                </div>
                <div class="person">56人</div>
              </div>
              <div class="now_study" @click="dialogVisible = true">
                立即学习
              </div>
            </div>
          </div>
          <div class="choose_who">
            <div
              class="who_choose"
              :class="choose == 0 ? 'choose' : ''"
              @click="choose = 0"
            >
              课程简介
            </div>
            <div
              class="who_choose"
              :class="choose == 1 ? 'choose' : ''"
              @click="choose = 1"
            >
              课程学员
            </div>
          </div>
        </div>
        <div class="student_body" v-if="choose == 0">
          <div class="nav">
            木工最早起源于鲁班，在以前被称之为"木匠"，随着科技的发达，这类工作逐渐成为广大市民的爱好，本专题为大家整理的就是各种木工的就是各种木，如果木头够长，加上几块木板安装在家的一角，仿佛把大树搬回了家做成了书架。
            木工最早起源于鲁班，在以前被称之为"木匠"，随着科技的发达，这类工作逐渐成为广大市民的爱好，本专题为大家整理的就是各种木工的就是各种木，如果木头够长，加上几块木板安装在家的一角，仿佛把大树搬回了家做成了书架。
          </div>
          <div class="pic">
            <div class="Img"><img src="../assets/game.png" alt="" /></div>
            <div class="Img"><img src="../assets/piano.png" alt="" /></div>
            <div class="Img"><img src="../assets/moonLight.png" alt="" /></div>
            <div class="Img"><img src="../assets/music.png" alt="" /></div>
          </div>
        </div>
        <div class="student_body_one" v-else>
          <div class="student">
            <div>西英凡</div>
            <div>侣浩洋</div>
            <div>李浩宇</div>
            <div>赵雨辰</div>
            <div>董佳杰</div>
            <div>张馨予</div>
            <div>闫艺馨</div>
            <div>谭宏说</div>
            <div>西英凡</div>
            <div>侣浩洋</div>
            <div>李浩宇</div>
            <div>赵雨辰</div>
            <div>董佳杰</div>
            <div>张馨予</div>
            <div>闫艺馨</div>
            <div>谭宏说</div>
            <div>西英凡</div>
            <div>侣浩洋</div>
            <div>李浩宇</div>
            <div>赵雨辰</div>
            <div>董佳杰</div>
            <div>张馨予</div>
            <div>闫艺馨</div>
            <div>谭宏说</div>
            <div>西英凡</div>
            <div>侣浩洋</div>
            <div>李浩宇</div>
            <div>赵雨辰</div>
            <div>董佳杰</div>
            <div>张馨予</div>
            <div>闫艺馨</div>
            <div>谭宏说</div>
            <div>西英凡</div>
            <div>侣浩洋</div>
            <div>李浩宇</div>
            <div>赵雨辰</div>
            <div>董佳杰</div>
            <div>张馨予</div>
            <div>闫艺馨</div>
            <div>谭宏说</div>
            <div>西英凡</div>
            <div>侣浩洋</div>
          </div>
        </div>
        <!-- <div
          style="
            text-align: center;
            padding: 30px 0 20px 0;
            box-sizing: border-box;
          "
        >
          此处滚动加载..
        </div> -->
        <el-dialog
          title="阶段选择"
          :visible.sync="dialogVisible"
          :append-to-body="true"
          width="700px"
          :before-close="handleClose"
          class="dialog_change"
        >
          <div style="font-size: 20px">请选择阶段</div>
          <div style="padding: 20px 30px; display: flex">
            <div class="blue_box" @click="goTo('/study')">
              <div>第一阶段</div>
              <div>木头的基本认识与实操</div>
            </div>
            <div class="blue_box" @click="goTo('/study')">
              <div>第二阶段</div>
              <div>木头的组合知识</div>
            </div>
            <div class="blue_box" @click="goTo('/study')">
              <div>第三阶段</div>
              <div>简介各种类型的保险箱</div>
            </div>
          </div>
        </el-dialog>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      choose: 0,
      dialogVisible: false,
    };
  },
  methods: {
    handleClose(done) {
      done();
    },
    goTo(path) {
      this.$router.push(path);
    },
  },
  created() {},
};
</script>

<style scoped>
.body_student {
  margin: 0px auto;
  width: 80%;
  height: 100%;
}
.student_head {
  width: 80%;
  margin: 0 auto;
  background: #fff;
  height: 30%;
}
.wheel {
  width: 210px;
}
.man {
  width: 16px;
  height: 16px;
}
.wheel > img,
.man > img {
  width: 100%;
  height: 100%;
}
.box_course {
  display: flex;
  padding: 35px 0 0 60px;
}
.right_box {
  display: flex;
  flex-direction: column;
  margin-left: 30px;
}
.right_box_title {
  font-size: 23px;
}
.people {
  display: flex;
  margin-top: 20px;
}
.person {
  margin-left: 10px;
  line-height: 18px;
}
.now_study {
  width: 150px;
  height: 35px;
  color: #fff;
  background: #0e71e6;
  text-align: center;
  line-height: 35px;
  border-radius: 5px;
  font-size: 13px;
  cursor: pointer;
  margin-top: 60px;
}
.choose_who {
  display: flex;
  margin: 30px 0 0 60px;
}
.who_choose {
  height: 28px;
  cursor: pointer;
}
.choose_who > div:nth-child(2) {
  margin-left: 35px;
}
.choose {
  border-bottom: 5px solid #d7d7d7;
}
.student_body {
  width: 80%;
  margin: 0 auto;
  background: #fff;
  margin-top: 20px;
  padding: 0 0 20px;
  min-height: 1000px;
}
.nav {
  margin: 0 auto;
  width: 80%;
  padding-top: 20px;
  text-indent: 25px;
}
.pic {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  height: 100%;
  justify-content: space-evenly;
}
.Img {
  /*width: 30%; */
  width: 300px;
  margin: 20px 50px;
  margin: 20px 10px;
  border: 1px solid #dbdbdb;
  border-radius: 5px;
  overflow: hidden;
}
.Img > img {
  width: 100%;
  height: 100%;
}
.student_body_one {
  width: 80%;
  margin: 0 auto;
  background: #fff;
  height: 100%;
  margin-top: 20px;
  min-height: 1000px;
}
.student {
  width: 85%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
  margin: 0 auto;
  padding: 20px 0;
}
.student > div {
  width: 12%;
  height: 35px;
  background: #e3759a;
  text-align: center;
  border: 1px solid #e3759a;
  border-radius: 5px;
  color: #fff;
  line-height: 35px;
  margin: 10px;
}
.dialog_change >>> .el-dialog {
  border-radius: 5px;
}
.dialog_change >>> .el-dialog__header {
  background: #537bb8;
}
.dialog_change >>> .el-dialog__title {
  color: #fff;
  line-height: 5px;
}
.dialog_change >>> .el-dialog__body {
  background: #f5f5f5;
}
.blue_box {
  width: 33%;
  height: 100px;
  text-align: center;
  color: #fff;
  background-image: linear-gradient(to right, #35bafd, #0ba2f4);
  border-radius: 7px;
  margin: 0 10px;
  cursor: pointer;
}
.blue_box > div:nth-child(1) {
  font-size: 17px;
  line-height: 65px;
}
.blue_box > div:nth-child(2) {
  line-height: 0px;
}
</style>
