Commit e3e47c1f by libai

测试

parent 9cdb6075
Showing with 2 additions and 6 deletions
......@@ -862,13 +862,9 @@ $(function(){
}
function layzImg(){
if(layzImgNum>50)var iNum=layzImgNum;
var iNum=0;
var iNum=$(".video-box-ul li").length-32
console.log($(".video-box-ul li").length)
for(var i=iNum;i<$(".video-box-ul li").length;i++){
if( $(".video-box-ul li .video-top-box").eq(i).attr("data-type2")==1){
iNum++
continue;
}
if(($(".video-box-ul li").eq(i).offset().top)-($(window).height()+$(document).scrollTop())<300){
$(".video-box-ul li .video-top-box").eq(i).css("background","url(https://zhibocdn.yabolive.net/comm"+$(".video-box-ul li .video-top-box").eq(i).attr("data-type")+"?x-oss-process=video/snapshot,t_90000,f_jpg,w_342,h_0,m_fast,f_jpg)no-repeat")
$(".video-box-ul li .video-top-box").eq(i).css("background-size","cover")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment