...
|
...
|
@@ -135,8 +135,6 @@ |
|
|
<div class="index_seventh_bottom_four">上映时间:<span class="release_time"></span></div>
|
|
|
<!--视频索引-->
|
|
|
<input type="hidden" value="0" class="video_index">
|
|
|
<!--视频url-->
|
|
|
<input type="hidden" value="0" class="video_index_url">
|
|
|
|
|
|
<div class="index_seventh_bottom_five">
|
|
|
<div class="index_seventh_bottom_title">分享:</div>
|
...
|
...
|
@@ -182,14 +180,20 @@ |
|
|
'onMenuShareTimeline',
|
|
|
]
|
|
|
});
|
|
|
video_share();
|
|
|
video_share(0);
|
|
|
});
|
|
|
|
|
|
//视频分享
|
|
|
function video_share(){
|
|
|
function video_share(index){
|
|
|
var title_title = $(document).attr('title');
|
|
|
var desc = $('.post_title').text();
|
|
|
var link = $('.video_index_url').val();
|
|
|
var link;
|
|
|
var city_id = getUrlParam('city_id');
|
|
|
if(city_id == ''){
|
|
|
link = window.location.href+'?video_index='+index;
|
|
|
}else{
|
|
|
link = window.location.href+'&video_index='+index;
|
|
|
}
|
|
|
wx.onMenuShareAppMessage({
|
|
|
title: '独角星球-'+title_title, // 分享标题朋友
|
|
|
desc: desc, // 分享描述
|
...
|
...
|
@@ -285,12 +289,8 @@ |
|
|
//默认第一个视频
|
|
|
if(video_index == ''){
|
|
|
switch_video(0);
|
|
|
//更换视频路径index
|
|
|
video_index_url(0);
|
|
|
}else{
|
|
|
switch_video(video_index);
|
|
|
//更换视频路径index
|
|
|
video_index_url(video_index);
|
|
|
}
|
|
|
|
|
|
//点击切换
|
...
|
...
|
@@ -300,9 +300,8 @@ |
|
|
$('.curren').children('li').find('.txt-cut').css('color', 'rgba(153, 153, 153, 1)');
|
|
|
switch_video(index);
|
|
|
$('.video_index').val(index);
|
|
|
//更换视频路径index
|
|
|
video_index_url(index);
|
|
|
video_share();
|
|
|
|
|
|
video_share(index);
|
|
|
});
|
|
|
|
|
|
// $(".select ul li").click(function() {
|
...
|
...
|
@@ -337,15 +336,6 @@ |
|
|
});
|
|
|
});
|
|
|
|
|
|
function video_index_url(index){
|
|
|
var city_id = getUrlParam('city_id');
|
|
|
if(city_id == ''){
|
|
|
$('.video_index_url').val(window.location.href+'?video_index='+index);
|
|
|
}else{
|
|
|
$('.video_index_url').val(window.location.href+'&video_index='+index);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
//切换视频
|
|
|
function switch_video(index) {
|
|
|
//视频路径
|
...
|
...
|
|