|
@@ -13,23 +13,21 @@
|
|
|
<div class="home-body">
|
|
|
<div class="new-pic">
|
|
|
<el-carousel :interval="4000" height="450px" indicator-position="none">
|
|
|
- <el-carousel-item v-for="(item, index) in showNew" :key="index" class="new-pic" @click="navTo('/news/detail?id=' + showNew.id)">
|
|
|
- <img :src="showNew.img"/>
|
|
|
- <div class="title clamp hand">{{ showNew.title }}</div>
|
|
|
+ <el-carousel-item v-for="(item, index) in showNew" :key="index" @click="navTo('/news/detail?id=' + item.id)">
|
|
|
+ <img :src="item.img" />
|
|
|
+ <div class="title clamp hand">{{ item.title }}</div>
|
|
|
</el-carousel-item>
|
|
|
</el-carousel>
|
|
|
</div>
|
|
|
- <div class="body-left moren">
|
|
|
- <div class="red-new">
|
|
|
- <item-title title="案例展示" :topath="'/publicity'"></item-title>
|
|
|
- <div class="item-wrapper">
|
|
|
- <div class="new-item hand" v-for="item in openNews" :key="item.id" @click="navTo('/publicity/detail?id=' + item.id)">
|
|
|
- <div class="title clamp ">
|
|
|
- <span></span>
|
|
|
- {{ item.title }}
|
|
|
- </div>
|
|
|
- <div class="time">{{ item.release_time ? item.release_time : item.add_time | time }}</div>
|
|
|
+ <div class="case">
|
|
|
+ <item-title title="案例展示" :topath="'/publicity'"></item-title>
|
|
|
+ <div class="item-wrapper">
|
|
|
+ <div class="new-item hand" v-for="item in openNews" :key="item.id" @click="navTo('/publicity/detail?id=' + item.id)">
|
|
|
+ <div class="title clamp ">
|
|
|
+ <span></span>
|
|
|
+ {{ item.title }}
|
|
|
</div>
|
|
|
+ <div class="time">{{ item.release_time ? item.release_time : item.add_time | time }}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -51,29 +49,22 @@
|
|
|
|
|
|
<script>
|
|
|
import ItemTitle from './homeChild/ItemTitle.vue';
|
|
|
+
|
|
|
export default {
|
|
|
components: {
|
|
|
ItemTitle
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- openNews:[],
|
|
|
- redNews:[],
|
|
|
- showNew:[{},{}],
|
|
|
+ openNews: [],
|
|
|
+ redNews: [],
|
|
|
+ showNew: [{}, {}]
|
|
|
};
|
|
|
},
|
|
|
- filters: {
|
|
|
-
|
|
|
- },
|
|
|
- computed: {
|
|
|
-
|
|
|
- },
|
|
|
- created() {
|
|
|
-
|
|
|
- },
|
|
|
- methods: {
|
|
|
-
|
|
|
- }
|
|
|
+ filters: {},
|
|
|
+ computed: {},
|
|
|
+ created() {},
|
|
|
+ methods: {}
|
|
|
};
|
|
|
</script>
|
|
|
|
|
@@ -110,7 +101,7 @@ export default {
|
|
|
min-width: 1080px;
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
- padding-left: 30px;
|
|
|
+ padding: 20px;
|
|
|
.new-pic {
|
|
|
width: 600px;
|
|
|
height: 450px;
|
|
@@ -122,7 +113,7 @@ export default {
|
|
|
.title {
|
|
|
width: 600px;
|
|
|
height: 80px;
|
|
|
- background: #D2D3D3;
|
|
|
+ background: #d2d3d3;
|
|
|
opacity: 0.8;
|
|
|
line-height: 55px;
|
|
|
font-size: 24px;
|
|
@@ -133,11 +124,17 @@ export default {
|
|
|
bottom: 0;
|
|
|
}
|
|
|
}
|
|
|
+ .case{
|
|
|
+ width: 33%;
|
|
|
+ height: 450px;
|
|
|
+ background: #FFFFFF;
|
|
|
+ margin-left: 20px;
|
|
|
+ }
|
|
|
.news {
|
|
|
- width: 670px;
|
|
|
- height: 340px;
|
|
|
+ width: 33%;
|
|
|
+ height: 450px;
|
|
|
background: #ffffff;
|
|
|
- box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
|
|
|
+ margin-left: 20px;
|
|
|
}
|
|
|
}
|
|
|
.el-carousel__button {
|