提交 4648ac4c authored 作者: lihuihui's avatar lihuihui

优化

上级 19c32424
......@@ -3,11 +3,9 @@
<div class="color-bar"></div>
<div class="head-top-content">
<div class="max-width-content">
<img
src="https://zws-imgs-pub.ezijing.com/static/public/307f688850f8308a5c944bd129436fe0.png"
alt=""
@click="goPage('/')"
/>
<app-link :item="{ path: '/' }">
<img src="https://zws-imgs-pub.ezijing.com/static/public/307f688850f8308a5c944bd129436fe0.png"/>
</app-link>
<div class="user" v-if="user.id">
<span>{{ user.realname }}</span
><em>|</em><span class="logout" @click="logout">退出</span>
......@@ -44,14 +42,26 @@
@mouseenter="levelShow(level2Item)"
@mouseleave="levelShow(level2Item, 'out')"
>
<div @click="goPage(level2Item.path, level2Item.pathType)" class="name">
<template v-if="level2Item.pathType === 3">
<div @click="$message('暂未开通,尽请期待')" class="name">
{{ level2Item.name }}
</div>
<div class="el-icon-arrow-right" v-if="level2Item.childern"></div>
</template>
<template v-else>
<app-link :item="{
path: level2Item.path
}">
<div class="name">
{{ level2Item.name }}
</div>
<div class="el-icon-arrow-right" v-if="level2Item.childern"></div>
</app-link>
</template>
</div>
<template v-for="(level2Item, level2Index) in item.childern">
</template>
</div>
<!-- <template v-for="(level2Item, level2Index) in item.childern">
<div
class="two-level"
:key="level2Index + 'two-level2'"
......@@ -68,7 +78,7 @@
{{ level3Item.name }}
</div>
</div>
</template>
</template> -->
</div>
</li>
</template>
......@@ -78,7 +88,11 @@
</div>
</template>
<script>
import AppLink from '@/components/Link'
export default {
components: {
AppLink
},
data() {
return {
navData: [
......@@ -88,17 +102,14 @@ export default {
childern: [
{
name: '项目背景',
isShow: false,
path: '/project-intro/bg'
},
{
name: '项目特色',
isShow: false,
path: '/project-intro/charac'
},
{
name: '证书授予',
isShow: false,
path: '/project-intro/certificate'
}
]
......@@ -109,12 +120,10 @@ export default {
childern: [
{
name: '课程设置',
isShow: false,
path: '/about/course'
},
{
name: '师资力量',
isShow: false,
path: '/about/teacher'
}
]
......@@ -125,12 +134,10 @@ export default {
childern: [
{
name: '热点新闻',
isShow: false,
path: '/news/hot'
},
{
name: '教授采访',
isShow: false,
path: '/news/interview'
}
]
......@@ -141,17 +148,14 @@ export default {
childern: [
{
name: '有关申请',
isShow: false,
path: '/apply/relevant'
},
{
name: '费用资助',
isShow: false,
path: '/apply/support'
},
{
name: '常见问题',
isShow: false,
path: '/apply/problem'
}
]
......@@ -162,12 +166,10 @@ export default {
childern: [
{
name: '杰出校友',
isShow: false,
path: '/alumni/outstanding'
},
{
name: '校友分享',
isShow: false,
path: '/alumni/sharing'
}
]
......
......@@ -8,6 +8,12 @@
<slot />
</nuxt-link>
</template>
<template v-else>
<nuxt-link
:to="item.path">
<slot />
</nuxt-link>
</template>
</div>
</template>
......
......@@ -2,7 +2,7 @@
<div class="common-content-box">
<m-title :data="titleParams" class="m-title"/>
<div class="content-mian">
<nuxt-link to="/apply/problem">
<app-link :item="{ path: '/news/hot' }">
<div class="list-box">
<ul>
<li>
......@@ -49,7 +49,7 @@
</li>
</ul>
</div>
</nuxt-link>
</app-link>
<div class="msg-box">
<el-input
type="textarea"
......@@ -63,11 +63,13 @@
</template>
<script>
import mTitle from '../../components/home/moduleTitle'
import mTitle from '@/components/home/moduleTitle'
import AppLink from '@/components/Link'
export default {
name: 'commonProblem',
components: {
mTitle
mTitle,
AppLink
},
data () {
return {
......
......@@ -34,7 +34,7 @@
</div>
</template>
<script>
import mTitle from '../../components/home/moduleTitle'
import mTitle from '@/components/home/moduleTitle'
import AppLink from '@/components/Link'
export default {
name: 'news',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论