mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-13 04:46:44 +08:00
提交
This commit is contained in:
@@ -15,6 +15,14 @@
|
|||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
<div class="gui-box-right">
|
<div class="gui-box-right">
|
||||||
|
<div id="container" style="z-index:99;" >
|
||||||
|
<!-- 当轮播图等于一张时 -->
|
||||||
|
<swiper :options="swiperOptiontwo" v-if="resonimgTow.length">
|
||||||
|
<swiper-slide style="margin: 0 auto;" v-for="(item , idx ) in resonimgTow" :key="'a'+idx" class="swiper-slide games">
|
||||||
|
<img class="banner-img" style=" margin: 0 auto;" :src=" fileBaseUrl + item.img" alt="">
|
||||||
|
</swiper-slide>
|
||||||
|
</swiper>
|
||||||
|
</div>
|
||||||
<div id="guideBox" style="z-index:99;">
|
<div id="guideBox" style="z-index:99;">
|
||||||
<swiper :options="swiperOption" ref="mySwiper" v-if="resonimg.length">
|
<swiper :options="swiperOption" ref="mySwiper" v-if="resonimg.length">
|
||||||
<swiper-slide style="margin: 0 auto;" v-for="(item, idx ) in resonimg" :key="item.id" class="swiper-slide games">
|
<swiper-slide style="margin: 0 auto;" v-for="(item, idx ) in resonimg" :key="item.id" class="swiper-slide games">
|
||||||
@@ -52,9 +60,14 @@
|
|||||||
guideCollection:false,// 兴趣采集
|
guideCollection:false,// 兴趣采集
|
||||||
guideList:[],
|
guideList:[],
|
||||||
resonimg:[],
|
resonimg:[],
|
||||||
|
resonimgTow:[],
|
||||||
|
swiperOptiontwo: {
|
||||||
|
autoplay: false,
|
||||||
|
// noSwiping: true,
|
||||||
|
},
|
||||||
swiperOption: {
|
swiperOption: {
|
||||||
autoplay: {
|
autoplay: {
|
||||||
disableOnInteraction: false ,
|
disableOnInteraction: false,
|
||||||
delay: 2000,
|
delay: 2000,
|
||||||
},
|
},
|
||||||
speed: 2000, //切换速度,即slider自动滑动开始到结束的时间(单位ms)
|
speed: 2000, //切换速度,即slider自动滑动开始到结束的时间(单位ms)
|
||||||
@@ -131,9 +144,15 @@
|
|||||||
|
|
||||||
showImg(item) {
|
showImg(item) {
|
||||||
this.resonimg = [];
|
this.resonimg = [];
|
||||||
|
this.resonimgTow = [];
|
||||||
if(item){
|
if(item){
|
||||||
this.description = item.description;
|
this.description = item.description;
|
||||||
this.resonimg = item.images;
|
if(item.images.length > 1) {
|
||||||
|
this.resonimg = item.images;
|
||||||
|
} else {
|
||||||
|
this.resonimgTow = item.images;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
notYet() {
|
notYet() {
|
||||||
|
|||||||
Reference in New Issue
Block a user