Authored by 郭成尧

top-left

... ... @@ -82,7 +82,7 @@
{{/if}}
{{#video}}
<video src="{{src}}" controls="controls">
<video src="{{src}}" controls="controls" poster="{{cover_image}}">
{{/video}}
{{#if collocation}}
... ...
... ... @@ -35,12 +35,6 @@
position: relative;
width: 100%;
.img-box {
display: flex;
align-items: center;
justify-content: center;
}
img {
display: block;
width: 100%;
... ... @@ -51,6 +45,9 @@
position: absolute;
width: 140px;
height: 140px;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
background-image: url("/guang/play-btn.png");
}
}
... ...
... ... @@ -377,7 +377,8 @@ const processArticleDetail = (articleContent, isApp, gender, isWeixin, isqq, isW
// 视频
if (_.get(value, 'video', false)) {
let video = {
src: _.get(value, 'video.data.src', '')
src: _.get(value, 'video.data.src', ''),
cover_image: _.get(value, 'video.data.cover_image', '')
};
finalDetail.push({
... ...