From dd6f6fd6a99bf37f5348743457e7b731d30de9ad Mon Sep 17 00:00:00 2001 From: JayChou Date: Fri, 8 Nov 2024 10:38:34 +0800 Subject: [PATCH 1/4] =?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 @@ @@ -79,6 +105,7 @@ width: calc(1200px - 415px); margin-right: 30px; min-height: 755px; + padding-bottom: 80px; .item { display: flex; width: 100%; @@ -168,14 +195,14 @@ } } .pagination { - // background-color: #fff; - position: absolute; - bottom: 0; - left: 50%; - transform: translateX(-50%); - margin-top: 20px; - height: 70px; - display: flex; - justify-content: center; - } + // background-color: #fff; + position: absolute; + bottom: -20px; + left: 50%; + transform: translateX(-50%); + margin-top: 20px; + height: 70px; + display: flex; + justify-content: center; + } diff --git a/jeecgboot-vue3/src/views/demo/main-home/components/expertManagement/index.vue b/jeecgboot-vue3/src/views/demo/main-home/components/expertManagement/index.vue index 5c03218..6fb9d21 100644 --- a/jeecgboot-vue3/src/views/demo/main-home/components/expertManagement/index.vue +++ b/jeecgboot-vue3/src/views/demo/main-home/components/expertManagement/index.vue @@ -1,24 +1,73 @@ diff --git a/jeecgboot-vue3/src/views/demo/main-home/components/homePage/index.vue b/jeecgboot-vue3/src/views/demo/main-home/components/homePage/index.vue index 4c3b7de..aea492d 100644 --- a/jeecgboot-vue3/src/views/demo/main-home/components/homePage/index.vue +++ b/jeecgboot-vue3/src/views/demo/main-home/components/homePage/index.vue @@ -136,6 +136,7 @@