正在显示
1 个修改的文件
包含
11 行增加
和
21 行删除
@@ -135,8 +135,6 @@ | @@ -135,8 +135,6 @@ | ||
135 | <div class="index_seventh_bottom_four">上映时间:<span class="release_time"></span></div> | 135 | <div class="index_seventh_bottom_four">上映时间:<span class="release_time"></span></div> |
136 | <!--视频索引--> | 136 | <!--视频索引--> |
137 | <input type="hidden" value="0" class="video_index"> | 137 | <input type="hidden" value="0" class="video_index"> |
138 | - <!--视频url--> | ||
139 | - <input type="hidden" value="0" class="video_index_url"> | ||
140 | 138 | ||
141 | <div class="index_seventh_bottom_five"> | 139 | <div class="index_seventh_bottom_five"> |
142 | <div class="index_seventh_bottom_title">分享:</div> | 140 | <div class="index_seventh_bottom_title">分享:</div> |
@@ -182,14 +180,20 @@ | @@ -182,14 +180,20 @@ | ||
182 | 'onMenuShareTimeline', | 180 | 'onMenuShareTimeline', |
183 | ] | 181 | ] |
184 | }); | 182 | }); |
185 | - video_share(); | 183 | + video_share(0); |
186 | }); | 184 | }); |
187 | 185 | ||
188 | //视频分享 | 186 | //视频分享 |
189 | - function video_share(){ | 187 | + function video_share(index){ |
190 | var title_title = $(document).attr('title'); | 188 | var title_title = $(document).attr('title'); |
191 | var desc = $('.post_title').text(); | 189 | var desc = $('.post_title').text(); |
192 | - var link = $('.video_index_url').val(); | 190 | + var link; |
191 | + var city_id = getUrlParam('city_id'); | ||
192 | + if(city_id == ''){ | ||
193 | + link = window.location.href+'?video_index='+index; | ||
194 | + }else{ | ||
195 | + link = window.location.href+'&video_index='+index; | ||
196 | + } | ||
193 | wx.onMenuShareAppMessage({ | 197 | wx.onMenuShareAppMessage({ |
194 | title: '独角星球-'+title_title, // 分享标题朋友 | 198 | title: '独角星球-'+title_title, // 分享标题朋友 |
195 | desc: desc, // 分享描述 | 199 | desc: desc, // 分享描述 |
@@ -285,12 +289,8 @@ | @@ -285,12 +289,8 @@ | ||
285 | //默认第一个视频 | 289 | //默认第一个视频 |
286 | if(video_index == ''){ | 290 | if(video_index == ''){ |
287 | switch_video(0); | 291 | switch_video(0); |
288 | - //更换视频路径index | ||
289 | - video_index_url(0); | ||
290 | }else{ | 292 | }else{ |
291 | switch_video(video_index); | 293 | switch_video(video_index); |
292 | - //更换视频路径index | ||
293 | - video_index_url(video_index); | ||
294 | } | 294 | } |
295 | 295 | ||
296 | //点击切换 | 296 | //点击切换 |
@@ -300,9 +300,8 @@ | @@ -300,9 +300,8 @@ | ||
300 | $('.curren').children('li').find('.txt-cut').css('color', 'rgba(153, 153, 153, 1)'); | 300 | $('.curren').children('li').find('.txt-cut').css('color', 'rgba(153, 153, 153, 1)'); |
301 | switch_video(index); | 301 | switch_video(index); |
302 | $('.video_index').val(index); | 302 | $('.video_index').val(index); |
303 | - //更换视频路径index | ||
304 | - video_index_url(index); | ||
305 | - video_share(); | 303 | + |
304 | + video_share(index); | ||
306 | }); | 305 | }); |
307 | 306 | ||
308 | // $(".select ul li").click(function() { | 307 | // $(".select ul li").click(function() { |
@@ -337,15 +336,6 @@ | @@ -337,15 +336,6 @@ | ||
337 | }); | 336 | }); |
338 | }); | 337 | }); |
339 | 338 | ||
340 | - function video_index_url(index){ | ||
341 | - var city_id = getUrlParam('city_id'); | ||
342 | - if(city_id == ''){ | ||
343 | - $('.video_index_url').val(window.location.href+'?video_index='+index); | ||
344 | - }else{ | ||
345 | - $('.video_index_url').val(window.location.href+'&video_index='+index); | ||
346 | - } | ||
347 | - } | ||
348 | - | ||
349 | //切换视频 | 339 | //切换视频 |
350 | function switch_video(index) { | 340 | function switch_video(index) { |
351 | //视频路径 | 341 | //视频路径 |
-
请 注册 或 登录 后发表评论