Authored by 周少峰

Merge branch 'feature/guangDev' into release/5.8

... ... @@ -134,7 +134,8 @@ module.exports = class extends global.yoho.BaseModel {
pView: articleData.views_num,
content: articleData.intro,
showTags: showTag,
comment: articleData.comment_num
comment: articleData.comment_num,
isVideo: articleData.category_name === '视频' ? true : false
};
if (showTag && articleData.category_id) {
... ...
... ... @@ -20,6 +20,7 @@
{{/ isSpecialTopic}}
<a href="{{url}}" target="_blank">
<img class="lazy{{#if isSquareImg}} square{{/if}}" data-original="{{image2 img}}">
{{#if isVideo}}<i class="video-icon"></i>{{/if}}
</a>
</div>
<div class="msg-info">
... ...
... ... @@ -178,6 +178,19 @@
z-index: 99;
}
.video-icon {
position: absolute;
top: 50%;
left: 50%;
width: 54px;
height: 54px;
margin-top: -27px;
margin-left: -27px;
background: resolve("guang/isVideo.png") no-repeat;
background-size: 100% 100%;
z-index: 120;
}
.type-icon {
position: absolute;
top: 0;
... ...