diff --git a/src/components/swiper-banner.vue b/src/components/swiper-banner.vue index 22e8529..8edb782 100644 --- a/src/components/swiper-banner.vue +++ b/src/components/swiper-banner.vue @@ -12,7 +12,7 @@ next-margin ="15px"> -
+
@@ -48,8 +48,8 @@ export default { console.log(e.mp.detail.current) this.activeIndex = e.mp.detail.current }, - goToInfo (id) { - this.$emit('navigateTo', id) + goToInfo (course) { + this.$emit('navigateTo', course) } } } diff --git a/src/pages/searchCourse/index.vue b/src/pages/searchCourse/index.vue index 7d6bf89..818c215 100644 --- a/src/pages/searchCourse/index.vue +++ b/src/pages/searchCourse/index.vue @@ -15,6 +15,7 @@

相关课程

+
暂无相关课程
@@ -32,7 +33,8 @@ export default { return { keywords: '', hots: ['react.js', 'go', '小程序', 'php', 'vue.js', 'python', '人工智能', '区块链'], - courseList: [] + courseList: [], + noneCourse: false } }, computed: { @@ -67,6 +69,7 @@ export default { _getCourseList (data) { this.$http.course.getCourseList(data).then(res => { this.courseList = res.data + this.noneCourse = !(res.data.length > 0) }) } }, diff --git a/src/pages/tabBar/course/index.vue b/src/pages/tabBar/course/index.vue index 9b5c6e0..0129373 100644 --- a/src/pages/tabBar/course/index.vue +++ b/src/pages/tabBar/course/index.vue @@ -1,7 +1,7 @@