<template>
  <div class="header">
    <div class="header_l"></div>
    <div class="header_c">
      <img class="header_l-position" :src="circularLogo"/>
      <p class="header_c-p">山西农业大学实验室安全管理系统</p>
    </div>
    <img class="header_r" src="@/assets/image/index_icon16.png" @click="back"/>
  </div>
</template>

<script>
  import {} from '../api/http'

  export default {
    name: 'heaDer',
    setup() {
      return {
        circularLogo: localStorage.getItem('circularLogo')
      }
    },
    methods: {
      //跳转视频/应急页面
      topButtonGoPage(type) {
        if (type == 'video') {
          this.$router.push('/videoSurveillance')
        } else if (type == 'alarm') {
          this.$router.push('/emergencyManagement')
        }
      },
      back() {
        this.$router.push('/home')
        // this.$router.go(-1)
      }
    },
    mounted() {

    }
  }
</script>

<style lang="scss" scoped>
  * {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
  }

  .header {
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: flex-start;
    .position-img-button-left-box {
      cursor: pointer;
      position: absolute;
      top: 4px;
      left: 410px;
      display: flex;
      width: 190px;
      height: 24px;
      img {
        width: 24px;
        height: 18px;
        display: inline-block;
        margin: 4px 0;
      }
      p {
        color: #24D1F9;
        font-size: 16px;
        line-height: 24px;
        margin-left: 14px;
        font-family: Source Han Sans CN;
        font-weight: 400;
      }
    }
    .position-img-button-right-box {
      cursor: pointer;
      position: absolute;
      top: 4px;
      right: 385px;
      display: flex;
      width: 190px;
      height: 24px;
      img {
        width: 24px;
        height: 24px;
        display: inline-block;
      }
      p {
        color: #24D1F9;
        font-size: 16px;
        line-height: 24px;
        margin-left: 14px;
        font-family: Source Han Sans CN;
        font-weight: 400;
      }
    }
    .header_l {
      width: 250px;
      height: 55px;
    }
    .header_c {
      width: 1180px;
      height: 152px;
      margin-left: 136px;
      background: url("~@/assets/image/index_icon2.png") no-repeat;
      background-size: 100% 100%;
      padding-top: 26px;
      position: relative;
      .header_c-p {
        font-size: 30px;
        font-family: Microsoft YaHei;
        font-weight: bold;
        color: #FFFFFF;
        line-height: 30px;
        text-align: center;
        padding-left: 70px;
      }
      .header_l-position {
        z-index: 10;
        position: absolute;
        top: 17px;
        left: 330px;
        width: 50px;
        height: 50px;
      }
    }
    .header_r {
      cursor: pointer;
      margin-left: 264px;
      width: 82px;
      height: 32px;
      margin-top: 18px;
    }
  }
</style>
