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 @@