Commit 2654119f by wangr

add

parent bc5a85cf
...@@ -38,9 +38,12 @@ ...@@ -38,9 +38,12 @@
<popup-frame <popup-frame
:visible.sync="showVisible" :visible.sync="showVisible"
@beforeClose="beforeCloses" @beforeClose="beforeCloses"
class="topic-frame"
> >
<div class="img"> <div class="img">
<img src="../../../static/images/index/supply-demand2.jpg" alt=""> <img src="../../../static/images/index/supply-demand1.jpg" alt="" v-show="topicShow">
<img src="../../../static/images/index/supply-demand2.jpg" alt="" v-show="!topicShow">
<div class="button" @click="topicChange"></div>
</div> </div>
</popup-frame> </popup-frame>
<div class="right-bottom"> <div class="right-bottom">
...@@ -227,7 +230,8 @@ export default { ...@@ -227,7 +230,8 @@ export default {
img: '../../../static/images/index/topic-bg1.png' img: '../../../static/images/index/topic-bg1.png'
} }
] ],
topicShow: true
} }
}, },
mounted () { mounted () {
...@@ -542,7 +546,12 @@ export default { ...@@ -542,7 +546,12 @@ export default {
// 关闭交流会/专题弹框弹框前的回调 // 关闭交流会/专题弹框弹框前的回调
beforeCloses (flag) { beforeCloses (flag) {
this.showVisible = flag this.showVisible = flag
},
// 交流会/专题弹框切换
topicChange () {
this.topicShow = !this.topicShow
} }
} }
} }
</script> </script>
...@@ -783,5 +792,21 @@ export default { ...@@ -783,5 +792,21 @@ export default {
} }
} }
} }
.topic-frame{
width: 100%;
height: 100%;
.img{
position: relative;
width: 100%;
height: 100%;
.button{
width: 50px;
height: 100px;
position: absolute;
top: 40%;
right: 10px;
}
}
}
} }
</style> </style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment