mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 19:36:43 +08:00
提交
This commit is contained in:
@@ -17,13 +17,13 @@
|
||||
<div class="gui-box-right">
|
||||
<div id="container" style="z-index:99;" >
|
||||
<!-- 当轮播图等于一张时 -->
|
||||
<swiper :options="swiperOptiontwo" v-if="resonimgTow.length">
|
||||
<swiper :options="swiperOptiontwo" ref="mySwiper" 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;" v-if="resonimg.length > 1">
|
||||
<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">
|
||||
<img class="banner-img" style=" margin: 0 auto;" :src="fileBaseUrl + item.img" alt="">
|
||||
@@ -71,8 +71,8 @@
|
||||
delay: 2000,
|
||||
},
|
||||
speed: 2000, //切换速度,即slider自动滑动开始到结束的时间(单位ms)
|
||||
loop:true, //循环切换
|
||||
observe:true,
|
||||
initialSlide:1,
|
||||
loop:false, //循环切换
|
||||
peed: 300,//循环速度
|
||||
scrollbar: '.swiper-scrollbar',
|
||||
pagination: {
|
||||
@@ -90,7 +90,6 @@
|
||||
created() {
|
||||
//这里的以后要去掉的,不应该是这样计算的
|
||||
let width = document.body.clientWidth;
|
||||
console.log(width,'width');
|
||||
if(width > 1921) {
|
||||
this.dlgWidth = '1088px';
|
||||
this.leftWidth='220px';
|
||||
@@ -121,6 +120,7 @@
|
||||
},
|
||||
mounted() {
|
||||
this.getlist();
|
||||
// this.swiper.slideTo(3,2000,false);
|
||||
},
|
||||
methods:{
|
||||
show(){
|
||||
@@ -152,7 +152,6 @@
|
||||
} else {
|
||||
this.resonimgTow = item.images;
|
||||
}
|
||||
|
||||
}
|
||||
},
|
||||
notYet() {
|
||||
|
||||
Reference in New Issue
Block a user