|
@@ -8,7 +8,7 @@
|
|
|
<el-col :span="24">
|
|
|
<el-carousel height="270px" direction="vertical" :autoplay="true">
|
|
|
<el-carousel-item v-for="(item, index) in lunboList" :key="index" @click.native="toOpen(item.url)">
|
|
|
- <img :src="item.pic" class="imgList" />
|
|
|
+ <img :src="item.pic" class="img" />
|
|
|
</el-carousel-item>
|
|
|
</el-carousel>
|
|
|
</el-col>
|
|
@@ -29,8 +29,8 @@ export default {
|
|
|
computed: {},
|
|
|
methods: {
|
|
|
toOpen(url) {
|
|
|
- if(url.includes('http')) window.open(url);
|
|
|
- else window.open(`http://${url}`)
|
|
|
+ if (url.includes('http')) window.open(url);
|
|
|
+ else window.open(`http://${url}`);
|
|
|
},
|
|
|
},
|
|
|
};
|
|
@@ -49,4 +49,9 @@ export default {
|
|
|
border-bottom: 1px solid #850000;
|
|
|
padding: 0 5px;
|
|
|
}
|
|
|
+.img {
|
|
|
+ max-width: 100%;
|
|
|
+ max-height: 100%;
|
|
|
+ vertical-align: middle;
|
|
|
+}
|
|
|
</style>
|