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 } }); } } } 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) })