联系我们

特别推荐

看直播 更多 >
2022首届中国保险大会
热点专题 更多 >
《一站一探》
标杆工厂
风起博鳌
不凡之路
'; str += '' + itemimg[index].length + '张'; str += '

'; str += '' + itemimg[index].title + ''; 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 < biaoqiangs; t++) { str += '' + keylen[t] + ''; } } else { for (var t = 0; t < keylength; t++) { str += '' + keylen[t] + ''; } } } else { str += '' + itemimg[index].keywords + ''; } str += '
'; index++; } else { var listid = zonsjing[i - index].id; var spid = listid.slice(0, 4); var imgbiao = zonsjing[i - index].imgbiao; //置顶标 var imgvid = zonsjing[i - index].imgvid; //视频标 if (spid == "ARTI" || spid == "ss") { //图文 if (spid == "ss") { //置顶的维护数据 str += '
  • ' + zonsjing[i - index].titzhi + '' + zonsjing[i - index] .title + '

    '; } else { str += '

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

    '; } 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 < biaoqiangs; t++) { str += '' + keylen[t] + ''; } } else { for (var t = 0; t < keylength; t++) { str += '' + keylen[t] + ''; } } } else { str += '' + zonsjing[i - index].keywords + ''; } str += '
    '; } else if (spid == "VIDE") { //视频 str += '
  • ' + zonsjing[i - index].title + '

    '; 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 < biaoqiangs; t++) { str += '' + keylen[t] + ''; } } else { for (var t = 0; t < keylength; t++) { str += '' + keylen[t] + ''; } } } else { str += '' + zonsjing[i - index].keywords + ''; } str += '
    '; } else { //图集 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 < biaoqiangs; t++) { str += '' + keylen[t] + ''; } } else { for (var t = 0; t < keylength; t++) { str += '' + keylen[t] + ''; } } } else { str += '' + zonsjing[i - index].keywords + ''; } str += '
  • '; } } } $("#pubu").append(str); if(end>=liLen){ $(".flowMoreLoading").find('i').hide(); $(".flowMoreLoading").find('p').html('已无更多内容'); jiazaizhong = false; }else{ jiazaizhong = true; } if (curPage == 1) { addPullLoaderEvent(); } //延时加载 Echo.init({ offset: 0, //离可视区域多少像素的图片可以被加载 throttle: 10 //图片延时多少毫秒加载 }); } var jiazaizhong = true; //获取窗口可视范围的高度 function getClientHeight() { var clientHeight = 0; if (document.body.clientHeight && document.documentElement.clientHeight) { var clientHeight = (document.body.clientHeight < document.documentElement.clientHeight) ? document.body .clientHeight : document.documentElement.clientHeight; } else { var clientHeight = (document.body.clientHeight > document.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 = $(".cai19599_list").offset().top; var modelHeight = $(".cai19599_list").height(); var ua = navigator.userAgent.toLowerCase(); var bottomHeight = $(".ind_search").height()+$(".footer").height()+$(".flowMoreLoading").height();//底通+搜索框+加载更多的高度 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-bottomHeight) { if (jiazaizhong) { jiazaizhong = false; curPage = curPage + 1; if (curPage <= Math.ceil(liLen / 20)) { //2 setTimeout(function() { zhanshi(first) ; }, 800); } else { $(".flowMoreLoading").find('i').hide(); $(".flowMoreLoading").find('p').html('已无更多内容'); } } } } /*分享*/ window.shareObj = {}; $("#pubu").on("click", ".share a", function() { $(".cai19599_list .con ul li").css("z-index", "1"); $(".cai19599_list .con ul li .bottom .share a.wx").removeClass("cur"); var k = $(this).attr("data"); switch (Number(k)) { case 1: if ($(this).parents(".share").find(".ind01cntvshare_weixin").length > 0) { $(".ind01cntvshare_weixin").remove(); $(this).parents(".share").parents("li").css("z-index", "0"); $(this).removeClass("cur"); } else { requireQrcode1("//r.img.cntv.cn/photoAlbum/templet/js/jquery.qrcode.min.js", $(this)); $(this).addClass("cur"); $(this).parents(".share").parents("li").css("z-index", "12"); } break; case 3: var url = $(this).parents("li").attr("data-url"); var title1 = $(this).parents("li").attr("data-title"); var pic = $(this).parents("li").attr("data-img"); if (pic.indexOf("https") != -1) { pic = pic; } else { pic = "https:" + pic; console.log(pic) } if (pic == "" || pic == undefined || pic == null || pic == " ") { var u = "//service.weibo.com/share/share.php?appkey=2078561600&title=" + encodeURIComponent( title1) + "&url=" + encodeURIComponent(url) + "&searchPic=false&style=simple"; window.open(u) } else { var u = "//service.weibo.com/share/share.php?appkey=2078561600&title=" + encodeURIComponent( title1) + "&url=" + encodeURIComponent(url) + "&pic=" + encodeURIComponent(pic) + "&searchPic=false&style=simple"; window.open(u) } break; case 4: var url = $(this).parents("li").attr("data-url"); var title1 = $(this).parents("li").attr("data-title"); var pic = $(this).parents("li").attr("data-img"); if (pic.indexOf("https") == -1) { pic = "https:" + pic; } var u = "//sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=" + encodeURIComponent(url) + "&summary=&title=" + encodeURIComponent(title1) + "&pics=" + pic + "&desc="; window.open(u); break; case 2: var url = $(this).parents(".share").parents("li").attr("data-url"); var title1 = $(this).parents("li").attr("data-title"); var pic = $(this).parents("li").attr("data-img"); if (pic.indexOf("https") == -1) { pic = "https:" + pic; } var u = "//connect.qq.com/widget/shareqq/index.html?url=" + encodeURIComponent(url) + "&summary=&title=" + encodeURIComponent(title1) + "&pics=" + pic + "&desc="; window.open(u) default: var url = $(this).parents("li").attr("data-url"); var title1 = $(this).parents("li").attr("data-title"); var pic = $(this).parents("li").attr("data-img"); shareObj.shareTitle = title1; shareObj.shareUrl = url; shareObj.pic = pic; break; } }); function requireQrcode1(url, index) { if ($("#codeqr").length > 1) { $("#codeqr").show(); } else { if ($("#shareqrjs").length > 0) { createTableCode1(index) } else { var d = document.createElement("script"); d.setAttribute("charset", "utf-8"); d.type = "text/javascript"; d.language = "javascript"; d.id = "shareqrjs"; d.src = url; document.getElementsByTagName("body")[0].appendChild(d); if (d.readyState) { d.onreadystatechange = function() { if (!this.readyState || this.readyState == "loaded" || this.readyState == "complete") { createTableCode1(index) } } } else { d.onload = function() { createTableCode1(index) } } } } } function createTableCode1(index) { $(".ind01cntvshare_weixin").remove(); var ss = '
    '; ss += '
    '; ss += '
    '; ss += '
    '; ss += "
    "; ss += '
    扫一扫 分享到微信
    '; ss += "
    "; index.parents(".share").append(ss); var ua = "canvas"; if (navigator.userAgent.indexOf("MSIE") > -1) { ua = "table" } var shcor = index.parents(".share").parents("li").attr("data-url"); jQuery("#codeqr").qrcode({ render: ua, foreground: "#000", background: "#FFF", width: 102, height: 102, text: shcor }); } $('body').on('click', function(ev) { var ev = ev || window.event; var target = ev.target || ev.srcElement; if ($(target).closest('.wx').length == 0) { if ($(".ind01cntvshare_weixin").length > 0) { $(".ind01cntvshare_weixin").remove(); $(".wx").removeClass("cur"); //$(".ind04cntvshare_weixin").parent(".share_icon").parent("li").css("z-index","0"); } } });
    '; //轮播图广告 CCTV_2020ad_1116._ajax('//galaxy.bjcathay.com/s?z=cathay&c=2005&op=1','cntvPczh_2005',function(data){ data.clickUrl = decodeURI(data.clickUrl); var lun_len = $(".lunbo19599_ind01 .plantingimg .plantting_img").length; $(".lunbo19599_ind01 .plantingimg .plantting_img").eq(lun_len-1).find(".img img").attr("src",data.smallImg) $(".lunbo19599_ind01 .plantingimg .plantting_img").eq(lun_len-1).find(".img a").attr("href",data.clickUrl) $(".lunbo19599_ind01 .plantingimg .plantting_img").eq(lun_len-1).find(".img a").css({"position":"relative","display":"block"}); if(data.ad_text=='true'){ $(".lunbo19599_ind01 .plantingimg .plantting_img").eq(lun_len-1).find(".img a").append(ad_text_style) } $(".lunbo19599_ind01 .plantingtext li.planting_column").eq(lun_len-1).find(".text h2 a").html(data.title) $(".lunbo19599_ind01 .plantingtext li.planting_column").eq(lun_len-1).find(".text span a").html(data.brief) $(".lunbo19599_ind01 .plantingtext li.planting_column").eq(lun_len-1).find(".text h2 a").attr("href",data.clickUrl) $(".lunbo19599_ind01 .plantingtext li.planting_column").eq(lun_len-1).find(".text span a").attr("href",data.clickUrl) if(data.eventExposure!=''){ $("body").append('') } }) //通栏广告 CCTV_2020ad_1116._ajax('//galaxy.bjcathay.com/s?z=cathay&c=2006&op=1','cntvPczh_2006',function(data){ data.clickUrl = decodeURI(data.clickUrl); $(".cai19599_ind02.ispcbox a").attr("href",data.clickUrl) $(".cai19599_ind02.ispcbox a").css({"position":"relative","display":"block"}); if(data.ad_text=='true'){ $(".cai19599_ind02.ispcbox a").append(ad_text_style) } $(".cai19599_ind02.ispcbox a img").attr("src",data.smallImg) if(data.eventExposure!=''){ $("body").append('') } }) //信息流广告 CCTV_2020ad_1116._ajax('//galaxy.bjcathay.com/s?z=cathay&c=2007&op=1','cntvPczh_2007',function(data){ data.clickUrl = decodeURI(data.clickUrl); setTimeout(function(){ var gg_2007 =""; gg_2007 += '
  • '; $("#pubu li").eq(9).after(gg_2007) //$("#gg_2007 img a").append(ad_text_style) },800) if(data.eventExposure!=''){ $("body").append('') } }) }
    手机访问
    返回顶部