Showing
3 changed files
with
17 additions
and
2 deletions
@@ -81,6 +81,10 @@ | @@ -81,6 +81,10 @@ | ||
81 | </div> | 81 | </div> |
82 | {{/if}} | 82 | {{/if}} |
83 | 83 | ||
84 | + {{#video}} | ||
85 | + <video src="{{src}}" controls="controls"> | ||
86 | + {{/video}} | ||
87 | + | ||
84 | {{#if collocation}} | 88 | {{#if collocation}} |
85 | <div class="post-block collocation-block"> | 89 | <div class="post-block collocation-block"> |
86 | <ul class="thumb-container"> | 90 | <ul class="thumb-container"> |
@@ -11,8 +11,8 @@ const isProduction = process.env.NODE_ENV === 'production'; | @@ -11,8 +11,8 @@ const isProduction = process.env.NODE_ENV === 'production'; | ||
11 | const isTest = process.env.NODE_ENV === 'test'; | 11 | const isTest = process.env.NODE_ENV === 'test'; |
12 | 12 | ||
13 | const domains = { | 13 | const domains = { |
14 | - api: 'http://dev-api.yohops.com:9999/', | ||
15 | - service: 'http://dev-service.yohops.com:9999/', | 14 | + api: 'http://api-test3.yohops.com:9999/', |
15 | + service: 'http://service-test3.yohops.com:9999/', | ||
16 | singleApi: 'http://api-test3.yohops.com:9999/', | 16 | singleApi: 'http://api-test3.yohops.com:9999/', |
17 | global: 'http://global-test-soa.yohops.com:9999', | 17 | global: 'http://global-test-soa.yohops.com:9999', |
18 | liveApi: 'http://testapi.live.yohops.com:9999/', | 18 | liveApi: 'http://testapi.live.yohops.com:9999/', |
@@ -362,6 +362,17 @@ const processArticleDetail = (articleContent, isApp, gender, isWeixin, isqq, isW | @@ -362,6 +362,17 @@ const processArticleDetail = (articleContent, isApp, gender, isWeixin, isqq, isW | ||
362 | recommendProducts: _.get(value, 'recommend_products.data', []) | 362 | recommendProducts: _.get(value, 'recommend_products.data', []) |
363 | }); | 363 | }); |
364 | } | 364 | } |
365 | + | ||
366 | + // 视频 | ||
367 | + if (_.get(value, 'video', false)) { | ||
368 | + let video = { | ||
369 | + src: _.get(value, 'video.data.src', '') | ||
370 | + }; | ||
371 | + | ||
372 | + finalDetail.push({ | ||
373 | + video: video | ||
374 | + }); | ||
375 | + } | ||
365 | }); | 376 | }); |
366 | 377 | ||
367 | return { | 378 | return { |
-
Please register or login to post a comment