From d788679878aa8490a2083f19486effd20eb08b3d Mon Sep 17 00:00:00 2001 From: huliyong <2783385703@qq.com> Date: Tue, 18 Feb 2025 23:43:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/api.js | 20 ++ components/list/newsItem.vue | 138 ++++++++++++++ .../{videoList - 副本.vue => scenicSpot.vue} | 68 ++++--- components/list/videoList.vue | 68 +++---- config.js | 2 +- pages.json | 15 +- pages/index/index.vue | 54 ++++-- pages_order/service/newsDetail.vue | 59 ++++++ pages_order/service/newsList.vue | 202 +++++++++++++++++++++ 9 files changed, 539 insertions(+), 87 deletions(-) create mode 100644 components/list/newsItem.vue rename components/list/{videoList - 副本.vue => scenicSpot.vue} (71%) create mode 100644 pages_order/service/newsDetail.vue create mode 100644 pages_order/service/newsList.vue diff --git a/api/api.js b/api/api.js index 274f807..7093644 100644 --- a/api/api.js +++ b/api/api.js @@ -334,6 +334,26 @@ const config = { method: 'GET', showLoading: true, }, + + + + // 2025-2-18 + + // 申遗新闻-获取新闻分类列表 + queryNewsTypeList: { + url: '/info/queryNewsTypeList', + method: 'GET', + }, + // 申遗新闻-根据分类获取新闻列表 + queryNewsByType: { + url: '/info/queryNewsByType', + method: 'GET', + }, + // 根据id获取新闻详情 + queryNewsById: { + url: '/info/queryNewsById', + method: 'GET', + }, } diff --git a/components/list/newsItem.vue b/components/list/newsItem.vue new file mode 100644 index 0000000..92e2484 --- /dev/null +++ b/components/list/newsItem.vue @@ -0,0 +1,138 @@ + + + + + \ No newline at end of file diff --git a/components/list/videoList - 副本.vue b/components/list/scenicSpot.vue similarity index 71% rename from components/list/videoList - 副本.vue rename to components/list/scenicSpot.vue index 8b083e1..1d0166a 100644 --- a/components/list/videoList - 副本.vue +++ b/components/list/scenicSpot.vue @@ -4,27 +4,27 @@ :style="{height: height}" @scrolltolower="loadMoreData"> - - + - - - - - - {{ item.travelVideo.videoTitle }} + {{ item.spotName }} - @@ -33,7 +33,7 @@ + + diff --git a/pages_order/service/newsList.vue b/pages_order/service/newsList.vue new file mode 100644 index 0000000..f70d3e8 --- /dev/null +++ b/pages_order/service/newsList.vue @@ -0,0 +1,202 @@ + + + + + \ No newline at end of file