Merge branch 'feature/live' of git.yoho.cn:fe/yohobuywap-node into feature/live
Showing
4 changed files
with
11 additions
and
3 deletions
@@ -100,7 +100,7 @@ | @@ -100,7 +100,7 @@ | ||
100 | </div> | 100 | </div> |
101 | </header> | 101 | </header> |
102 | <section> | 102 | <section> |
103 | - <a href='http://m.yohobuy.com/activity/live/replay/{{video_id}}?openby:yohobuy={"action":"go.videoreplay", "params":{"videoid":"{{video_id}}","videourl":"{{url}}"}}'> | 103 | + <a href='http://m.yohobuy.com/activity/live/replay/{{video_id}}?openby:yohobuy={"action":"go.videoreplay", "params":{"videoid":"{{video_id}}"}}'> |
104 | <div class="record-icon"></div> | 104 | <div class="record-icon"></div> |
105 | <img class="main-bg" src="{{image pic 640 640}}" alt="精彩回放"> | 105 | <img class="main-bg" src="{{image pic 640 640}}" alt="精彩回放"> |
106 | <p class="main-living">回放</p> | 106 | <p class="main-living">回放</p> |
@@ -65,7 +65,7 @@ | @@ -65,7 +65,7 @@ | ||
65 | {{/canPlay}} | 65 | {{/canPlay}} |
66 | 66 | ||
67 | {{!直播已结束}} | 67 | {{!直播已结束}} |
68 | - <div id="live-state-end" class="live-state is-no-start {{#isEnd}}show{{/isEnd}}" style="background-image: url('{{pic}}');"> | 68 | + <div id="live-state-end" class="live-state is-no-start {{#atEnd}}show{{/atEnd}}" style="background-image: url('{{pic}}');"> |
69 | <div class="live-state__txt">直播已结束</div> | 69 | <div class="live-state__txt">直播已结束</div> |
70 | <ul class="live-state-info"> | 70 | <ul class="live-state-info"> |
71 | <li class="audience text-center"> | 71 | <li class="audience text-center"> |
@@ -6,6 +6,14 @@ require('./live/yoho_live_detail_main'); | @@ -6,6 +6,14 @@ require('./live/yoho_live_detail_main'); | ||
6 | require('./live/temp'); | 6 | require('./live/temp'); |
7 | require('./live/yoho_live_share'); | 7 | require('./live/yoho_live_share'); |
8 | 8 | ||
9 | +global.$ = $; | ||
10 | + | ||
11 | +$('.live-wrapper').css({ | ||
12 | + position: 'relative', | ||
13 | + height: window.innerHeight, | ||
14 | + width: window.innerWidth | ||
15 | +}); | ||
16 | + | ||
9 | $(function() { | 17 | $(function() { |
10 | var $share = $('.live-btn-share'); | 18 | var $share = $('.live-btn-share'); |
11 | 19 |
@@ -111,7 +111,7 @@ function init_play_button() { | @@ -111,7 +111,7 @@ function init_play_button() { | ||
111 | var v_width = temp_width + 'px'; | 111 | var v_width = temp_width + 'px'; |
112 | var v_height = 32.575 * scale + 'rem'; | 112 | var v_height = 32.575 * scale + 'rem'; |
113 | $('.live-loading-container').show(); //显示loading | 113 | $('.live-loading-container').show(); //显示loading |
114 | - init_video(video_source, _is_wechat, _is_ios, v_width, '100vh'); | 114 | + init_video(video_source, _is_wechat, _is_ios, 'auto', window.innerHeight+'px'); |
115 | 115 | ||
116 | 116 | ||
117 | setTimeout(function() { | 117 | setTimeout(function() { |
-
Please register or login to post a comment