Authored by 郭成尧

video

... ... @@ -81,6 +81,10 @@
</div>
{{/if}}
{{#video}}
<video src="{{src}}" controls="controls">
{{/video}}
{{#if collocation}}
<div class="post-block collocation-block">
<ul class="thumb-container">
... ...
... ... @@ -11,8 +11,8 @@ const isProduction = process.env.NODE_ENV === 'production';
const isTest = process.env.NODE_ENV === 'test';
const domains = {
api: 'http://dev-api.yohops.com:9999/',
service: 'http://dev-service.yohops.com:9999/',
api: 'http://api-test3.yohops.com:9999/',
service: 'http://service-test3.yohops.com:9999/',
singleApi: 'http://api-test3.yohops.com:9999/',
global: 'http://global-test-soa.yohops.com:9999',
liveApi: 'http://testapi.live.yohops.com:9999/',
... ...
... ... @@ -362,6 +362,17 @@ const processArticleDetail = (articleContent, isApp, gender, isWeixin, isqq, isW
recommendProducts: _.get(value, 'recommend_products.data', [])
});
}
// 视频
if (_.get(value, 'video', false)) {
let video = {
src: _.get(value, 'video.data.src', '')
};
finalDetail.push({
video: video
});
}
});
return {
... ...