提交 6d5bc022 authored 作者: pengxiaohui's avatar pengxiaohui

项目介绍和校友风采静态页

上级 06fef23b
...@@ -63,22 +63,22 @@ ...@@ -63,22 +63,22 @@
navData: [ navData: [
{ {
name: '项目介绍', name: '项目介绍',
path: '/about/introduce', path: '/project-intro/bg',
childern: [ childern: [
{ {
name: '项目背景', name: '项目背景',
isShow: false, isShow: false,
path: '/about/introduce' path: '/project-intro/bg'
}, },
{ {
name: '项目特色', name: '项目特色',
isShow: false, isShow: false,
path: '/about/culture' path: '/project-intro/charac'
}, },
{ {
name: '证书授予', name: '证书授予',
isShow: false, isShow: false,
path: '/about/news' path: '/project-intro/certificate'
} }
] ]
}, },
...@@ -137,11 +137,13 @@ ...@@ -137,11 +137,13 @@
childern: [ childern: [
{ {
name: '杰出校友', name: '杰出校友',
isShow: false isShow: false,
path: '/alumni/outstanding'
}, },
{ {
name: '校友分享', name: '校友分享',
isShow: false isShow: false,
path: '/alumni/sharing'
} }
] ]
} }
......
...@@ -29,8 +29,15 @@ export default { ...@@ -29,8 +29,15 @@ export default {
methods: { methods: {
goDetail(item) { goDetail(item) {
if (item.source === '') { if (item.source === '') {
const path = this.$route.path
let routePath = ''
if (path.indexOf('alumni') > -1) {
routePath = '/alumni/detail'
} else {
routePath = this.$route.path.indexOf('hot') === -1 ? '/news/interview-detail' : '/news/hot-detail'
}
this.$router.push({ this.$router.push({
path: this.$route.path.indexOf('hot') === -1 ? '/news/interview-detail' : '/news/hot-detail', path: routePath,
query: { query: {
id: item.id id: item.id
} }
......
This source diff could not be displayed because it is too large. You can view the blob instead.
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论