|
@@ -11,7 +11,12 @@
|
|
|
<span>更新时间:{{ item.create_time || item.renew_time || '暂无时间' }}</span>
|
|
|
</el-col>
|
|
|
<el-col :span="24" class="image" v-if="item.type == '0'">
|
|
|
- <img :src="tag.url" v-for="(tag, index) in item.imgUrl" :key="index" :style="{ width: item.imgUrl.length == 1 ? '100%' : '48%' }" />
|
|
|
+ <img
|
|
|
+ :src="tag.url"
|
|
|
+ v-for="(tag, index) in item.imgUrl"
|
|
|
+ :key="index"
|
|
|
+ :style="{ width: item.imgUrl.length == 1 ? '100%' : '48%', height: item.imgUrl.length == 1 ? '200px' : '160px' }"
|
|
|
+ />
|
|
|
</el-col>
|
|
|
<el-col :span="24" class="video" v-else-if="item.type == '1'">
|
|
|
<video
|
|
@@ -91,6 +96,12 @@ export default {
|
|
|
font-size: 15px;
|
|
|
margin: 0 0 5px 0;
|
|
|
word-wrap: break-word;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ -webkit-line-clamp: 6;
|
|
|
+ word-break: break-all;
|
|
|
+ display: -webkit-box;
|
|
|
+ -webkit-box-orient: vertical;
|
|
|
}
|
|
|
.other {
|
|
|
color: #666;
|
|
@@ -112,6 +123,7 @@ export default {
|
|
|
}
|
|
|
.video {
|
|
|
margin: 0 0 5px 0;
|
|
|
+ height: 200px;
|
|
|
video {
|
|
|
width: 100%;
|
|
|
height: 100%;
|