提交 256c9f86 authored 作者: 王鹏飞's avatar 王鹏飞

bug fixes

上级 b4343e5a
......@@ -24,9 +24,11 @@
@mouseenter="levelShow(level2Item)"
@mouseleave="levelShow(level2Item, 'out')"
>
<app-link :item="{
path: level2Item.path
}">
<app-link
:item="{
path: level2Item.path
}"
>
<div class="name">
{{ level2Item.name }}
</div>
......@@ -51,14 +53,14 @@ export default {
navData: [
{
name: '关于紫荆',
path: '/about-ezijing/introduce',
path: '/about/introduce',
childern: [
{ name: '紫荆简介', path: '/about-ezijing/introduce' },
{ name: '文化理念', path: '/about-ezijing/culture' },
{ name: '新闻中心', path: '/about-ezijing/news' },
{ name: '校长寄语', path: '/about-ezijing/message' },
{ name: '公开课', path: '/about-ezijing/lesson' },
{ name: '联系我们', path: '/about-ezijing/contact' }
{ name: '紫荆简介', path: '/about/introduce' },
{ name: '文化理念', path: '/about/culture' },
{ name: '新闻中心', path: '/about/news' },
{ name: '校长寄语', path: '/about/message' },
{ name: '公开课', path: '/about/lesson' },
{ name: '联系我们', path: '/about/contact' }
]
},
{
......@@ -110,7 +112,7 @@ export default {
{ name: '热点新闻', path: '/news/hot' },
{ name: '教授采访', path: '/news/interview' }
]
},
}
// {
// name: '招生信息',
// path: '/apply/relevant',
......
......@@ -4,7 +4,7 @@
<ul class="list-content">
<template v-for="(item, index) in listData">
<li :key="index">
<app-link :item="{ news: { data: item, path: '/about-ezijing/news' } }">
<app-link :item="{ news: { data: item, path: '/about/news' } }">
<img :src="item.web_img_uri" alt="" />
<div class="right-con">
<div class="time">{{ formatDate(item.start_time) }}</div>
......
......@@ -2,12 +2,14 @@
<ul class="tab-content">
<li
v-for="(item, index) in dataNav"
:class="item.pathActive.findIndex(path => {
return $route.path.includes(path)
}) !== -1 && 'active'"
:class="
item.pathActive.findIndex(path => {
return $route.path.includes(path)
}) !== -1 && 'active'
"
:key="index"
@click="goPage(item.goPath)"
>
>
{{ item.name }}
</li>
</ul>
......@@ -19,33 +21,33 @@ export default {
dataNav: [
{
name: '紫荆简介',
goPath: '/about-ezijing/introduce',
pathActive: ['/about-ezijing/introduce']
goPath: '/about/introduce',
pathActive: ['/about/introduce']
},
{
name: '文化理念',
goPath: '/about-ezijing/culture',
pathActive: ['/about-ezijing/culture']
goPath: '/about/culture',
pathActive: ['/about/culture']
},
{
name: '新闻中心',
goPath: '/about-ezijing/news',
pathActive: ['/about-ezijing/news', '/about-ezijing/news-detail']
goPath: '/about/news',
pathActive: ['/about/news', '/about/news-detail']
},
{
name: '校长寄语',
goPath: '/about-ezijing/message',
pathActive: ['/about-ezijing/message', '/about-ezijing/message-detail']
goPath: '/about/message',
pathActive: ['/about/message', '/about/message-detail']
},
{
name: '公开课',
goPath: '/about-ezijing/lesson',
pathActive: ['/about-ezijing/lesson', '/about-ezijing/lesson-detail']
goPath: '/about/lesson',
pathActive: ['/about/lesson', '/about/lesson-detail']
},
{
name: '联系我们',
goPath: '/about-ezijing/contact',
pathActive: ['/about-ezijing/contact']
goPath: '/about/contact',
pathActive: ['/about/contact']
}
// {
// name: '招聘信息',
......@@ -55,8 +57,7 @@ export default {
]
}
},
mounted() {
},
mounted() {},
methods: {
goPage(path) {
this.$router.push({
......@@ -67,14 +68,14 @@ export default {
}
</script>
<style lang="scss" scoped>
.tab-content{
.tab-content {
width: 160px;
// height: 420px;
height: fit-content;
background: #fff;
padding-top: 35px;
padding-bottom: 43px;
li{
li {
position: relative;
width: 100%;
font-size: 22px;
......@@ -83,12 +84,12 @@ export default {
color: #777777;
margin-bottom: 60px;
cursor: pointer;
&:last-child{
&:last-child {
margin: 0;
}
&.active{
&.active {
color: rgba(170, 25, 65, 1);
&::after{
&::after {
content: '';
width: 8px;
height: 40px;
......@@ -100,4 +101,4 @@ export default {
}
}
}
</style>
\ No newline at end of file
</style>
......@@ -5,10 +5,7 @@
<div class="line"></div>
<div class="text">校长寄语</div>
</div>
<div
class="right-text"
@click="$router.push({ path: '/about-ezijing/message', query: { type: 'img_text_school' } })"
>
<div class="right-text" @click="$router.push({ path: '/about/message', query: { type: 'img_text_school' } })">
查看更多+
</div>
</div>
......
......@@ -5,8 +5,8 @@
</div>
</template>
<script>
import tab from '../../components/about-ezijing/tabNav'
import contactContent from '../../components/about-ezijing/contact'
import tab from '../../components/about/tabNav'
import contactContent from '../../components/about/contact'
export default {
layout: 'normal',
components: {
......@@ -16,7 +16,7 @@ export default {
}
</script>
<style lang="scss" scoped>
.news-content{
.news-content {
width: 1200px;
margin: 0 auto;
padding-top: 63px;
......
......@@ -5,8 +5,8 @@
</div>
</template>
<script>
import tab from '../../components/about-ezijing/tabNav'
import cultureContent from '../../components/about-ezijing/culture'
import tab from '../../components/about/tabNav'
import cultureContent from '../../components/about/culture'
export default {
layout: 'normal',
components: {
......@@ -16,7 +16,7 @@ export default {
}
</script>
<style lang="scss" scoped>
.culture-content{
.culture-content {
width: 1200px;
margin: 0 auto;
padding-top: 63px;
......
......@@ -5,8 +5,8 @@
</div>
</template>
<script>
import tab from '../../components/about-ezijing/tabNav'
import intrContent from '../../components/about-ezijing/introduce'
import tab from '../../components/about/tabNav'
import intrContent from '../../components/about/introduce'
export default {
layout: 'normal',
components: {
......@@ -16,7 +16,7 @@ export default {
}
</script>
<style lang="scss" scoped>
.intr-content{
.intr-content {
width: 1200px;
margin: 0 auto;
padding-top: 63px;
......
......@@ -28,7 +28,7 @@
</div>
</template>
<script>
import tab from '@/components/about-ezijing/tabNav'
import tab from '@/components/about/tabNav'
export default {
layout: 'normal',
components: {
......
......@@ -6,7 +6,7 @@
<ul class="list-content">
<template v-for="(item, index) in listData">
<li :key="index">
<app-link :item="{ news: { data: item, path: '/about-ezijing/lesson' } }">
<app-link :item="{ news: { data: item, path: '/about/lesson' } }">
<img :src="item.web_img_uri" alt="" />
<div class="right-con">
<div class="time">{{ formatDate(item.start_time) }}</div>
......@@ -31,7 +31,7 @@
</template>
<script>
import appLink from '@/components/Link'
import tab from '@/components/about-ezijing/tabNav'
import tab from '@/components/about/tabNav'
export default {
layout: 'normal',
components: { tab, appLink },
......
......@@ -28,7 +28,7 @@
</div>
</template>
<script>
import tab from '@/components/about-ezijing/tabNav'
import tab from '@/components/about/tabNav'
export default {
layout: 'normal',
components: {
......
......@@ -6,7 +6,7 @@
<ul class="list-content">
<template v-for="(item, index) in listData">
<li :key="index">
<app-link :item="{ news: { data: item, path: '/about-ezijing/message' } }">
<app-link :item="{ news: { data: item, path: '/about/message' } }">
<img :src="item.web_img_uri" alt="" />
<div class="right-con">
<div class="time">{{ formatDate(item.start_time) }}</div>
......@@ -31,7 +31,7 @@
</template>
<script>
import appLink from '@/components/Link'
import tab from '@/components/about-ezijing/tabNav'
import tab from '@/components/about/tabNav'
export default {
layout: 'normal',
components: { tab, appLink },
......
......@@ -28,7 +28,7 @@
</div>
</template>
<script>
import tab from '@/components/about-ezijing/tabNav'
import tab from '@/components/about/tabNav'
export default {
layout: 'normal',
components: {
......
<template>
<div class="news-content">
<tab />
<new-list :type="type"/>
<new-list :type="type" />
</div>
</template>
<script>
import tab from '@/components/about-ezijing/tabNav'
import newList from '@/components/about-ezijing/newList'
import tab from '@/components/about/tabNav'
import newList from '@/components/about/newList'
export default {
layout: 'normal',
components: { tab, newList },
......@@ -23,12 +23,11 @@ export default {
return this.$route.query.type
}
},
methods: {
}
methods: {}
}
</script>
<style lang="scss" scoped>
.pages-box{
.pages-box {
display: flex;
padding-bottom: 50px;
background: #fff;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论