diff --git a/jeecgboot-vue3/src/api/mainHome/index.ts b/jeecgboot-vue3/src/api/mainHome/index.ts index 90de3bc..369de3a 100644 --- a/jeecgboot-vue3/src/api/mainHome/index.ts +++ b/jeecgboot-vue3/src/api/mainHome/index.ts @@ -54,4 +54,49 @@ export function getindexarticle(params) { method: 'GET', params, }); +} +// 获取全部文章 +export function getindexallarticle() { + return defHttp.request({ + url: '/cms/front/cmsfindallnews', + method: 'GET', + }); +} +// 获取文章详情 +export function getindexarticleitem(params) { + return defHttp.request({ + url: '/cms/front/getByArticleTitle', + method: 'GET', + params, + }); +} +// 获取首页新闻 +export function getindexnews() { + return defHttp.request({ + url: '/cms/front/getindexnew', + method: 'GET', + }); +} +// 获取专家信息 +export function getindexexpert(params) { + return defHttp.request({ + url: '/expert/expert/listadminCMS', + method: 'GET', + params + }); +} +// 获取专家详情 +export function getindexexpertdetail(params) { + return defHttp.request({ + url: '/expert/expert/CMSexpinfo', + method: 'GET', + params, + }); +} +// 获取专家类型 +export function getindexexperttype() { + return defHttp.request({ + url: '/expert/expert/directioncalListCMS', + method: 'GET', + }); } \ No newline at end of file diff --git a/jeecgboot-vue3/src/router/helper/mainOut.ts b/jeecgboot-vue3/src/router/helper/mainOut.ts index ce05304..f2a435e 100644 --- a/jeecgboot-vue3/src/router/helper/mainOut.ts +++ b/jeecgboot-vue3/src/router/helper/mainOut.ts @@ -90,7 +90,7 @@ export const mainOutRoutes: AppRouteModule[] = [ meta: { title: '新闻详情', ignoreAuth: true, - hidden: false + hidden: true }, }, 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 82e3ed9..b196bf6 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 @@ -2,39 +2,41 @@
-
{{ i.publishTime.split('-')[0] }}-{{ i.publishTime.split('-')[1] }}
{{ i.publishTime.split(' ')[0].split('-')[2] }}
+
{{ i.publishTime.split('-')[0] }}-{{ i.publishTime.split('-')[1] }}
{{ i.publishTime.split(' ')[0].split('-')[2] }}
{{ i.title }}
{{ i.source }}
-
-
查看详情
+
+
查看详情
- - + +
栏目列表
-
全部
+
全部
{{ i.name }}
-
- @@ -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 @@