You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
107 lines
2.1 KiB
107 lines
2.1 KiB
<template>
|
|
<div>
|
|
|
|
<div class="about-us d-flex align-center justify-space-between">
|
|
<div>关于我们</div>
|
|
<a-icon type="up" style="margin-right:1rem;color:#30B6CB" v-show="show" @click="show =false " />
|
|
<a-icon type="down" style="margin-right:1rem;color:#30B6CB" v-show="!show" @click="show =true " />
|
|
</div>
|
|
<div class="d-flex flex-column nav" v-show="show">
|
|
|
|
<div
|
|
:class="activeNum === index ? 'nav-box-active' : ''"
|
|
:key="index"
|
|
class="list-down"
|
|
@click="jump(item.url)"
|
|
v-for="(item, index) in list"
|
|
>{{ item.title }}</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'HNav',
|
|
data() {
|
|
return {
|
|
show: false,
|
|
str: '导航条',
|
|
activeNum: 0,
|
|
list: [
|
|
{
|
|
title: '公司介绍',
|
|
url: '/About/Introduce',
|
|
},
|
|
{
|
|
title: '组织机构',
|
|
url: '/About/Organ',
|
|
},
|
|
{
|
|
title: '合作伙伴',
|
|
url: '/About/Partner',
|
|
},
|
|
// {
|
|
// title: '衍生企业',
|
|
// url: '/About/SpinOffs',
|
|
// },
|
|
],
|
|
};
|
|
},
|
|
created() {
|
|
if (this.$route.fullPath === '/About/Organ') {
|
|
this.activeNum = 1;
|
|
} else if (this.$route.fullPath === '/About/Partner') {
|
|
this.activeNum = 2;
|
|
} else if (this.$route.fullPath === '/About/SpinOffs') {
|
|
this.activeNum = 3;
|
|
} else {
|
|
this.activeNum = 0;
|
|
}
|
|
},
|
|
methods: {
|
|
jump(url) {
|
|
if (this.$route.fullPath === url) {
|
|
this.$message.success('已在当前界面');
|
|
} else {
|
|
this.$router.push(url);
|
|
}
|
|
},
|
|
},
|
|
};
|
|
</script>
|
|
|
|
<style lang="stylus" scoped>
|
|
|
|
.about-us{
|
|
width 100%
|
|
height 3rem
|
|
// border 1px solid pink
|
|
border-bottom 1px solid #4C5660
|
|
font-size: 16px;
|
|
padding-left 1.5rem
|
|
padding-top 0.8rem
|
|
}
|
|
.list-down {
|
|
|
|
// text-align center
|
|
width 100%
|
|
height 3rem
|
|
// border 1px solid pink
|
|
border-bottom 1px solid #4C5660
|
|
font-size: 16px;
|
|
color: #fff
|
|
padding-left 1.5rem
|
|
padding-top 0.8rem
|
|
}
|
|
.nav{
|
|
|
|
width 100%
|
|
z-index 1000
|
|
|
|
background #001428
|
|
|
|
|
|
|
|
// display: none;
|
|
}
|
|
</style>
|
|
|