Authored by OF1706

isVideo

@@ -134,7 +134,8 @@ module.exports = class extends global.yoho.BaseModel { @@ -134,7 +134,8 @@ module.exports = class extends global.yoho.BaseModel {
134 pView: articleData.views_num, 134 pView: articleData.views_num,
135 content: articleData.intro, 135 content: articleData.intro,
136 showTags: showTag, 136 showTags: showTag,
137 - comment: articleData.comment_num 137 + comment: articleData.comment_num,
  138 + isVideo: articleData.category_name === '视频' ? true : false
138 }; 139 };
139 140
140 if (showTag && articleData.category_id) { 141 if (showTag && articleData.category_id) {
@@ -20,6 +20,7 @@ @@ -20,6 +20,7 @@
20 {{/ isSpecialTopic}} 20 {{/ isSpecialTopic}}
21 <a href="{{url}}" target="_blank"> 21 <a href="{{url}}" target="_blank">
22 <img class="lazy{{#if isSquareImg}} square{{/if}}" data-original="{{image2 img}}"> 22 <img class="lazy{{#if isSquareImg}} square{{/if}}" data-original="{{image2 img}}">
  23 + {{#if isVideo}}<i class="video-icon"></i>{{/if}}
23 </a> 24 </a>
24 </div> 25 </div>
25 <div class="msg-info"> 26 <div class="msg-info">
@@ -178,6 +178,19 @@ @@ -178,6 +178,19 @@
178 z-index: 99; 178 z-index: 99;
179 } 179 }
180 180
  181 + .video-icon {
  182 + position: absolute;
  183 + top: 50%;
  184 + left: 50%;
  185 + width: 54px;
  186 + height: 54px;
  187 + margin-top: -27px;
  188 + margin-left: -27px;
  189 + background: resolve("guang/isVideo.png") no-repeat;
  190 + background-size: 100% 100%;
  191 + z-index: 120;
  192 + }
  193 +
181 .type-icon { 194 .type-icon {
182 position: absolute; 195 position: absolute;
183 top: 0; 196 top: 0;