'; $("#slide").append(galhtml); if(data.eventExposure!=''){ $("body").append('') } }, error:function(){ }, timeout:2800, complete:function(){    lunboload(); } }) } //轮播图js var ind01index=0; var isFlag=true; var setmove; var ind01_silde_lenght; var ind01_silde; var ind01index_cur=""; var ind01_left; var ind01_right; function lunboload(){ ind01_silde=$(".xinwen18886_ind01 .list_con .silde"); ind01_silde_lenght=$(".xinwen18886_ind01 .list_con .silde").length; ind01_left=$(".xinwen18886_ind01 .leftbtn"); ind01_right=$(".xinwen18886_ind01 .rightbtn"); if ($(window).width() > 1024) { if(ind01_silde_lenght<2){ $(".xinwen18886_ind01 .page").hide(); $(".xinwen18886_ind01 .btn").hide(); }else{ $(".xinwen18886_ind01 .page .all").html(ind01_silde_lenght); $(".xinwen18886_ind01 .page").show(); $(".xinwen18886_ind01 .btn").show(); } } ind01_right.click(function(){ if(isFlag){ ind01index++; if(ind01index>=ind01_silde_lenght){ ind01index=0; } ind01move(ind01index); } }) ind01_left.click(function(){ if(isFlag){ ind01index--; if(ind01index<0){ ind01index=ind01_silde_lenght-1; } ind01move(ind01index); } }) //微信分享点击 $(".xinwen18886_ind01 .list_con .silde").each(function(index, element) { if($(this).find(".right_text").attr("data-guid") != ""){ $(this).find(".right_text h3 a").attr("target",""); $(this).find(".right_text h3 a").removeAttr("href") $(this).find(".right_text h3 a").attr("onclick","javascript:videoplay('"+$(this).find(".right_text").attr("data-guid")+"')"); $(this).find(".right_text p a").attr("target",""); $(this).find(".right_text p a").removeAttr("href") $(this).find(".right_text p a").attr("onclick","javascript:videoplay('"+$(this).find(".right_text").attr("data-guid")+"')"); $(this).find(".image a").attr("target",""); $(this).find(".image a").removeAttr("href") $(this).find(".image a").attr("onclick","javascript:videoplay('"+$(this).find(".right_text").attr("data-guid")+"')"); $(this).find(".image").append('') } //分享内容修改 $(this).find(".share a").click(function(){ var href=$(".xinwen18886_ind01 .list_con .silde").eq(index).attr("dataurl"); var title=$(".xinwen18886_ind01 .list_con .silde").eq(index).find(".right_text h3 a").text(); var brief=$(".xinwen18886_ind01 .list_con .silde").eq(index).find(".right_text p a").text(); var shaimg=$(".xinwen18886_ind01 .list_con .silde").eq(index).find(".image img").attr("src"); if(href==undefined){ href="http://news.cctv.com/" } shareObj.shareUrl = href; shareObj.shareTitle = title; shareObj.pic = "https://"+shaimg.split("//")[1] shareObj.summary =brief; if($(this).hasClass("weixin")){ if($(this).parents(".share").find(".ind01cntvshare_weixin").length>0){ $(".ind01cntvshare_weixin").remove() }else{ requireQrcode2(index,href) } } }) }); if ($(window).width() > 1024) { $("#slide").hover(function(){ clearInterval(setmove); },function(){ if(isFlag){ clearInterval(setmove); setmove = setInterval(function(){ ind01index++; if(ind01index>=ind01_silde_lenght){ ind01index=0; } ind01move(ind01index); },5000) } }) $(".xinwen18886_ind01 .btn").hover(function(){ clearInterval(setmove); },function(){ if(isFlag){ clearInterval(setmove); setmove = setInterval(function(){ ind01index++; if(ind01index>=ind01_silde_lenght){ ind01index=0; } ind01move(ind01index); },5000) } }) setmove = setInterval(function(){ ind01index++; if(ind01index>=ind01_silde_lenght){ ind01index=0; } ind01move(ind01index) },5000) } $('.xinwen18886_ind01 .list_con .silde .nesting li').each(function(){ $(this).on("mouseenter",function(){ $(this).find(".text").addClass("hover"); $(this).find(".text").stop().animate({'height':'203px'},300); }).on("mouseleave",function(){ var _that=$(this); setTimeout(function(){ _that.find(".text").removeClass("hover"); },250) $(this).find(".text").stop().animate({'height':'36px'},300); }) }) var isHttps = location.href.substr(0, 5) == "https" ? "true": "false"; } function ind01move(index){ if(isFlag && index != ind01index_cur){ ind01_silde.stop(true,true); if(ind01_silde.eq(index).find('.nesting').length==1){ ind01_silde.eq(index).find('.nesting ul li').each(function(i){ ind01_silde.eq(index).find('.nesting ul li').eq(i).find('.img_nes img').attr('src',ind01_silde.eq(index).find('.nesting ul li').eq(i).find('.img_nes img').attr('data-src')); }) ind01_silde.eq(index).find('.image a').addClass("noClick"); ind01_silde.eq(index).find('.image a').attr("href","javascript:;"); ind01_silde.eq(index).find('.nesting .list01').css({'top':'-238px'}); ind01_silde.eq(index).find('.nesting .list02').css({'bottom':'-238px'}); ind01_silde.eq(index).find('.nesting .list01').stop().animate({'top':'0px'},300); ind01_silde.eq(index).find('.nesting .list02').stop().animate({'bottom':'0px'},300); } ind01_silde.eq(index).find('.image img').attr('src',ind01_silde.eq(index).find('.image img').attr('data-src')); ind01_silde.eq(ind01index_cur).fadeOut(400) ind01_silde.eq(index).fadeIn(500); $(".xinwen18886_ind01 .page .now").html(index+1) ind01index_cur = index; } } var playerParas function videoplays(guid){ if(window.innerWidth<=1024){ var ww = $(".difangpindao19796_ind01 .list_con").width(); var hh= ww/16*9; var playerOriginalWidth =ww/$(window).width(); }else{ var ww = 785; var hh = 440; } $("#video").html(""); $(".difangpindao19796_ind01 .video_con").css({"width":ww,"height":hh}) playerParas = { divId: "video", /*播放器容器id,必填项*/ w: ww, /*播放器宽度,必填项*/ h: hh, /*播放器高度,必填项*/ t: "news", /*台名称,比如news,sports,tv等,必填项*/ videoCenterId: guid, /*视频生产中心guid,必填项*/ br: "", /*设置默认码率*/ id: "null", /*可填null,必填项*/ videoId: "VIDE100215108600", /*视频集id*/ url: "", /*视频页面url,如http://tv.cntv.cn/video/C18472/a28126e5e0424a44af6a9bc4c5a47742*/ articleId: "", /*文章id*/ filePath: "", /*文件路径*/ sysSource: "", /*视频来源*/ channelId: "", /*可为空*/ scheduleId: "C18472000001", /*关键字*/ isLogin: "", /*用户中心相关,是否登录*/ userId: "C18472000001", /*用户中心相关,用户登录id*/ isDefaultPreImage: "false", /*是否默认从vdn取图,非自动播放情况下才有效*/ isAutoPlay: "true", /*是否自动播放,只有false为不自动播放,其它值为自动播放*/ posterImg: "", /*播放器前贴图片*/ isAudio: "false", /*是否是音频播放器,为true表示是音频,false表示是视频*/ isHttps: "isHttps", /*是否https视频,true是,false不是*/ wmode: "opaque", /*flash播放器的窗口模式,默认为opaque*/ wideMode: "normal", /*flash播放器的窗口模式,默认为opaque*/ setupOn: "false", /*是否显示设置按钮,默认为false*/ playerType : "vod_h5", /*播放器类型,vod表示普通播放器*/ drm:"false", webFullScreenOn: "false" , /*是否显示全屏按钮,默认true表示显示*/ h5:{ userRecordEnab:false } }; createVodPlayer(playerParas); $(".xinwen18886_ind01 .video_con").show(); $("xinwen18886_ind01").css("z-index",'99') isFlag=false; lunbo18795_ind01.stopAutoplay(); $(".difangpindao19796_ind01 .list_con").css("visibility","hidden") clearInterval(setmove); $("#slide").unbind("hover") } function tellPageWhenFullScreen(flashplayer_video){ $(".xinwen18886_ind01").css("z-index","1000"); $(".xinwen18886_ind01 .btn").hide(); } function tellPageWhenNomalScreen(flashplayer_video){ $(".xinwen18886_ind01").removeAttr("style") $(".xinwen18886_ind01 .btn").show(); } function videoplay(guid){ if(typeof(playerParas)!="undefined"){ if(playerParas._isH5 !== undefined && playerParas._isH5){ player = vodh5player.namespace.getVodPlayer(); if(player && !player.isDisposed_){ // dispose vodh5player.namespace.dispose(player); videoplays(guid) } }else{ if(typeof destroyH5VodHls!=="undefined" && typeof vodPlayerObjs!=="undefined" && vodPlayerObjs["video"]) { destroyH5VodHls(vodPlayerObjs["video"], "destroyplayer"); //divId为播放器容器id } document.getElementById("video").innerHTML = ""; //divId为播放器容器id videoplays(guid) } }else{ videoplays(guid) } } function videoclose(){ isFlag=true; $("#video").html(""); $(".xinwen18886_ind01 .video_con").hide(); $("xinwen18886_ind01").attr("style","") $("#slide").hover(function(){ clearInterval(setmove); },function(){ clearInterval(setmove); setmove = setInterval(function(){ ind01index++; if(ind01index>=ind01_silde_lenght){ ind01index=0; } ind01move(ind01index); },5000) }) if ($(window).width() < 1024) { $(".difangpindao19796_ind01 .list_con").css("visibility","visible") lunbo18795_ind01.startAutoplay(); } clearInterval(setmove); setmove = setInterval(function(){ ind01index++; if(ind01index>=ind01_silde_lenght){ ind01index=0; } ind01move(ind01index) },5000) } function requireQrcode2(index,url) { if ($("#codeqr").length > 1) { $("#codeqr").show() } else { createTableCode2(index,url) } function createTableCode2(index,url) { $(".ind01cntvshare_weixin").remove(); var ss = '
'; ss += '
'; ss += '
'; ss += '
'; ss += "
"; ss += '
扫一扫 分享到微信
'; ss += "
"; $(".xinwen18886_ind01 .list_con .silde").eq(index).find(".right_text .share").append(ss); var ua = "canvas"; if (navigator.userAgent.indexOf("MSIE") > -1) { ua = "table" } jQuery("#codeqr").qrcode({ render: ua, foreground: "#000", background: "#FFF", width: 102, height: 102, text: shareObj.shareUrl }); } }

