diff --git a/jeecgboot-vue3/src/api/mainHome/index.ts b/jeecgboot-vue3/src/api/mainHome/index.ts index 143fc1c..90de3bc 100644 --- a/jeecgboot-vue3/src/api/mainHome/index.ts +++ b/jeecgboot-vue3/src/api/mainHome/index.ts @@ -39,4 +39,19 @@ export function getindexaward(params) { method: 'GET', params, }); +} +// 获取文章栏目 +export function getindexcolumn() { + return defHttp.request({ + url: '/cms/front/getColumnList', + method: 'GET', + }); +} +// 通过栏目获取文章 +export function getindexarticle(params) { + return defHttp.request({ + url: '/cms/front/getArticleListByColumn', + method: 'GET', + params, + }); } \ No newline at end of file diff --git a/jeecgboot-vue3/src/views/demo/main-home/components/NewsList/index.vue b/jeecgboot-vue3/src/views/demo/main-home/components/NewsList/index.vue index 4ccf750..82e3ed9 100644 --- a/jeecgboot-vue3/src/views/demo/main-home/components/NewsList/index.vue +++ b/jeecgboot-vue3/src/views/demo/main-home/components/NewsList/index.vue @@ -1,31 +1,71 @@ - + diff --git a/jeecgboot-vue3/src/views/demo/main-home/components/innovationVouchers/index.vue b/jeecgboot-vue3/src/views/demo/main-home/components/innovationVouchers/index.vue index bb04430..46978b2 100644 --- a/jeecgboot-vue3/src/views/demo/main-home/components/innovationVouchers/index.vue +++ b/jeecgboot-vue3/src/views/demo/main-home/components/innovationVouchers/index.vue @@ -1,16 +1,17 @@