|
|
@ -1,30 +1,38 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<div class="header"> |
|
|
|
<div :class="['header', { channel: isChannel }]"> |
|
|
|
<a class="logo" @click="toIndex"> |
|
|
|
<a class="logo" @click="toIndex"> |
|
|
|
<img src="@/assets/images/logo.png" alt=""> |
|
|
|
<img v-if="isChannel" src="@/assets/images/logo.png" alt=""> |
|
|
|
|
|
|
|
<template v-else> |
|
|
|
|
|
|
|
<img src="@/assets/images/logo1.png" alt=""> |
|
|
|
深圳中能高重复自由电子激光 |
|
|
|
深圳中能高重复自由电子激光 |
|
|
|
|
|
|
|
</template> |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
<navbar ref="nav"></navbar> |
|
|
|
<navbar ref="nav"></navbar> |
|
|
|
<div class="tools"> |
|
|
|
<div class="tools"> |
|
|
|
<img class="search" src="@/assets/images/search.png" alt=""> |
|
|
|
<img class="search" :src="require('@/assets/images/search' + (isChannel ? '-white' : '') + '.png')" alt=""> |
|
|
|
<img src="@/assets/images/cn.png" alt=""> |
|
|
|
<img :src="require('@/assets/images/cn' + (isChannel ? '-white' : '') + '.png')" alt=""> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<script> |
|
|
|
<script> |
|
|
|
import { mapState, mapMutations, mapActions } from "vuex"; |
|
|
|
import { mapState, mapMutations, mapActions } from 'vuex' |
|
|
|
import Setting from "@/setting"; |
|
|
|
import Setting from '@/setting' |
|
|
|
import util from "@/libs/util"; |
|
|
|
import util from '@/libs/util' |
|
|
|
import navbar from "../navbar"; |
|
|
|
import navbar from '../navbar' |
|
|
|
export default { |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
return { |
|
|
|
|
|
|
|
isChannel: this.$route.path === '/channel' |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
components: { |
|
|
|
components: { |
|
|
|
navbar |
|
|
|
navbar |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
watch: { |
|
|
|
|
|
|
|
'$route'() { |
|
|
|
|
|
|
|
this.isChannel = this.$route.path === '/channel' |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
mounted() { |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
@ -47,8 +55,10 @@ $height: 90px; |
|
|
|
width: 100%; |
|
|
|
width: 100%; |
|
|
|
min-width: $min-width; |
|
|
|
min-width: $min-width; |
|
|
|
height: $height; |
|
|
|
height: $height; |
|
|
|
|
|
|
|
&:not(.channel) { |
|
|
|
background-color: #fff; |
|
|
|
background-color: #fff; |
|
|
|
box-shadow: 0px 2px 9px 0px rgba(221,221,221,0.18); |
|
|
|
box-shadow: 0px 2px 9px 0px rgba(221,221,221,0.18); |
|
|
|
|
|
|
|
} |
|
|
|
.logo{ |
|
|
|
.logo{ |
|
|
|
position: absolute; |
|
|
|
position: absolute; |
|
|
|
top: 0; |
|
|
|
top: 0; |
|
|
|