提交 6a92e440 authored 作者: 王鹏飞's avatar 王鹏飞

chore: 显示新闻动态

上级 4486a233
......@@ -35,7 +35,7 @@ export default {
display: flex;
}
.main-page-nav {
width: 220px;
width: 160px;
background: #fff;
padding: 35px 0 44px;
margin-right: 40px;
......
......@@ -15,9 +15,9 @@
<nuxt-link :to="item.path">{{ item.name }}</nuxt-link>
</template>
</div>
<div class="child-item" v-if="item.childern">
<div class="child-item" v-if="item.children">
<div class="one-level">
<template v-for="(level2Item, level2Index) in item.childern">
<template v-for="(level2Item, level2Index) in item.children">
<div
:class="$route.path === level2Item.path || level2Item.isShow ? 'li active' : 'li'"
:key="level2Index + 'level2'"
......@@ -28,7 +28,7 @@
<div class="name">
{{ level2Item.name }}
</div>
<div class="el-icon-arrow-right" v-if="level2Item.childern"></div>
<div class="el-icon-arrow-right" v-if="level2Item.children"></div>
</app-link>
</div>
</template>
......@@ -50,19 +50,19 @@ export default {
// 项目介绍
{
name: this.$t('menu.project'),
path: '/project-intro/introduce'
// 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' }
// ]
path: '/project-intro/introduce',
children: [
{ 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.course'),
// path: '/about/course',
// childern: [
// children: [
// { name: this.$t('menu.courseChild.set'), path: '/about/course' },
// { name: this.$t('menu.courseChild.teachers'), path: '/about/teacher' }
// ]
......@@ -71,7 +71,7 @@ export default {
{
name: this.$t('menu.school'),
path: '/school/school3',
childern: [
children: [
// // { name: this.$t('menu.schoolChild.school1'), path: '/school/school1' },
// // { name: this.$t('menu.schoolChild.school2'), path: '/school/school2' },
{ name: this.$t('menu.schoolChild.school3'), path: '/school/school3' }
......@@ -87,7 +87,7 @@ export default {
{
name: this.$t('menu.enroll'),
path: '/enroll/process',
childern: [
children: [
{ name: this.$t('menu.enrollChild.process'), path: '/enroll/process' },
// { name: this.$t('menu.enrollChild.brochure'), path: '/enroll/brochure' },
{ name: this.$t('menu.enrollChild.apply'), path: '/enroll/apply' }
......@@ -120,8 +120,8 @@ export default {
methods: {
navLeave() {
this.navData.map(item => {
if (item.childern) {
item.childern.map(cItem => {
if (item.children) {
item.children.map(cItem => {
cItem.isShow = false
})
}
......@@ -129,7 +129,7 @@ export default {
this.$forceUpdate()
},
levelShow(item, isOut) {
if (item.childern) {
if (item.children) {
if (isOut) {
clearTimeout(this.time)
this.time = setTimeout(() => {
......@@ -155,8 +155,8 @@ export default {
return 'name active'
} else {
let className = 'name'
if (item.childern) {
item.childern.map(cData => {
if (item.children) {
item.children.map(cData => {
currentPath.includes(cData.path) && (className = 'name active')
})
}
......
......@@ -9,7 +9,7 @@
<!-- 校园风光 -->
<!-- <school-senery /> -->
<!-- 最新动态 -->
<!-- <news /> -->
<news />
<!-- 视频 -->
<Video style="margin-bottom:0.2rem" />
<!-- 右侧功能栏 -->
......@@ -22,7 +22,7 @@ import banners from '../components/home/banners.vue'
import projectPosition from '../components/home/projectPosition.vue'
import projectFeatures from '../components/home/projectFeatures'
// import schoolSenery from '../components/home/schoolSenery.vue'
// import news from '../components/home/news'
import news from '../components/home/news'
import presence from '../components/home/presence'
import commonProblem from '../components/home/commonProblem'
import openClass from '../components/home/openClass'
......@@ -37,7 +37,7 @@ export default {
projectPosition,
projectFeatures,
// schoolSenery,
// news,
news,
presence,
commonProblem,
openClass,
......
......@@ -44,11 +44,11 @@ export default {
{
name: this.$t('menu.projectChild.bg'),
path: '/project-intro/introduce'
},
{
name: this.$t('menu.newsChild.hot'),
path: '/news/hot'
}
// {
// name: this.$t('menu.newsChild.hot'),
// path: '/news/hot'
// }
]
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论