diff --git a/vueHomilyLink/src/api/ClubApi.js b/vueHomilyLink/src/api/ClubApi.js new file mode 100644 index 0000000..b24d79b --- /dev/null +++ b/vueHomilyLink/src/api/ClubApi.js @@ -0,0 +1,23 @@ +import service from "."; + +const ClubApi = { + getClub(id){ + return service.get( + '/clubpage/get-club',{ + params: { + id: id + } + } + ); + }, + getShows(id){ + return service.get( + '/clubpage/get-club-shows',{ + params: { + id: id + } + } + ) + } +} +export default ClubApi; \ No newline at end of file diff --git a/vueHomilyLink/src/components/ClubNav.vue b/vueHomilyLink/src/components/ClubNav.vue new file mode 100644 index 0000000..86a972a --- /dev/null +++ b/vueHomilyLink/src/components/ClubNav.vue @@ -0,0 +1,56 @@ + + + + + + 博股俱乐部 + 牧民俱乐部 + 神枪手俱乐部 + + + + + \ No newline at end of file diff --git a/vueHomilyLink/src/router/index.js b/vueHomilyLink/src/router/index.js index 02c22e7..18beaa8 100644 --- a/vueHomilyLink/src/router/index.js +++ b/vueHomilyLink/src/router/index.js @@ -1,8 +1,10 @@ import { createRouter, createWebHistory } from 'vue-router' import HomeView from '../views/HomeView.vue' -import ClubView from '@/views/ClubView.vue' import ChannelView from '@/views/ChannelView.vue' import LiveView from '@/views/LiveView.vue' +import BoguView from '@/views/club/BoguView.vue' +import MuminView from '@/views/club/MuminView.vue' +import ShenQiang from '@/views/club/shenQiang.vue' //创建路由对象 const router = createRouter({ @@ -14,12 +16,22 @@ const router = createRouter({ component: HomeView, }, { - path: '/club', - name: 'club', - component: ClubView, + path: '/bogu', + name: 'bogu', + component: BoguView, }, { - path: '/channel/:id?', + path: '/mumin', + name: 'mumin', + component: MuminView, + }, + { + path: '/shenqiang', + name: 'shenqiang', + component: ShenQiang, + }, + { + path: '/channel:id?', props: true, name: 'channel', component: ChannelView, diff --git a/vueHomilyLink/src/views/ClubView.vue b/vueHomilyLink/src/views/ClubView.vue index 5f75119..5bcd8d3 100644 --- a/vueHomilyLink/src/views/ClubView.vue +++ b/vueHomilyLink/src/views/ClubView.vue @@ -1,10 +1,338 @@ -俱乐部 + + + + + + + 查看更多 + + + {{ club.introduction }} + + + + + 专题 + + + + 前言股市投资分享之左侧交易 + 查看更多 + + + + + + + + + + + + + + + + {{ show.name }} + + + + + {{ show.club.name }} + + + + + + + show.user.username + + + {{ show.releaseTime }} + + + + {{ show.viewCount }} + + + + + {{ show.comments }} + + + + + {{ show.likes }} + + + + + + + + + \ No newline at end of file diff --git a/vueHomilyLink/src/views/club/BoguView.vue b/vueHomilyLink/src/views/club/BoguView.vue new file mode 100644 index 0000000..5db5b59 --- /dev/null +++ b/vueHomilyLink/src/views/club/BoguView.vue @@ -0,0 +1,291 @@ + + + + + + + + + + + 查看更多 + + + {{ club[0].introduction }} + + + + + 专题 + + + + 前言股市投资分享之左侧交易 + 查看更多 + + + + + + + + + + + + + + + + {{ show.name }} + + + + + {{ club[0].name }} + + + + + + + {{show.user.username}} + + + {{ show.releaseTime }} + + + + {{ show.viewCount }} + + + + + {{ show.comments }} + + + + + {{ show.likes }} + + + + + + + + + + + \ No newline at end of file diff --git a/vueHomilyLink/src/views/club/MuminView.vue b/vueHomilyLink/src/views/club/MuminView.vue new file mode 100644 index 0000000..d88a2e7 --- /dev/null +++ b/vueHomilyLink/src/views/club/MuminView.vue @@ -0,0 +1,290 @@ + + + + + + + + + + + 查看更多 + + + {{ club[0].introduction }} + + + + + 专题 + + + + 前言股市投资分享之左侧交易 + 查看更多 + + + + + + + + + + + + + + + + {{ show.name }} + + + + + {{ club[0].name }} + + + + + + + {{show.user.username}} + + + {{ show.releaseTime }} + + + + {{ show.viewCount }} + + + + + {{ show.comments }} + + + + + {{ show.likes }} + + + + + + + + + + + diff --git a/vueHomilyLink/src/views/club/shenQiang.vue b/vueHomilyLink/src/views/club/shenQiang.vue new file mode 100644 index 0000000..b839cfe --- /dev/null +++ b/vueHomilyLink/src/views/club/shenQiang.vue @@ -0,0 +1,291 @@ + + + + + + + + + + + 查看更多 + + + {{ club[0].introduction }} + + + + + 专题 + + + + 前言股市投资分享之左侧交易 + 查看更多 + + + + + + + + + + + + + + + + {{ show.name }} + + + + + {{ club[0].name }} + + + + + + + {{show.user.username}} + + + {{ show.releaseTime }} + + + + {{ show.viewCount }} + + + + + {{ show.comments }} + + + + + {{ show.likes }} + + + + + + + + + + + \ No newline at end of file diff --git a/vueHomilyLink/vite.config.js b/vueHomilyLink/vite.config.js index f087d82..a44a510 100644 --- a/vueHomilyLink/vite.config.js +++ b/vueHomilyLink/vite.config.js @@ -18,8 +18,7 @@ export default defineConfig({ server: { proxy: { '/api': { - target: 'http://192.168.8.191:8080', - // target: 'http://localhost:8080', + target: 'http://192.168.9.19:8080', changeOrigin: true, rewrite: (path) => path.replace(/^\/api/, '') }
{{ club.introduction }}
前言股市投资分享之左侧交易
{{ club[0].introduction }}