Commit d2e6447f authored by 张伯涛's avatar 张伯涛

样式调整

parent 245ca909
<template> <template>
<!-- <div class="navbar">--> <div class="navbar">
<!-- <breadcrumb class="breadcrumb-container" />--> <breadcrumb class="breadcrumb-container" />
<!-- </div>--> </div>
</template> </template>
<script> <script>
...@@ -46,7 +46,7 @@ export default { ...@@ -46,7 +46,7 @@ export default {
height: 50px; height: 50px;
overflow: hidden; overflow: hidden;
position: relative; position: relative;
background: #fff; //background: #fff;
//box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08); //box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
margin: 0 14px; margin: 0 14px;
......
...@@ -35,6 +35,7 @@ export default { ...@@ -35,6 +35,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.HomeSearch { .HomeSearch {
padding-top: 72px;
width: 100%; width: 100%;
height: 881px; height: 881px;
::v-deep .el-carousel__container{ ::v-deep .el-carousel__container{
......
...@@ -54,6 +54,7 @@ export default { ...@@ -54,6 +54,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.newsDetails_module{ .newsDetails_module{
padding-top: 72px;
width: 1920px; width: 1920px;
height: 2390px; height: 2390px;
background: #f5f9fd; background: #f5f9fd;
......
...@@ -2,6 +2,12 @@ ...@@ -2,6 +2,12 @@
<div> <div>
<nav-list :list="navList" /> <nav-list :list="navList" />
<div class="news_module"> <div class="news_module">
<div class="news_navbar">
<div class="navbar_title">首页</div>
<div class="navbar_icon">></div>
<div class="navbar_activeTitle">新闻资讯</div>
</div>
<div class="newsList_content">
<div class="newsList"> <div class="newsList">
<div <div
v-for="(item,index) in newsList" v-for="(item,index) in newsList"
...@@ -29,6 +35,7 @@ ...@@ -29,6 +35,7 @@
</div> </div>
</div> </div>
</div> </div>
</div>
</template> </template>
<script> <script>
...@@ -36,7 +43,7 @@ import NavList from '@/views/homePage/components/NavList/index' ...@@ -36,7 +43,7 @@ import NavList from '@/views/homePage/components/NavList/index'
export default { export default {
name: 'Index', name: 'Index',
components: { components: {
NavList NavList,
}, },
data() { data() {
return { return {
...@@ -105,11 +112,10 @@ export default { ...@@ -105,11 +112,10 @@ export default {
<style scoped lang="scss"> <style scoped lang="scss">
.news_module{ .news_module{
margin: 72px 0 0 0;
width: 1920px; width: 1920px;
height: 3014px; height: 3014px;
background: #f5f9fd; background: #f5f9fd;
display: flex;
justify-content: center;
::v-deep .el-pagination{ ::v-deep .el-pagination{
display: flex; display: flex;
justify-content: center; justify-content: center;
...@@ -117,14 +123,33 @@ export default { ...@@ -117,14 +123,33 @@ export default {
.pagination-container{ .pagination-container{
padding: 38px 0 76px 0; padding: 38px 0 76px 0;
} }
.news_navbar{
padding: 24px 0 24px 385px;
display: flex;
align-items: center;
font-size: 16px;
font-family: Source Han Sans CN, Source Han Sans CN-400;
font-weight: 400;
color: #292929;
.navbar_icon{
position: relative;
bottom: 2px;
padding: 0 15px;
}
.navbar_activeTitle{
color: #3888FC;
}
}
.newsList_content{
display: flex;
justify-content: center;
.newsList{ .newsList{
padding: 64px 0 0 48px; padding: 64px 0 0 48px;
margin: 69px 0 0 0;
width: 1200px; width: 1200px;
height: 2805px; height: 2805px;
background: #ffffff; background: #ffffff;
border-radius: 2px; border-radius: 2px;
box-shadow: -2px 0px 10px 2px rgba(0,0,0,0.04); box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.05);
.dataList{ .dataList{
cursor: pointer; cursor: pointer;
display: flex; display: flex;
...@@ -149,6 +174,10 @@ export default { ...@@ -149,6 +174,10 @@ export default {
text-align: left; text-align: left;
color: #232323; color: #232323;
} }
.newsTitle:hover{
color: #3888fc;
cursor: pointer;
}
.newsInfo{ .newsInfo{
display: -webkit-box; display: -webkit-box;
-webkit-line-clamp: 3; /* 限制在三行 */ -webkit-line-clamp: 3; /* 限制在三行 */
...@@ -183,6 +212,10 @@ export default { ...@@ -183,6 +212,10 @@ export default {
margin: 50px 0; margin: 50px 0;
} }
} }
.news_pagination{
}
}
} }
} }
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment