diff --git a/src/components/Portal/guideBox.vue b/src/components/Portal/guideBox.vue index 839eefab..b0113d75 100644 --- a/src/components/Portal/guideBox.vue +++ b/src/components/Portal/guideBox.vue @@ -15,6 +15,14 @@
+
+ + + + + + +
@@ -52,9 +60,14 @@ guideCollection:false,// 兴趣采集 guideList:[], resonimg:[], + resonimgTow:[], + swiperOptiontwo: { + autoplay: false, + // noSwiping: true, + }, swiperOption: { autoplay: { - disableOnInteraction: false , + disableOnInteraction: false, delay: 2000, }, speed: 2000, //切换速度,即slider自动滑动开始到结束的时间(单位ms) @@ -131,9 +144,15 @@ showImg(item) { this.resonimg = []; + this.resonimgTow = []; if(item){ this.description = item.description; - this.resonimg = item.images; + if(item.images.length > 1) { + this.resonimg = item.images; + } else { + this.resonimgTow = item.images; + } + } }, notYet() {