...
|
...
|
@@ -237,9 +237,13 @@ |
|
|
}
|
|
|
});
|
|
|
var video_index = getUrlParam('video_index');
|
|
|
console.log(1111);
|
|
|
console.log(video_index);
|
|
|
//默认第一个视频
|
|
|
switch_video(video_index);
|
|
|
|
|
|
switch_video(video_index);
|
|
|
//更换视频路径index
|
|
|
video_index_url(video_index);
|
|
|
//点击切换
|
|
|
$('.curren li').click(function() {
|
|
|
var index = $(this).index();
|
...
|
...
|
@@ -247,6 +251,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);
|
|
|
});
|
|
|
|
|
|
// $(".select ul li").click(function() {
|
...
|
...
|
@@ -280,6 +286,16 @@ |
|
|
$('.video_poster').css('visibility', 'visible!important');
|
|
|
});
|
|
|
});
|
|
|
|
|
|
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) {
|
|
|
//视频路径
|
...
|
...
|
|