提交 0a1c2571 authored 作者: lihuihui's avatar lihuihui

修改泽亚需求

上级 16207ef2
......@@ -23,7 +23,7 @@
</p>
</div>
<div class="qrcode">
<img src="https://zws-imgs-pub.ezijing.com/static/public/29ce10d35376f24ae1ecaccd57215d5c.jpg" alt="" />
<img src="https://zws-imgs-pub.ezijing.com/static/public/92e73e025fc61006e258c81b5fbd29cf.png" alt="" />
<p>扫二维码关注官方微信</p>
<p>微信公众号zijingedu</p>
</div>
......
......@@ -41,9 +41,9 @@ export default {
},
methods: {
tab(index, title) {
if(this.$route.path === '/presence' && title === '学生风采') {
this.$router.push({ path: '/index' })
}
// if(this.$route.path === '/presence' && title === '学生风采') {
// this.$router.push({ path: '/index' })
// }
this.activeIndex = index
this.$emit('changeTab', this.activeIndex)
}
......
<template>
<div>
<banner-tab
:data="bannerTabData"
@changeTab="changeTab"
></banner-tab>
<banner-tab :data="bannerTabData" @changeTab="changeTab"></banner-tab>
<div class="pre-mian center97">
<div class="list-box">
<list :data="listData[0]" v-if="activeIndex == 0"></list>
<list :data="listData[1]" v-if="activeIndex == 1"></list>
</div>
<img src="https://zws-imgs-pub.ezijing.com/static/public/d92feb882caacd44d18f05c996494f14.png" alt="">
<img src="https://zws-imgs-pub.ezijing.com/static/public/b998e6153f6814da345834d585fe28b7.png" alt="" />
</div>
</div>
</template>
......@@ -38,7 +35,7 @@ export default {
listData: {
0: [],
1: []
}
},
}
},
mounted() {
......@@ -54,39 +51,45 @@ export default {
this.request(index)
this.activeIndex = index
},
request() {
cAction.reportAction.getNews(this.requestParam).then(json => {
if (Array.isArray(json)) {
json.length && (this.listData[n] = json)
console.log(this.listData)
}
}).catch(e => { this.$message.error(e.message) }).finally(() => {})
request(n) {
cAction.reportAction
.getNews(this.requestParam)
.then(json => {
if (Array.isArray(json)) {
json.length && (this.listData[n] = json)
console.log(this.listData)
}
})
.catch(e => {
this.$message.error(e.message)
})
.finally(() => {})
}
},
}
}
</script>
<style lang="scss" scoped>
.list-box{
.list-box {
width: 700px;
}
.pre-mian{
.pre-mian {
padding: 30px 0 60px;
display: flex;
img{
img {
width: 235px;
height: 300px;
margin-left: auto;
}
}
.cont-mian{
.module{
.cont-mian {
.module {
padding-top: 30px;
padding-bottom: 60px;
display: flex;
.left-txt{
.left-txt {
width: 670px;
}
img{
img {
margin-left: auto;
// display: block;
width: 235px;
......@@ -94,24 +97,24 @@ export default {
}
}
}
.center97{
.center97 {
width: 970px;
margin: 0 auto;
}
.top-nav{
.center97{
.top-nav {
.center97 {
position: relative;
}
img{
img {
width: 100%;
display: block;
}
.menu{
.menu {
position: absolute;
bottom: 0;
left: 0;
display: flex;
li{
li {
width: 128px;
line-height: 36px;
text-align: center;
......@@ -119,10 +122,10 @@ export default {
font-size: 16px;
margin-right: 2px;
cursor: pointer;
background: #BF0927;
&.active{
background: #bf0927;
&.active {
background: #fff;
color: #C70025;
color: #c70025;
}
}
}
......
......@@ -78,11 +78,11 @@ export default {
const requestType = [
{
name: '宣讲会实录',
image: 'https://zws-imgs-pub.ezijing.com/static/public/09a620add2643574f9f0de4424db5ebe.png'
image: 'https://zws-imgs-pub.ezijing.com/static/public/00abb483689fd950cbf17ac6155346e8.png'
},
{
name: '项目介绍',
image: 'https://zws-imgs-pub.ezijing.com/static/public/09a620add2643574f9f0de4424db5ebe.png'
image: 'https://zws-imgs-pub.ezijing.com/static/public/00abb483689fd950cbf17ac6155346e8.png'
}
]
requestType.map((item, index) => {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论