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

修改泽亚需求

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