提交 f922c3e2 authored 作者: matian's avatar matian

Merge remote-tracking branch 'origin/marywood-plus' into marywood-plus

...@@ -85,34 +85,35 @@ ...@@ -85,34 +85,35 @@
</div> </div>
<div class="h5-content"> <div class="h5-content">
<div class="h5-title">玛丽伍德大学介绍</div> <div class="h5-title">玛丽伍德大学介绍</div>
<img src="https://webapp-pub.ezijing.com/project/marywood/h5/school-img1.png" alt=""> <img src="https://webapp-pub.ezijing.com/project/marywood/h5/school-img1.png" alt="" />
<div class="h5-title m-t-10">专业介绍</div> <div class="h5-title m-t-10">专业介绍</div>
<img src="https://webapp-pub.ezijing.com/project/marywood/h5/school-img2.png" alt=""> <img src="https://webapp-pub.ezijing.com/project/marywood/h5/school-img2.png" alt="" />
<div class="h5-title m-t-10">合作院校</div> <div class="h5-title m-t-10">合作院校</div>
<img src="https://webapp-pub.ezijing.com/project/marywood/h5/school-img3.png" alt=""> <img src="https://webapp-pub.ezijing.com/project/marywood/h5/school-img3.png" alt="" />
<div class="h5-title m-t-10">申请条件</div> <div class="h5-title m-t-10">申请条件</div>
<div class="h5-list"> <div class="h5-list">
<img src="https://webapp-pub.ezijing.com/project/marywood/h5/school-img4.png" alt=""> <img src="https://webapp-pub.ezijing.com/project/marywood/h5/school-img4.png" alt="" />
<img src="https://webapp-pub.ezijing.com/project/marywood/h5/school-img5.png" alt=""> <img src="https://webapp-pub.ezijing.com/project/marywood/h5/school-img5.png" alt="" />
<img src="https://webapp-pub.ezijing.com/project/marywood/h5/school-img6.png" alt=""> <img src="https://webapp-pub.ezijing.com/project/marywood/h5/school-img6.png" alt="" />
</div> </div>
<div class="h5-title m-t-10">学制安排</div> <div class="h5-title m-t-10">学制安排</div>
<div class="img-list"> <div class="img-list">
<img src="https://webapp-pub.ezijing.com/project/marywood/h5/school-nimg1.png" alt=""> <img src="https://webapp-pub.ezijing.com/project/marywood/h5/school-nimg1.png" alt="" />
<img src="https://webapp-pub.ezijing.com/project/marywood/h5/school-nimg2.png" alt=""> <img src="https://webapp-pub.ezijing.com/project/marywood/h5/school-nimg2.png" alt="" />
<img src="https://webapp-pub.ezijing.com/project/marywood/h5/school-nimg3.png" alt=""> <img src="https://webapp-pub.ezijing.com/project/marywood/h5/school-nimg3.png" alt="" />
<img src="https://webapp-pub.ezijing.com/project/marywood/h5/school-nimg4.png" alt=""> <img src="https://webapp-pub.ezijing.com/project/marywood/h5/school-nimg4.png" alt="" />
</div> </div>
<div class="h5-title m-t-10">课程设置</div> <div class="h5-title m-t-10">课程设置</div>
<img src="https://webapp-pub.ezijing.com/project/marywood/h5/school-img7.png" alt=""> <img src="https://webapp-pub.ezijing.com/project/marywood/h5/school-img7.png" alt="" />
<div class="h5-title m-t-10">校园风光</div> <div class="h5-title m-t-10">校园风光</div>
<div class="swiper-content" @mouseenter="swiperStop" @mouseleave="swiperStart"> <div class="swiper-content" @mouseenter="swiperStop" @mouseleave="swiperStart">
<div v-swiper:mySwiper="swiperOption" ref="mySwiper"> <div v-swiper:mySwiper="swiperOption2" ref="mySwiper">
<div class="swiper-wrapper"> <div class="swiper-wrapper">
<div class="swiper-slide" v-for="(item, index) in listDataH5" :key="index"> <div class="swiper-slide" v-for="(item, index) in listDataH5" :key="index">
<img :src="item.web_img_uri" /> <img :src="item.web_img_uri" />
</div> </div>
</div> </div>
<div class="swiper-pagination"></div>
</div> </div>
</div> </div>
</div> </div>
...@@ -120,6 +121,7 @@ ...@@ -120,6 +121,7 @@
</div> </div>
</template> </template>
<script> <script>
import 'swiper/css/swiper.css'
export default { export default {
layout: 'normal', layout: 'normal',
data() { data() {
...@@ -156,6 +158,25 @@ export default { ...@@ -156,6 +158,25 @@ export default {
_this.swiper.slideNext() _this.swiper.slideNext()
} }
} }
},
swiperOption2: {
observer: true,
observeParents: true,
speed: 400,
autoplay: true,
delay: 3000,
loop: true,
slidesPerView: 'auto',
centeredSlides: true,
spaceBetween: 20,
pagination: {
el: '.swiper-pagination'
},
on: {
init() {
_this.swiper.slideNext()
}
}
} }
// frameParams: { // frameParams: {
// banner: 'https://webapp-pub.ezijing.com/project/marywood/mary_banner_nx4.jpg', // banner: 'https://webapp-pub.ezijing.com/project/marywood/mary_banner_nx4.jpg',
...@@ -374,47 +395,51 @@ export default { ...@@ -374,47 +395,51 @@ export default {
} }
} }
.is-h5 { .is-h5 {
.banner{ .banner {
img{ img {
width: 100%; width: 100%;
display: block; display: block;
} }
} }
.h5-content{ .h5-content {
padding: 0 .15rem; padding: 0 0.15rem;
img{ img {
width: 100%; width: 100%;
display: block; display: block;
} }
.h5-title{ .h5-title {
font-size: .14rem; font-size: 0.14rem;
font-weight: bold; font-weight: bold;
color: #424242; color: #424242;
line-height: .36rem; line-height: 0.36rem;
&.m-t-10{ &.m-t-10 {
margin-top: .1rem; margin-top: 0.1rem;
} }
} }
.h5-list{ .h5-list {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
img{ img {
width: 1.08rem; width: 1.08rem;
display: block; display: block;
} }
} }
.img-list{ .img-list {
overflow-x: scroll; overflow-x: scroll;
display: flex; display: flex;
img{ img {
width: 1.46rem; width: 1.46rem;
margin-right: .05rem; margin-right: 0.05rem;
} }
} }
.swiper-content{ .swiper-content {
padding-bottom: .5rem; padding-bottom: 0.5rem;
} }
} }
} }
::v-deep{
.swiper-pagination-bullet-active{
background: #fff;
}
}
</style> </style>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论