From 1a5510425659bda7ab6781f6ded02df497629343 Mon Sep 17 00:00:00 2001
From: zhaofang <752743406@qq.com>
Date: Tue, 25 Oct 2022 15:44:09 +0800
Subject: [PATCH 1/2] =?UTF-8?q?10.23=20=E9=A6=96=E9=A1=B5=20-=20Banner?=
=?UTF-8?q?=E8=BD=AE=E6=92=AD=E5=9B=BE=E4=B8=80=E5=BC=A0=E5=9B=BE=E4=B8=8D?=
=?UTF-8?q?=E6=89=A7=E8=A1=8C=E8=87=AA=E5=8A=A8=E5=88=87=E6=8D=A2=E9=80=BB?=
=?UTF-8?q?=E8=BE=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/Index.vue | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/src/views/Index.vue b/src/views/Index.vue
index 869b81bc..6ea849d3 100644
--- a/src/views/Index.vue
+++ b/src/views/Index.vue
@@ -4,12 +4,12 @@
-
+
-
+
@@ -478,6 +478,7 @@
disableOnInteraction: false,
delay: 2000,
},
+ noSwiping: true,
speed: 3000, //切换速度,即slider自动滑动开始到结束的时间(单位ms)
loop: true, //循环切换
peed: 300, //循环速度
@@ -679,6 +680,13 @@
let key = 'index';
apiPlace.detail(key).then(res => {
let lmj = JSON.parse(res.result.content)
+ if(this.resonimg.length < 1) {
+ this.swiperOption.autoplay = false;
+ this.swiperOption.loop = false;
+ this.swiperOption.speed = 0;
+ this.swiperOption.peed = 0;
+ this.swiperOption.freeMode = false;
+ }
this.resonimg = lmj
// console.log(this.resonimg)
})
From 38a6aefe958c1135217785b0abbe41470e32d23b Mon Sep 17 00:00:00 2001
From: zhaofang <752743406@qq.com>
Date: Tue, 25 Oct 2022 17:03:02 +0800
Subject: [PATCH 2/2] =?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/HomePage/courseList.vue | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/components/HomePage/courseList.vue b/src/components/HomePage/courseList.vue
index 9323e0db..e6a4baca 100644
--- a/src/components/HomePage/courseList.vue
+++ b/src/components/HomePage/courseList.vue
@@ -84,10 +84,10 @@
this.$emit('hideIndex',id)
},
jumpDetail(data) {
- if(!data.id){
+ if(!data.courseId){
return;
}
- this.$router.push({ path: '/course/detail?id=', query: { id: data.id } });
+ this.$router.push({ path: '/course/detail?id=', query: { id: data.courseId } });
}
}
}