From a47b1c5ee1609093571d2f4fa1463fa351b7823d Mon Sep 17 00:00:00 2001 From: dzj <1140318653@qq.com> Date: Sat, 27 Jul 2024 00:23:18 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E6=96=B0=E9=97=BB=E8=B5=84?= =?UTF-8?q?=E8=AE=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/index.js | 24 ++++++- src/views/HomeView.vue | 144 ++++++++++++++++++++++------------------- 2 files changed, 100 insertions(+), 68 deletions(-) diff --git a/src/api/index.js b/src/api/index.js index 48ef5dc..7ee89e6 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -9,7 +9,7 @@ export function getproject(params){ //获取新闻内容 export function getnews(params){ return request({ - url:'article/list', + url:'article/enterpriseNewsList', params }) } @@ -103,14 +103,14 @@ export function compony(){ //新闻资讯 export function getmsg(params){ return request({ - url:'/articleMsg/list', + url:'/article/newsInformationList', params }) } //新闻详情 export function msgdetail(params){ return request({ - url:'/articleMsg/articleDetails', + url:'/article/articleDetails', params }) } @@ -131,4 +131,22 @@ export function componyhonor(){ return request({ url:'/honorTitle/list ' }) +} +//首页企业新闻 +export function indexNews(){ + return request({ + url:'/article/enterpriseNews' + }) +} +//首页企业新闻 +export function indexInformation(){ + return request({ + url:'/article/newsInformation' + }) +} +//首页新闻分类 +export function NewCategary(){ + return request({ + url:'/articleType/list' + }) } \ No newline at end of file diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index bb3873d..9e2e4b3 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -23,34 +23,19 @@