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 @@ + + + {{ tdk.tdk_title }} + + + + + + + + + + + + {{item.name}} + + + + + + + + + + + + + + + + + + {{ item.info_article_title }} + + + 现在阅读 + {{ item.info_article_create_time }} + + + + + + + + + + + {{ item.info_article_title }} + + + 现在阅读 + {{ item.info_article_create_time }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ 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 @@ - - - {{ tdk.tdk_title }} - - - - - - - - - - - - - - - - - - - - - - - - - - {{ item.info_article_title }} - - - 现在阅读 - {{ item.info_article_create_time }} - - - - - - - - - - - {{ item.info_article_title }} - - - 现在阅读 - {{ item.info_article_create_time }} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file