|
@@ -237,9 +237,13 @@ |
|
@@ -237,9 +237,13 @@ |
237
|
}
|
237
|
}
|
238
|
});
|
238
|
});
|
239
|
var video_index = getUrlParam('video_index');
|
239
|
var video_index = getUrlParam('video_index');
|
|
|
240
|
+ console.log(1111);
|
|
|
241
|
+ console.log(video_index);
|
240
|
//默认第一个视频
|
242
|
//默认第一个视频
|
241
|
- switch_video(video_index);
|
|
|
242
|
|
243
|
|
|
|
244
|
+ switch_video(video_index);
|
|
|
245
|
+ //更换视频路径index
|
|
|
246
|
+ video_index_url(video_index);
|
243
|
//点击切换
|
247
|
//点击切换
|
244
|
$('.curren li').click(function() {
|
248
|
$('.curren li').click(function() {
|
245
|
var index = $(this).index();
|
249
|
var index = $(this).index();
|
|
@@ -247,6 +251,8 @@ |
|
@@ -247,6 +251,8 @@ |
247
|
$('.curren').children('li').find('.txt-cut').css('color', 'rgba(153, 153, 153, 1)');
|
251
|
$('.curren').children('li').find('.txt-cut').css('color', 'rgba(153, 153, 153, 1)');
|
248
|
switch_video(index);
|
252
|
switch_video(index);
|
249
|
$('.video_index').val(index);
|
253
|
$('.video_index').val(index);
|
|
|
254
|
+ //更换视频路径index
|
|
|
255
|
+ video_index_url(index);
|
250
|
});
|
256
|
});
|
251
|
|
257
|
|
252
|
// $(".select ul li").click(function() {
|
258
|
// $(".select ul li").click(function() {
|
|
@@ -280,6 +286,16 @@ |
|
@@ -280,6 +286,16 @@ |
280
|
$('.video_poster').css('visibility', 'visible!important');
|
286
|
$('.video_poster').css('visibility', 'visible!important');
|
281
|
});
|
287
|
});
|
282
|
});
|
288
|
});
|
|
|
289
|
+
|
|
|
290
|
+ function video_index_url(index){
|
|
|
291
|
+ var city_id = getUrlParam('city_id');
|
|
|
292
|
+ if(city_id == ''){
|
|
|
293
|
+ $('.video_index_url').val(window.location.href+'?video_index='+index);
|
|
|
294
|
+ }else{
|
|
|
295
|
+ $('.video_index_url').val(window.location.href+'&video_index='+index);
|
|
|
296
|
+ }
|
|
|
297
|
+ }
|
|
|
298
|
+
|
283
|
//切换视频
|
299
|
//切换视频
|
284
|
function switch_video(index) {
|
300
|
function switch_video(index) {
|
285
|
//视频路径
|
301
|
//视频路径
|