<template>
  <div class="camp-index">
    <Header> </Header>
    <div class="content flex">
      <div class="cc flex">
        <div class="camp_left">
          <ul class="camp_left_box">
            <li @click="ToSignUp" >
              <img src="@/assets/img/signUp/icon-bm.png" />营地报名
            </li>
            <li @click="ToHomework">
              <img src="@/assets/img/signUp/icon-zs.png" />营地作业
            </li>
            <li @click="ToCertificate">
              <img src="@/assets/img/signUp/icon-zy.png" />营地证书
            </li>
          </ul>
        </div>

        <div class="camp_right">
          <router-view />
        </div>
      </div>
    </div>

    <Footer> </Footer>
  </div>
</template>

<script>
/* eslint-disable */
import Header from "@/components/index/SignUp/Header.vue";
import Footer from "@/components/index/Footer.vue";
export default {
  name: "campIndex",
  components: {
    Header,
    Footer,
  },
  data() {
    return {};
  },
  methods: {
    ToSignUp() {
      this.$router.replace({ name: "index-signUp" });
    },
    ToHomework() {
      this.$router.replace({ name: "index-homework" });
    },
    ToCertificate() {
      this.$router.replace({ name: "index-certificate" });
    },
  },
};
</script>

<style lang="scss" scoped>
.camp-index {
  background: #f8f8f8;
  .content {
    justify-content: center;
    .cc {
      width: 60%;
      justify-content: space-around;
      // align-items: center;
    }
  }
  .tab {
    width: 280px;
    height: 320px;
    background: #ffffff;
    position: relative;
    top: 0;
    // position: relative;
    // top: -544px;
    li {
      height: 52px;
      background: #f8f8f8;
    }
  }

  .camp_left {
    position: relative;
    width: 24%;
    max-width: 280px;
    min-width: 240px;
    /*height: 340px;*/
    border-radius: 8px;
    margin-right: 30px;
    .camp_left_box {
      max-width: 280px;
      min-width: 240px;
      height: 300px;
      background-color: #ffffff;
      border-radius: 8px;
      padding: 20px 0;
      &.is-fixed {
        position: fixed;
        top: 92px;
        width: 24%;
        max-width: 280px;
        min-width: 240px;
      }
      &.is-absolute {
        position: absolute;
        bottom: 0;
        width: 100%;
      }
      li {
        position: relative;
        padding: 0 23px;
        height: 44px;
        line-height: 44px;
        margin: 10px 0;
        font-size: 15px;
        list-style: none;
        img {
          vertical-align: middle;
          margin: -3px 8px 0 0;
          width: 20px;
        }

        &.active,
        &:hover {
          cursor: pointer;
          background-color: #f5f5f5;
          border-right: 4px solid #3c0664;
        }
      }
    }
  }
}
</style>