正在加载...

' + itemimg[index].title + '

' + itemimg[index].brief + '

'; 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; //视频标 var imgtu = zonsjing[i - index].image; var brief = zonsjing[i - index].brief; if (spid == "ARTI" || spid == "ss") { //图文 if (spid == "ss") { //置顶的维护数据 if(imgtu){ str += '
  • ' + zonsjing[i - index].titzhi + '' + zonsjing[i - index] .title + '

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

    '; } else { str += '

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

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

    '; } 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((i%10)==9 && i>0 && (((i+1)/10)-1)0){ str += '' } } $("#pubu").append(str); 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); jiazaizhong = true; },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.cctvpic.com/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 ($(this).parents("li").attr("data-img") == "" || $(this).parents("li").attr("data-img") == undefined || $(this).parents("li").attr("data-img") == null || $(this).parents("li").attr("data-img") == " ") { pic = "https:" +"//p5.img.cctvpic.com/photoAlbum/templet/common/DEPA1647239542706186/local_200_200.jpg"; } 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; } if ($(this).parents("li").attr("data-img") == "" || $(this).parents("li").attr("data-img") == undefined || $(this).parents("li").attr("data-img") == null || $(this).parents("li").attr("data-img") == " ") { pic = "https:" +"//p5.img.cctvpic.com/photoAlbum/templet/common/DEPA1647239542706186/local_200_200.jpg"; } 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('.weixin').length == 0) { if ($(".ind01cntvshare_weixin").length > 0) { $(".ind01cntvshare_weixin").remove(); $(".wx").removeClass("cur"); //$(".ind04cntvshare_weixin").parent(".share_icon").parent("li").css("z-index","0"); } } }); }
    手机访问
    返回顶部