...
|
...
|
@@ -5,7 +5,7 @@ |
|
|
<a v-if="actionUrl" class="action-article" :href="actionUrl" target="_blank"></a>
|
|
|
<div class="layer-image" @click="onClick" :style="`height: ${data.blockWidth * data.scale}px`">
|
|
|
<div v-if="data.authStatus == 2" class="failed-cover">未审核通过</div>
|
|
|
<div v-if="data.sort === 2" class="article-long-icon"></div>
|
|
|
<div v-if="cornerMark" class="article-corner-mark" :class="cornerMark"></div>
|
|
|
<ImageFormat :mode="1" :src="data.coverImage" :width="imgWidth" :height="Math.floor(data.scale * imgWidth)"></ImageFormat>
|
|
|
</div>
|
|
|
<div v-if="data.content" class="description" @click="onClick('article')">
|
...
|
...
|
@@ -68,6 +68,22 @@ export default { |
|
|
}
|
|
|
|
|
|
return '';
|
|
|
},
|
|
|
cornerMark() {
|
|
|
let className = '';
|
|
|
|
|
|
switch (+this.data.sort) {
|
|
|
case 2:
|
|
|
className = 'article-long-icon';
|
|
|
break;
|
|
|
case 4:
|
|
|
className = 'article-video-icon';
|
|
|
break;
|
|
|
default:
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
return className;
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
...
|
...
|
@@ -147,16 +163,23 @@ export default { |
|
|
justify-content: center;
|
|
|
}
|
|
|
|
|
|
.article-long-icon {
|
|
|
.article-corner-mark {
|
|
|
width: 36px;
|
|
|
height: 36px;
|
|
|
position: absolute;
|
|
|
top: 18px;
|
|
|
right: 18px;
|
|
|
background-image: url("~statics/image/article/article-long-icon.png");
|
|
|
background-size: 100% 100%;
|
|
|
}
|
|
|
|
|
|
.article-long-icon {
|
|
|
background-image: url("~statics/image/article/article-long-icon.png");
|
|
|
}
|
|
|
|
|
|
.article-video-icon {
|
|
|
background-image: url("~statics/image/article/article-video-icon.png");
|
|
|
}
|
|
|
|
|
|
> img {
|
|
|
width: 100%;
|
|
|
height: 100%;
|
...
|
...
|
|