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

调试pc视频定位

@@ -75,7 +75,7 @@ @@ -75,7 +75,7 @@
75 <div class="show_9_video_asideCon"> 75 <div class="show_9_video_asideCon">
76 <ul class="curren"> 76 <ul class="curren">
77 <volist name="res['data']" id="vo"> 77 <volist name="res['data']" id="vo">
78 - <li class="clearfix"> 78 + <li class="clearfix" id="video_index_{$key}">
79 <img class="li_img" src="{:cmf_get_image_url($vo.thumbnail)}" alt="" style="opacity: 0.3;"> 79 <img class="li_img" src="{:cmf_get_image_url($vo.thumbnail)}" alt="" style="opacity: 0.3;">
80 <p> 80 <p>
81 {$vo.post_title} 81 {$vo.post_title}
@@ -213,10 +213,19 @@ @@ -213,10 +213,19 @@
213 } 213 }
214 }, false); 214 }, false);
215 } 215 }
  216 + var video_index = getUrlParam('video_index');
  217 + //默认第一个视频
  218 + if(video_index == ''){
216 //默认第一个视频 219 //默认第一个视频
217 switch_video(0); 220 switch_video(0);
218 //更换视频路径index 221 //更换视频路径index
219 video_index_url(0); 222 video_index_url(0);
  223 + }else{
  224 + switch_video(video_index);
  225 + //更换视频路径index
  226 + video_index_url(video_index);
  227 + }
  228 +
220 229
221 var value = $('#cityName').val(); 230 var value = $('#cityName').val();
222 if (value != '') { 231 if (value != '') {
@@ -281,9 +290,9 @@ @@ -281,9 +290,9 @@
281 function video_index_url(index){ 290 function video_index_url(index){
282 var city_id = getUrlParam('city_id'); 291 var city_id = getUrlParam('city_id');
283 if(city_id == ''){ 292 if(city_id == ''){
284 - $('.video_index_url').val(window.location.href+'?video_index='+index+'&#video_index_'+index); 293 + $('.video_index_url').val('http://'+window.location.host+'/portal/region/getMoreVideo?city_id=0&video_index='+index+'&#video_index_'+index);
285 }else{ 294 }else{
286 - $('.video_index_url').val(window.location.href+'&video_index='+index+'&#video_index_'+index); 295 + $('.video_index_url').val('http://'+window.location.host+'/portal/region/getMoreVideo?city_id='+city_id+'&video_index='+index+'&#video_index_'+index);
287 } 296 }
288 } 297 }
289 298