<template>
  <div :style="{ opacity: scorllNum < 300 ? '1' : scorllNum/1080 }">
    <div
    id="dowebok"
      class="animated bounceOutLeft animate__animated animate__fadeInDown"
      :class="{
        'header_absolute': scorllNum < 300,
        'header_fixed': scorllNum >= 300,
      }"
      
    >
      <div class="row items-center full-height">
        <div class="col">
          <img style="height: 61px" src="../../assets/images/logo.png" />
        </div>
        <div class="col">
          <q-tabs
            v-model="tab"
            class="text-dark"
            active-color="dark"
            align="justify"
            narrow-indicator
            dense
          >
            <!-- <q-route-tab to="/index" name="home" label="首页" content-class="items-nav" /> -->
            
             <q-tab name="home" label="甲鹤教育" content-class="items-nav" />
            <q-tab name="japan" label="日语培训" content-class="items-nav"   @click="JapaneseTrain"/>
            <q-tab name="liuxue" label="留学服务" content-class="items-nav" />
            <q-tab name="jiuye" label="就业服务" content-class="items-nav" />
            <q-tab name="news" label="媒体中心" content-class="items-nav" />
            <q-tab name="about" label="关于我们" content-class="items-nav" />
            <q-tab name="join" label="加入我们" content-class="items-nav" />
          </q-tabs>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  props: {
    scorllNum: {
      type: Number,
      default: 0,
    },
  },
  data() {
    return {
         tab: "home",
    };
  },
  methods:{
     JapaneseTrain(){
      this.$router.push("/JapaneseTrain")
    }
  },
  watch:{
    
  }
};
</script>
<style lang="scss" scoped>
#dowebok {
    // animation-duration:1s;    //动画持续时间
    // animation-delay:1s;    //动画延迟时间
    // animation-iteration-count: infinite;    //动画执行次数
}

.header_absolute{
  margin-top: 61px;
  height: 61px;
  z-index: 100;
  left: 58px;
  right: 58px;
  position: absolute;
 
}
.header_fixed{
  width: 100vw;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  padding: 0 3.124vw;
  background-color:#f6f6f6;
}

 .items-nav .q-tab__label {
  font-size: 16px !important;
  font-family: "pingfang-b" !important;
}
</style>