作者 景龙
1 个管道 的构建 通过 耗费 3 秒

调试pc视频定位

... ... @@ -75,7 +75,7 @@
<div class="show_9_video_asideCon">
<ul class="curren">
<volist name="res['data']" id="vo">
<li class="clearfix">
<li class="clearfix" id="video_index_{$key}">
<img class="li_img" src="{:cmf_get_image_url($vo.thumbnail)}" alt="" style="opacity: 0.3;">
<p>
{$vo.post_title}
... ... @@ -213,10 +213,19 @@
}
}, false);
}
var video_index = getUrlParam('video_index');
//默认第一个视频
switch_video(0);
//更换视频路径index
video_index_url(0);
if(video_index == ''){
//默认第一个视频
switch_video(0);
//更换视频路径index
video_index_url(0);
}else{
switch_video(video_index);
//更换视频路径index
video_index_url(video_index);
}
var value = $('#cityName').val();
if (value != '') {
... ... @@ -281,9 +290,9 @@
function video_index_url(index){
var city_id = getUrlParam('city_id');
if(city_id == ''){
$('.video_index_url').val(window.location.href+'?video_index='+index+'&#video_index_'+index);
$('.video_index_url').val('http://'+window.location.host+'/portal/region/getMoreVideo?city_id=0&video_index='+index+'&#video_index_'+index);
}else{
$('.video_index_url').val(window.location.href+'&video_index='+index+'&#video_index_'+index);
$('.video_index_url').val('http://'+window.location.host+'/portal/region/getMoreVideo?city_id='+city_id+'&video_index='+index+'&#video_index_'+index);
}
}
... ...