提交 9b7ddf33 authored 作者: matian's avatar matian

feat:加州浸会大学新增校园一览

上级 f39ef228
...@@ -78,6 +78,18 @@ export default { ...@@ -78,6 +78,18 @@ export default {
// { name: this.$t('menu.courseChild.teachers'), path: '/about/teacher' } // { name: this.$t('menu.courseChild.teachers'), path: '/about/teacher' }
] ]
}, },
// 校园一览
{
name: this.$t('menu.campusList'),
path: '/campusList/campusList'
// childern: [
// { name: this.$t('menu.projectChild.bg'), path: '/project-intro/introduce' },
// { name: this.$t('menu.newsChild.hot'), path: '/news/hot' }
// // { name: this.$t('menu.projectChild.feature'), path: '/project-intro/charac' },
// // { name: this.$t('menu.projectChild.cert'), path: '/project-intro/certificate' }
// ]
},
// 学历认证 // 学历认证
{ {
name: this.$t('menu.academic'), name: this.$t('menu.academic'),
......
...@@ -15,6 +15,7 @@ export default { ...@@ -15,6 +15,7 @@ export default {
returnPolicy: '归国政策', returnPolicy: '归国政策',
question: '常见问题', question: '常见问题',
apply: '报名申请', apply: '报名申请',
campusList: '校园一览',
projectChild: { projectChild: {
bg: '项目介绍', bg: '项目介绍',
feature: '项目特色', feature: '项目特色',
......
差异被折叠。
<template>
<ul class="tab-content">
<li
v-for="(item, index) in items"
:key="index"
:class="activeIndex === index && 'active'"
@click="tabChange(index)"
>
{{ item }}
</li>
</ul>
</template>
<script>
export default {
data() {
return {
items: ['图书馆', '实验室', '餐厅&住宿', '运动场', '校园风光', '校园活动', '毕业典礼'],
activeIndex: 0
}
},
methods: {
tabChange(n) {
this.activeIndex = n
this.$emit('tabChange', n)
}
}
}
</script>
<style lang="scss" scoped>
.tab-content {
// padding-top: 0.2rem;
display: flex;
justify-content: center;
li {
min-width: 106px;
height: 38px;
text-align: center;
line-height: 38px;
font-size: 20px;
font-weight: bold;
color: #333333;
position: relative;
margin-left: 16px;
&.active {
background: #aa1941;
color: #ffffff;
}
}
}
</style>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论