正在加载...

'; str+='
'; str+='

'+itemimg[index].title+'

'; str+='

'+itemimg[index].brief+'

'; str+='
'+time_Num[0]+''; if(itemimg[index].keywords.indexOf(",") >-1 ){ var keylen = itemimg[index].keywords.split(","); var keylength = keylen.length; if(keylength>biaoqiangs){ for(var t=0;t'+keylen[t]+''; } }else{ for(var t=0;t'+keylen[t]+''; } } }else{ str +=''+itemimg[index].keywords+''; } str+='
'; //index++; }else{ str+='
  • '; str+=''; str+='
    '; if(itemimg[index].keywords.indexOf(",") >-1 ){ var keylen = itemimg[index].keywords.split(","); var keylength = keylen.length; if(keylength>biaoqiangs){ for(var t=0;t'+keylen[t]+''; } }else{ for(var t=0;t'+keylen[t]+''; } } }else{ str +=''+itemimg[index].keywords+''; } str+'
  • '; } index++; }else{ var listid = zonsjing[i-index].id; var spid = listid.slice(0,4); time_Num = zonsjing[i-index].focus_date; time_Num = Number(time_Num); time_Num = formatDate(time_Num); time_Num = time_Num.split(" "); if(spid == "ARTI"){//图文 str+='
  • '+zonsjing[i-index].title+'

    '+zonsjing[i-index].brief+'

    '+time_Num[0]+''; if(zonsjing[i-index].keywords.indexOf(",") >-1 ){ var keylen = zonsjing[i-index].keywords.split(","); var keylength = keylen.length; if(keylength>biaoqiangs){ for(var t=0;t'+keylen[t]+''; } }else{ for(var t=0;t'+keylen[t]+''; } } }else{ str +=''+zonsjing[i-index].keywords+''; } str+='
  • '; }else if(spid == "PHOA"){//图集 if($(window).width()>1024){ str+='
  • '; str+='
    '; str+='

    '+zonsjing[i-index].title+'

    '; str+='

    '+zonsjing[i-index].brief+'

    '; str+='
    '+time_Num[0]+''; if(zonsjing[i-index].keywords.indexOf(",") >-1 ){ var keylen = zonsjing[i-index].keywords.split(","); var keylength = keylen.length; if(keylength>biaoqiangs){ for(var t=0;t'+keylen[t]+''; } }else{ for(var t=0;t'+keylen[t]+''; } } }else{ str +=''+zonsjing[i-index].keywords+''; } str+='
  • '; }else{ str+='
  • '; str+=''; str+='
    '; if(zonsjing[i-index].keywords.indexOf(",") >-1 ){ var keylen = zonsjing[i-index].keywords.split(","); var keylength = keylen.length; if(keylength>biaoqiangs){ for(var t=0;t'+keylen[t]+''; } }else{ for(var t=0;t'+keylen[t]+''; } } }else{ str +=''+zonsjing[i-index].keywords+''; } str+'
  • '; } } } if(i==4){ if(tuijian0[iis]){ str+='
  • '+tuijian0[iis]+'
  • '; }else if(tuijian1[iis1]){ str+='
  • '+tuijian1[iis1]+'
  • '; } iis++; iis1++; } if(i==9){ if(tuijian0[iis]){ str+='
  • '+tuijian0[iis]+'
  • '; }else if(tuijian1[iis1]){ str+='
  • '+tuijian1[iis1]+'
  • '; } iis++; iis1++; } } $(".shz19353_ind02 .con ul").append(str); if (!ispc) { $(".share").hide(); $("a").removeAttr("target"); } showLi(1,".shz19353_ind02",20); //延时加载 Echo.init({ offset: 0, //离可视区域多少像素的图片可以被加载 throttle:10 //图片延时多少毫秒加载 }); } function showLi(curPage,obj,pageSize){ // 获得ul下所有的li var lis = $(obj).find(".con ul li.zc"); // 根据curPage计算出beginLi和endLi 就是要显示的li从那一条开始,到哪一条结束 var beginLi = (curPage-1)*pageSize;// 从0开始 var endLi = beginLi + pageSize - 1; if (endLi >= lis.length-1){ endLi = lis.length; } for (var i = beginLi; i <= endLi; i++){ $(lis).eq(i).css("display","block"); } if(curPage==1){ pullGetMore(); addPullLoaderEvent(); } } var jiazaizhong = true; //获取窗口可视范围的高度 function getClientHeight(){ var clientHeight=0; if(document.body.clientHeight&&document.documentElement.clientHeight){ var clientHeight=(document.body.clientHeightdocument.documentElement.clientHeight)?document.body.clientHeight:document.documentElement.clientHeight; } return clientHeight; } //获取窗口滚动条高度 function getScrollTop(){ var scrollTop=0; if(document.documentElement&&document.documentElement.scrollTop){ scrollTop=document.documentElement.scrollTop; }else if(document.body){ scrollTop=document.body.scrollTop; } return scrollTop; } //获取文档内容实际高度 function getScrollHeight(){ return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight); } // 绑定:上拉加载更多监听 function addPullLoaderEvent() { if(window.addEventListener) { window.addEventListener('scroll', pullGetMore, false);//滚动条滚动执行addcomment方法 } else { window.attachEvent('onscroll', pullGetMore);//ie滚动条滚动执行addcomment方法 } } function pullGetMore(ev) { var sTop = document.body.scrollTop || document.documentElement.scrollTop; //距离body的距离 var dHeight = $(document).height(), //文档的高度 cHeight = $(window).height(); //可见内容区高度 var shangpanyi = $(".shz19353_ind02").offset().top; var modelHeight = $(".shz19353_ind02").height(); var ua = navigator.userAgent.toLowerCase(); if ((ua.indexOf('mqqbrowser') > -1 && ua.indexOf('android') > -1) || (navigator.userAgent.indexOf('UCBrowser') > -1 &&ua.indexOf('android') > -1)) { cHeight = cHeight + 40; //上面菜单高度 } if (sTop > shangpanyi + modelHeight - cHeight) { if(jiazaizhong){ jiazaizhong = false; curPage=curPage+1; if(curPage <= Math.ceil(liLen/20)){//2 setTimeout(function(){ showLi(curPage,".shz19353_ind02",20); jiazaizhong = true; },800); }else{ $('.shz19353_ind02 .more').show(); $('.shz19353_ind02 .more p').text('已无更多内容'); $(".shz19353_ind02 .more").addClass("nomore"); } } } }
    手机访问
    返回顶部