From dd6f6fd6a99bf37f5348743457e7b731d30de9ad Mon Sep 17 00:00:00 2001 From: JayChou Date: Fri, 8 Nov 2024 10:38:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E6=8E=A5=E6=96=B0=E9=97=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jeecgboot-vue3/src/api/mainHome/index.ts | 15 + .../main-home/components/NewsList/index.vue | 84 +++- .../components/innovationVouchers/index.vue | 44 +- .../components/instrumentInfo/index.vue | 422 +++++++++--------- 4 files changed, 330 insertions(+), 235 deletions(-) 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 @@