<template>
  <div style="width:100%;border-bottom: #f1f1f1 solid 1px;">
    <div class="header_box">
      <div class="header_left">
        <img src="../assets/image/resource/logo_img.png" class="logo_img" />
        <div class="header_list">
          <ul>
            <li v-for="items in navlist" class="nav_name"><a :href="items.url" style="color:#555;">{{items.name}}</a></li>
          </ul>
        </div>
      </div>
      <div class="header_right">
        <div class="helper" ><button @click="tologin">教学助手</button></div>
      </div>
    </div>
  </div>
</template>
<script>
  export default {
    data() {
      return {
        navlist: [
          { "id": 1, "name": '首页', "url": '/HomePage' },
          { "id": 2, "name": '资源', "url": '/resource' },
          { "id": 3, "name": '名师', "url": '/Teacher' },
          { "id": 4, "name": '活动', "url": '/activity' },
        ],
      }
    },
    methods: {
      tologin: function () {
        this.$router.push({ path: '/login' })
      }
    }
  }
</script>
<style scoped>
  .header_box {
    width: 1200px;
    height: 85px;
    background-color: #fff;
    margin: 0 auto;
    
  }
  .header_left {
    width: 800px;
    float: left;
    height: 75px;
  }
  .header_right {
    width: 200px;
    float: left;
    height: 75px;
    padding-left:7%;
    padding-top:5px;
  }
  .logo_img {
    float: left;
    width: 30%;
    margin-top: 2%;
  }
  .header_list {
    float: left;
    width:70%;
    padding-left:15%;
  }
  .nav_name {
    width: 15%;
    float: left;
    list-style: none;
    display: block;
    height: 38px;
    line-height: 85px;
    padding: 0 5px;
    margin: 0 11px;
    font-size: 18px;
    color: #555555;
    text-align:center;
  }
  .login_btn {
    width:30%;
    display:block;
    float:left;
    margin-left:40%;
  }
    .login_btn button {
      width: 85px;
      text-align: center;
      background: #26b5ff;
      color: #fff;
      height: 35px;
      line-height: 35px;
      margin: 22px 22px 0px 22px;
      border: 0;
      border-radius: 10px;
      font-size:18px;
    }
  .helper {
    width: 100%;
    display: block;
    float: left;
    padding-top:22px;
  }
    .helper button {
      padding: 0 17px;
      color: #288add;
      border: 1px solid #2196f3;
      height: 30px;
      line-height: 30px;
      background: #fff;
      font-size: 18px;
    }
</style>
