  <template>
  <div class="all">
  <!-- 头部区域上-->
    <div class="head">
        <div class="logo">AI升学测评分析平台</div>
        <div class="headRight">
            <i class="ico"></i> |
            <span class="photo"></span>
            <span class="name">你好</span> |
            <a href="#" class="logout" @click="logout" >退出</a>
        </div>
    </div>
    <!-- 头部导航区域 -->
     <div class="topMenu">
         <div class="menuCenter">
         <el-menu
      default-active="2"
      mode="horizontal"
      >
      <el-menu-item index="1">
        <i class="el-icon-menu"></i>
        <span slot="title">综合套题</span>
      </el-menu-item>
      <el-menu-item index="2">
        <i class="el-icon-menu"></i>
        <span slot="title">知识点选题</span>
      </el-menu-item>
      <el-menu-item index="3">
        <i class="el-icon-menu"></i>
        <span slot="title">章节选题</span>
      </el-menu-item>
        </el-menu>
        </div>
     
    
     </div>
        <div class="footer"><p>copyright@2013-2019 All Right</p></div>
    </div>
  </template>
  
 <script>
 export default {
    data(){
       return {

       }
    },
    methods:{
        logout(){
            this.$router.push('/login')
        }
    }
    
    }
 
 </script>
  <style style="less" scoped>
  /* 头部区域 */
  .head {
    overflow: hidden;
    width: 100%;
    height: 68px;
    background-color: #529BFF;
    line-height: 68px;
    color: #fff;
}
.logo {
    font-size:16px;
    float: left;
    width: 20%;
    line-height:40px;
    font-weight: 900;
    height: 40px;
    /* background-color: pink; */
    margin-left: 30px;
   margin-top: 15px;
}

.headRight {
    float: right;
    font-size: 12px;

}
.ico {
    display: inline-block;
    vertical-align: middle;
    width: 16px;
    height: 16px;
    background-color: pink;
    
}
.photo {
     display: inline-block;
     vertical-align: middle;
    width: 42px;
    height: 42px;
    background-color: pink;
    margin: 0 5px;
    border-radius: 50%;
}
.logout {
    color: #fff;
    margin-right: 15px;
}

.all {
 position: relative;
}

/*头部导航区域  */
.topMenu {
    overflow: hidden;
    width: 100%;
    height: 51px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    
}

/* 版权区域 */
.footer {
    color: #B1B9CF;
   position:fixed ;
  bottom: -8px;
   left: 50%;
   transform: translateX(-50%);
   z-index:-999;

}


  </style>