|
@@ -2,12 +2,15 @@
|
|
|
<div id="zhanshi">
|
|
|
<el-col class="zhanshi">
|
|
|
<el-col :span="24" class="topTitle">
|
|
|
- {{ zhanshiList.title }}
|
|
|
+ {{ title }}
|
|
|
</el-col>
|
|
|
- <el-col>
|
|
|
- <el-carousel trigger="click" height="380px">
|
|
|
- <el-carousel-item v-for="item in 4" :key="item">
|
|
|
- <h3 class="small">{{ item }}</h3>
|
|
|
+ <el-col :span="24" class="image">
|
|
|
+ <el-carousel trigger="click" height="340px">
|
|
|
+ <el-carousel-item v-for="(item, index) in imageList" :key="index">
|
|
|
+ <el-image class="beijing" :src="src"></el-image>
|
|
|
+ <el-col class="imageList">
|
|
|
+ <el-image :src="item.pic" style="width:345px;height:280px;"></el-image>
|
|
|
+ </el-col>
|
|
|
</el-carousel-item>
|
|
|
</el-carousel>
|
|
|
</el-col>
|
|
@@ -19,10 +22,13 @@
|
|
|
export default {
|
|
|
name: 'zhanshi',
|
|
|
props: {
|
|
|
- zhanshiList: null,
|
|
|
+ imageList: null,
|
|
|
},
|
|
|
components: {},
|
|
|
- data: () => ({}),
|
|
|
+ data: () => ({
|
|
|
+ title: '数据展示',
|
|
|
+ src: require('@/assets/beijing1.gif'),
|
|
|
+ }),
|
|
|
created() {},
|
|
|
computed: {},
|
|
|
methods: {},
|
|
@@ -39,23 +45,21 @@ export default {
|
|
|
float: left;
|
|
|
background-color: #fff;
|
|
|
font-size: 22px;
|
|
|
- height: 40px;
|
|
|
+ height: 30px;
|
|
|
color: #215299;
|
|
|
+ margin: 0 0 10px 0;
|
|
|
}
|
|
|
-
|
|
|
-.el-carousel__item h3 {
|
|
|
- color: #475669;
|
|
|
- font-size: 14px;
|
|
|
- opacity: 0.75;
|
|
|
- line-height: 150px;
|
|
|
- margin: 0;
|
|
|
+.image {
|
|
|
+ height: 340px;
|
|
|
+ overflow: hidden;
|
|
|
}
|
|
|
-
|
|
|
-.el-carousel__item:nth-child(2n) {
|
|
|
- background-color: #99a9bf;
|
|
|
+.beijing {
|
|
|
+ position: absolute;
|
|
|
+ width: 100%;
|
|
|
+ height: 340px;
|
|
|
}
|
|
|
-
|
|
|
-.el-carousel__item:nth-child(2n + 1) {
|
|
|
- background-color: #d3dce6;
|
|
|
+.imageList {
|
|
|
+ text-align: center;
|
|
|
+ padding: 20px 0 0 0;
|
|
|
}
|
|
|
</style>
|