展开
    分享到:
  • 2016
  • 2017
  • 2018
  • 2019
  • 2020
  • 2021
  • 01
  • 02
  • 03
  • 04
  • 05
  • 06
  • 07
  • 08
  • 09
  • 10
  • 11
  • 12

2022-06-14

查看最新

正在加载...

'; document.getElementById(targetId).innerHTML = oBuf }, killMe: function() { Module.calendarArray[this.calendarId] = null } }; var now1; //window.onload = function() { if (!now) { now1 = new Date(); } else { now1 = now; } //点击某天后的页面处理 function dwgl(day){ $("#n_crili td").removeClass('current'); $("#n_crili td").each(function(){ var thisDay = $(this).find('a').html(); if(parseInt(thisDay)<10){ thisDay = "0" + thisDay; } if(thisDay==day){ $(this).addClass('current'); } }) $("#yidongrili td").removeClass('current'); $("#yidongrili td").each(function(){ var thisDay = $(this).find('a').html(); if(parseInt(thisDay)<10){ thisDay = "0" + thisDay; } if(thisDay==day){ $(this).addClass('current'); } }) if($("#content li").length>20){ $('.rililanmu19629_ind01 .flowMoreLoading').removeClass("nomore"); $(".rililanmu19629_ind01 .flowMoreLoading p").html('正在加载'); }else{ $('.rililanmu19629_ind01 .flowMoreLoading').addClass("nomore"); $(".rililanmu19629_ind01 .flowMoreLoading p").html('已无更多内容'); } } //var oneCalendar = new Module.calendar(); var grobalYear = ''; var grobalMon = ''; var grobalDay = ''; (function(){ var now=new Date(); grobalYear = now.Format("yyyy"); grobalMon = now.Format("MM"); grobalDay = now.Format("dd"); //pc日历初始化 var c=new Module.calendar(); c.calendar_day_click=function(sIn){ var str = ""; var year = sIn.substring(0, 4); var mon = sIn.substring(sIn.indexOf("-") + 1, sIn.lastIndexOf("-")); var day = sIn.substring(sIn.lastIndexOf("-") + 1); clickDate = day; if(mon < 10) mon = "0" + mon; if(day < 10) day = "0" + day; var pre_month = ""; if (now.getMonth()+1 < 10) { pre_month = "0"; } var pre_day = ""; if (now.getDate() < 10) { pre_day = "0"; } var time = new Date(year, mon-1, day, 0, 0, 0); var start = new Date(2007, 11, 30, 0, 0, 0); if((time < now) && (time > start)){ var time_1 = year + mon + day; if (time_1 < 20210101) { str = "//tv.cctv.com/lm/jryz/20201231.shtml"; //这里的地址使用新地址域名例如http://news.cntv.cn/lm/xinwenlianbotest/20130515.shtml window.open(str); } if(time_1>=20210101){ var time2=new Date(year, mon-1, day, 06, 0, 0); if(now start)){ var time_1 = year + mon + day; if (time_1 < 20210101) { str = "//tv.cctv.com/lm/jryz/20201231.shtml"; //这里的地址使用新地址域名例如http://news.cntv.cn/lm/xinwenlianbotest/20130515.shtml window.open(str); } if(time_1>=20210101){ var time2=new Date(year, mon-1, day, 06, 0, 0); if(now'; html +=''; html +='完整版' + listArray[i].title + ''; html +='' } } if(typeof ifIndex!='undefined' && ifIndex){ dataDate = year + "-" + mon + "-" + day; } $("#content").html(html); $(".rilititle p").html(year+"-"+mon+"-"+day+""); $(".suctionW span").eq(0).html(year+"-"+mon+"-"+day); dwgl(day); $(".rililanmu19629_ind01 .yidongrili .calendar .day_box .moon .close i").click(); listloading(".rililanmu19629_ind01 .rililistbox",20); //if ($(window).width() < 1024) { //$(".rililanmu19629_ind01 .rililistbox .rilititle span").show(); // } // } //如果是浮层点的,则调用top if($(".riliSuction").length>0){ $("body,html").animate({ scrollTop: $(".rililanmu19629_ind01").offset().top },100); } var chooseYear = year+'年'; var chooseMonth = mon+'月'; $(".select_year input").eq(0).val(chooseYear); $(".selecttxt2 input").eq(0).val(chooseMonth); }else{ for (var i = 0; i < list.length; i++) { contentArray.push(list[i]); } page++; getApiContent(year,mon,day,page); } } }) } var dataDate = ''; function contentShow(year,mon,day, ifIndex){ contentArray = new Array(); getApiContent(year,mon,day, 1, ifIndex) } //页面初始化 if(window.location.href.indexOf("pageId=")==-1){ $("#content").html(''); $(function(){ contentShow(now.Format("yyyy"),now.Format("MM"),now.Format("dd"), true); }) } //$(".backday").hide(); //$(".rililanmu19629_ind01 .rililistbox .rilititle span").hide(); var chooseYear = now.Format("yyyy")+'年'; var chooseMonth = now.Format("MM")+'月'; $(".select_year input").eq(0).val(chooseYear); $(".selecttxt2 input").eq(0).val(chooseMonth); //页面监听 var mobileChange = false; var mobileMonth = ''; window.setInterval(function(){ var year = $(".select_year input").eq(0).val(); var month = $(".selecttxt2 input").eq(0).val(); if ($(window).width() < 1024) { var year = ''; var month = ''; $(".yidongrili .list1 li").each(function(){ if($(this).hasClass('swiper-slide-active')){ year = $(this).html(); } }); $(".yidongrili .list2 li").each(function(){ if($(this).hasClass('swiper-slide-active')){ month = $(this).html(); } }); mobileMonth = month; var nowYear = new Date().Format("yyyy"); if(!mobileChange){ if(year==nowYear){ var nowMonth = new Date().Format("MM"); var index = 0; $(".yidongrili .list2 li").each(function(i){ var thisMonth = $(this).html(); if(nowMonth==thisMonth){ index = i; } }) $(".yidongrili .list2 li:gt("+index+")").hide(); swiper02.init(); swiper02.slideTo(index); mobileChange=true; } } year = year + '年'; month = month + '月'; if((chooseYear!=year||chooseMonth!=month)&&mobileChange){ Module.calendarArray[1].showCalendar('yidongrili',parseInt(month.replace('月','')-1),year.replace('年',''),null) var changeYear = false; if(chooseYear!=year){ changeYear = true; } chooseYear = year; chooseMonth = month; if(year.replace('年','')==nowYear){ var nowMonth = new Date().Format("MM"); var index = 0; $(".yidongrili .list2 li").each(function(i){ var thisMonth = $(this).html(); if(nowMonth==thisMonth){ index = i; } }) //TODO if(changeYear){ $(".yidongrili .list2 li:gt("+index+")").hide(); swiper02.init(); //滑到mobileMonth var index = 0; $(".yidongrili .list2 li").each(function(i){ var thisMonth = $(this).html(); if(mobileMonth==thisMonth){ index = i; } }) swiper02.slideTo(index); mobileMonth=chooseMonth.replace('月',''); } }else{ if(changeYear){ $(".yidongrili .list2 li").show(); swiper02.init(); //滑到mobileMonth $(".yidongrili .list2 li").each(function(i){ var thisMonth = $(this).html(); if(mobileMonth==thisMonth){ index = i; } }) swiper02.slideTo(index); mobileMonth=chooseMonth.replace('月','');; } } var nowTitle = $('.rilititle p').text(); if(chooseYear==nowTitle.split('-')[0]+'年'&&chooseMonth==nowTitle.split('-')[1]+'月'){ dwgl(nowTitle.split('-')[2]); } } }else{ var nowYear = new Date().Format("yyyy") + '年'; if(year==nowYear){ var nowMonth = new Date().Format("MM") + '月'; var index = 0; $("#riliscrollbar2 li").each(function(i){ var thisMonth = $(this).find('a').html(); if(nowMonth==thisMonth){ index = i; } }) $("#riliscrollbar2 li:lt("+index+")").hide(); //如果月份大于当前月则显示为当前月 if(month>nowMonth){ $(".selecttxt2 input").eq(0).val(nowMonth); } }else{ $("#riliscrollbar2 li").show(); } if(chooseYear!=year||chooseMonth!=month){ Module.calendarArray[0].showCalendar('n_crili',parseInt(month.replace('月','')-1),year.replace('年',''),null) chooseYear = year; chooseMonth = month; var nowTitle = $('.rilititle p').text(); if(chooseYear==nowTitle.split('-')[0]+'年'&&chooseMonth==nowTitle.split('-')[1]+'月'){ dwgl(nowTitle.split('-')[2]); } //$(".rilititle p").html(grobalYear+'-'+grobalMon+'-'+grobalDay+''); //$(".suctionW span").eq(0).html(grobalYear+'-'+grobalMon+'-'+grobalDay); } } },50); //返回今天 function returnToday(){ if ($(window).width() < 1024) { swiper01.init(); swiper02.init(); $(".yidongrili .list1 li").removeClass('swiper-slide-active'); $(".yidongrili .list1 li").each(function(index) { if ($(this).html() == now.Format("yyyy")) { swiper01.slideTo(index); } }); $(".yidongrili .list2 li").removeClass('swiper-slide-active'); $(".yidongrili .list2 li").each(function(index) { if ($(this).html() == now.Format("MM")) { swiper02.slideTo(index); } }); }else{ } contentShow(dataDate.split('-')[0], dataDate.split('-')[1], dataDate.split('-')[2],true); } var div1 = document.querySelector('.rililanmu19629_ind01 .yidongrili'); div1.addEventListener('touchmove', function(e) { var ev = e || window.event; var touch = ev.targetTouches[0]; e.preventDefault(); })
播出信息
  • 央视影音

    扫一扫下载

手机访问

扫一扫
手机继续看

中央广播电视总台央视网版权所有