bjmsjy-portal-new/src/assets/components/Header.vue

181 lines
4.9 KiB
Vue
Raw Normal View History

2021-07-16 09:42:05 +08:00
<template>
<div class="header">
2021-07-21 16:43:45 +08:00
<div class="header-nav">
2021-07-16 09:42:05 +08:00
<div class="header-contact">
2021-07-21 16:43:45 +08:00
<div class="logo">
2024-06-18 10:15:19 +08:00
<router-link to="/" title="北京明世继元招标有限公司">
2023-04-17 14:18:42 +08:00
<img src="@/assets/images/left-logo.png" alt="">
2024-06-18 10:15:19 +08:00
<p>明世继元</p>
2021-07-16 09:42:05 +08:00
</router-link>
2021-07-21 16:43:45 +08:00
<ul class="nav-box">
<router-link to="/" tag="li" :class="{active: this.$route.path == '/'}">网站首页</router-link>
2023-04-17 14:18:42 +08:00
<router-link to="/info" tag="li" :class="{active: this.$route.path == '/info'}">
信息公告
<div class="child">
<router-link to="/policy">政策法规</router-link>
</div>
</router-link>
2024-06-18 10:15:19 +08:00
<router-link to="/auction/announcement" tag="li">
拍卖中心
<div class="child">
<router-link to="/auction/announcement">拍卖公告</router-link>
<router-link to="/auction/display">拍品展示</router-link>
<router-link to="/auction/other">其他链接</router-link>
</div>
</router-link>
2021-07-21 16:43:45 +08:00
<router-link to="/company" tag="li" :class="{active: this.$route.path == '/company' || this.$route.path == '/honor'}">
关于我们
<div class="child">
<router-link to="/company">公司简介</router-link>
<router-link to="/honor">公司荣誉</router-link>
</div>
</router-link>
<router-link to="/contact" tag="li" :class="{active: this.$route.path == '/contact'}">联系我们</router-link>
<router-link to="/recruit" tag="li" :class="{active: this.$route.path == '/recruit'}">职位招聘</router-link>
</ul>
2023-04-17 14:18:42 +08:00
<div class="right-logo">
<img src="@/assets/images/right-logo.png" alt="">
2021-07-21 16:43:45 +08:00
</div>
</div>
2021-07-16 09:42:05 +08:00
</div>
</div>
2023-04-17 14:18:42 +08:00
<!-- <div class="banner">-->
<!-- <swiper ref="mySwiper" :options="swiperOptions">-->
<!-- <swiper-slide>-->
<!-- <div class="banner-box">-->
<!-- <img :src="requestUrl + '/news/route/file/downloadfile/true/' + coverPhoto" alt="">-->
<!-- </div>-->
<!-- </swiper-slide>-->
<!--&lt;!&ndash; <div class="swiper-pagination" slot="pagination"></div>&ndash;&gt;-->
<!-- </swiper>-->
<!-- </div>-->
2021-07-16 09:42:05 +08:00
</div>
</template>
<script>
import url from '@/assets/public/url'
export default {
name: "",
components: {},
props: {
coverPhoto: String
},
data() {
return {
requestUrl: url.url,
swiperOptions: {
// pagination: '.swiper-pagination',
paginationClickable: true,
autoplay: 3000
}
}
},
methods: {},
mounted() {
}
}
</script>
<style lang="stylus" rel="stylesheet/stylus" scoped>
@import "~styles/public.styl"
.header
2023-04-17 14:18:42 +08:00
height 95px
2021-07-16 09:42:05 +08:00
position relative
2023-04-17 14:18:42 +08:00
box-shadow 0 0 10px #ddd
2021-07-21 16:43:45 +08:00
.header-nav
2023-04-17 14:18:42 +08:00
padding 5px 0
width 1200px
margin 0 auto
2021-07-21 16:43:45 +08:00
.logo
width 1200px
margin 0 auto
2021-07-16 09:42:05 +08:00
&:after
content ''
display block
clear both
2021-07-21 16:43:45 +08:00
a
display block
2021-07-16 09:42:05 +08:00
float left
2023-04-17 14:18:42 +08:00
text-align center
2021-07-16 09:42:05 +08:00
img
2023-04-17 14:18:42 +08:00
width 70px
height 52px
p
color #4c4c4c
font-size 16px
font-weight 800
2021-07-16 09:42:05 +08:00
.nav-box
2021-07-21 16:43:45 +08:00
float left
2023-04-17 14:18:42 +08:00
margin-left 200px
margin-top 5px
2021-07-16 09:42:05 +08:00
&:after
content ''
display block
clear both
li
float left
2021-07-21 16:43:45 +08:00
line-height 44px
2021-07-16 09:42:05 +08:00
font-size 16px
color #333
2023-04-17 14:18:42 +08:00
margin-right 75px
2021-07-16 09:42:05 +08:00
cursor pointer
position relative
2021-07-21 16:43:45 +08:00
border-bottom 3px solid #b2b2b2
2021-07-16 09:42:05 +08:00
&:last-child
margin-right 0
&.active, &:hover
font-weight bold
color $main-blue
border-bottom 3px solid $main-red
&:hover
a
font-weight normal
.child
display block
.child
position absolute
top 100%
left -13px
padding 0 10px
width 110%
box-shadow 0 0 10px #EEE
display none
background #fff
a
display block
line-height 40px
font-size 16px
color #333
text-align center
&:hover
font-weight bold
color $main-blue
2023-04-17 14:18:42 +08:00
.right-logo
2021-07-21 16:43:45 +08:00
float right
2023-04-17 14:18:42 +08:00
margin-top 5px
img
width 80px
height 70px
2021-07-16 09:42:05 +08:00
.banner
position absolute
top 0
left 0
right 0
bottom 0
z-index -1
2021-07-21 16:43:45 +08:00
.swiper-container
height 100% !important
.banner-box
position relative
2021-07-16 09:42:05 +08:00
width 100%
2021-07-21 16:43:45 +08:00
height 100%
overflow hidden
img
position absolute
top 0
left 50%
transform translate(-50%, 0)
height 500px
2021-07-16 09:42:05 +08:00
</style>