|
@@ -43,11 +43,15 @@
|
|
|
</div>
|
|
|
<div class="swiper-pagination"></div>
|
|
|
</div> -->
|
|
|
-
|
|
|
+ <div @click='prev'
|
|
|
+ class="prev"></div>
|
|
|
+ <div @click='next'
|
|
|
+ class="next"></div>
|
|
|
<el-carousel :interval="4000"
|
|
|
type="card"
|
|
|
height="400px"
|
|
|
- arrow="always"
|
|
|
+ arrow="never"
|
|
|
+ ref="carousel"
|
|
|
indicator-position="none">
|
|
|
<el-carousel-item>
|
|
|
<div class="textItem"
|
|
@@ -178,6 +182,12 @@ export default {
|
|
|
});
|
|
|
window.open(newpage.href, '_blank');
|
|
|
},
|
|
|
+ prev () {
|
|
|
+ this.$refs.carousel.prev();
|
|
|
+ },
|
|
|
+ next () {
|
|
|
+ this.$refs.carousel.next();
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
@@ -206,6 +216,7 @@ export default {
|
|
|
}
|
|
|
.maskCore {
|
|
|
width: 740px;
|
|
|
+ position: relative;
|
|
|
// width: 1150px;
|
|
|
.textItem {
|
|
|
width: 369px;
|
|
@@ -234,6 +245,35 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ .prev {
|
|
|
+ position: absolute;
|
|
|
+ width: 40px;
|
|
|
+ height: 40px;
|
|
|
+ background: url("../images/arrow.png") no-repeat center;
|
|
|
+ background-size: 40px 40px;
|
|
|
+ left: -115px;
|
|
|
+ top: 190px;
|
|
|
+ transform: rotate(180deg);
|
|
|
+ cursor: pointer;
|
|
|
+ &:hover {
|
|
|
+ background: url("../images/active-arrow.png") no-repeat center;
|
|
|
+ background-size: 40px 40px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .next {
|
|
|
+ cursor: pointer;
|
|
|
+ position: absolute;
|
|
|
+ width: 40px;
|
|
|
+ height: 40px;
|
|
|
+ background: url("../images/arrow.png") no-repeat center;
|
|
|
+ background-size: 40px 40px;
|
|
|
+ right: -115px;
|
|
|
+ top: 190px;
|
|
|
+ &:hover {
|
|
|
+ background: url("../images/active-arrow.png") no-repeat center;
|
|
|
+ background-size: 40px 40px;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|