From 636d65166a944324d6d0fe1adca5ae913bd6b80c Mon Sep 17 00:00:00 2001 From: lwh <2679599887@qq.com> Date: Thu, 29 Jun 2023 20:42:52 +0800 Subject: [PATCH] =?UTF-8?q?feat=20=E6=B7=BB=E5=8A=A0=E6=96=B0=E9=97=BB?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/css/business/news/index.scss | 41 ++++++- components/Carousel/index.vue | 4 +- components/Header/index.vue | 2 +- pages/news/[idx]-[page].vue | 172 ++++++++++++++++++++++++++++ pages/news/[page].vue | 145 ----------------------- 5 files changed, 210 insertions(+), 154 deletions(-) create mode 100644 pages/news/[idx]-[page].vue delete mode 100644 pages/news/[page].vue diff --git a/assets/css/business/news/index.scss b/assets/css/business/news/index.scss index 0bdf133..9eb6a79 100644 --- a/assets/css/business/news/index.scss +++ b/assets/css/business/news/index.scss @@ -1,6 +1,40 @@ +// 新闻类型 +.news-titile-pos-box { + width: 100%; + display: flex; + justify-content: center; + margin: 50px 0; + + .news-title-box { + display: flex; + align-items: center; + + .news-title { + font-size: 24px; + font-weight: bold; + cursor: pointer; + transition: .4s; + } + + .news-title:hover { + color: #f08519; + } + .news-title-active{ + color: #f08519; + } + + .news-title-line { + width:1px; + height: 36px; + background-color: #999999; + margin: 0 30px; + } + } +} + +// 新闻内容盒子 .news-container-box { width: 100%; - // margin-top: 30px; .news-big-box { width: 105%; @@ -93,9 +127,4 @@ .jump { text-decoration: dashed; color: black; -} - -.ach-container { - float: left; - margin-top: 30px; } \ No newline at end of file diff --git a/components/Carousel/index.vue b/components/Carousel/index.vue index b9366ea..c19f26f 100644 --- a/components/Carousel/index.vue +++ b/components/Carousel/index.vue @@ -69,13 +69,13 @@ useFetch('/api/banner/getBanner',{ params: { banner_location: 1 } }).then(res => /**整体轮播图样式*/ let styleContainer = reactive({ - height: '38vw', + height: '33vw', }) const modules = ref([Pagination, Navigation, Autoplay]) const swiperStyle = conversionStyleVal(reactive({ /**轮播图样式*/ color: '', //设置字体颜色 - height: '38vw', //设置高度 + height: '33vw', //设置高度 width: '100%', //设置高度 margin: '0', //设置margin 按照上 右 下 左 或 上下 左右 设置 padding: '0', //设置padding 按照上 右 下 左 或 上下 左右 设置 diff --git a/components/Header/index.vue b/components/Header/index.vue index f845dc9..18847c3 100644 --- a/components/Header/index.vue +++ b/components/Header/index.vue @@ -81,7 +81,7 @@ let navList = [ { name: '新闻中心', children: [], - href: '/news/1', + href: '/news/1-1', alias: 'news' }, { diff --git a/pages/news/[idx]-[page].vue b/pages/news/[idx]-[page].vue new file mode 100644 index 0000000..5ba9419 --- /dev/null +++ b/pages/news/[idx]-[page].vue @@ -0,0 +1,172 @@ + + + + + + \ No newline at end of file diff --git a/pages/news/[page].vue b/pages/news/[page].vue deleted file mode 100644 index 79a4325..0000000 --- a/pages/news/[page].vue +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - \ No newline at end of file