From 3d4b8c0b47bf4d908b966ba8dbcb7b2c442963d1 Mon Sep 17 00:00:00 2001
From: zhaofang <752743406@qq.com>
Date: Thu, 3 Nov 2022 16:01:52 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/Portal/guideBox.vue | 23 +++++++++++++++++++++--
1 file changed, 21 insertions(+), 2 deletions(-)
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() {