diff --git a/src/api/boguApi.js b/src/api/boguApi.js new file mode 100644 index 0000000..b3dec00 --- /dev/null +++ b/src/api/boguApi.js @@ -0,0 +1,10 @@ +import service from "./indexApi"; +const boguApi = { + selectBogu(queryType){ + //查询首页的数据 + return service.post('/api/show/getShowList', {queryType: queryType}); + } + +} + +export default boguApi; \ No newline at end of file diff --git a/src/api/homeApi.js b/src/api/homeApi.js index ea235b1..1cae610 100644 --- a/src/api/homeApi.js +++ b/src/api/homeApi.js @@ -1,9 +1,8 @@ - import service from "./indexApi"; const homeApi = { - selectHome(queryType){ + selectHome(){ //查询首页的数据 - return service.post('/api/show/getShowList', {queryType: queryType}); + return service.post('/api/show/getShowList'); } } diff --git a/src/api/indexApi.js b/src/api/indexApi.js index ade75c2..b1eab30 100644 --- a/src/api/indexApi.js +++ b/src/api/indexApi.js @@ -6,4 +6,4 @@ const service = axios.create({ responseType: "json", }); -export default service; +export default service; \ No newline at end of file diff --git a/src/api/zhiboApi.js b/src/api/zhiboApi.js new file mode 100644 index 0000000..25009f2 --- /dev/null +++ b/src/api/zhiboApi.js @@ -0,0 +1,10 @@ +import service from "./indexApi"; +const zhiboApi = { + selectZhibo(queryType){ + //查询首页的数据 + return service.post('/api/live/getLiveList', {queryType: queryType}); + } + +} + +export default zhiboApi; \ No newline at end of file diff --git a/src/views/ClubView.vue b/src/views/ClubView.vue index ef8d62d..fcc5eba 100644 --- a/src/views/ClubView.vue +++ b/src/views/ClubView.vue @@ -25,9 +25,9 @@
-
+
- Video Thumbnail + Video Thumbnail
@@ -45,19 +45,19 @@ HomilyLink
- {{ video.date }} + {{ videos.publishTime }}
Views - {{ video.views }} + {{ videos.viewCount }}
Comments - {{ video.comments }} + {{ videos.commentCount }}
- +
@@ -77,108 +77,156 @@
+ + + + + + + \ No newline at end of file diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index 9134e7b..190c446 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -4,16 +4,16 @@
推荐
- - + +
- 视频缩略图 + 视频缩略图
{{ video.title }}
-
+
- - {{ video.publisherName }} {{ video.publishTime }} + + {{ video.author }} {{ video.time }}
@@ -24,9 +24,9 @@ - {{ video.likeCount }} + {{ video.likes }} - {{ video.commentCount }} + {{ video.comments }}
@@ -41,16 +41,16 @@
- 视频缩略图 + 视频缩略图
{{ video.title }}
- + - {{ video.viewCount }} - {{ video.publishTime }} + {{ video.views }} + {{ video.time }}
@@ -65,172 +65,134 @@