Economic Watch
Economic Watch
    分享到:
'; ss += '
'; ss += "
"; ss += '
扫一扫 分享到微信
'; ss += "
"; $(".cctvEng20143_shipinhao_ind01").find("ul.fenxiang").append(ss); var ua = "canvas"; if (navigator.userAgent.indexOf("MSIE") > -1) { ua = "table" } jQuery("#codeqr1").qrcode({ render: ua, foreground: "#000", background: "#FFF", width: 102, height: 102, text: url }); } } $("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) { $(".cctvEng20143_shipinhao_ind01 .header_info ul.fenxiang .weixin").removeClass("cur"); $(".ind01cntvshare_weixin").remove(); $(".ind01cntvshare_weixin").parent(".fenxiang").parent("li").css("z-index", "0"); } } }); if(!ispc){ var sharefuceng = false; var h =(document.documentElement.clientHeight || window.innerHeight) ; function setShareStyle(){ if(h < $('#share_box').height()){ document.getElementsByTagName('body')[0].addEventListener('touchmove',function(e){e.returnValue = true;}, false); //$('.page_wrap').css('display','none'); $('.english20143_nav_mo,.cctvEng20143_shipinhao_ind01,.cctvEng20143_shipinhao_list,.footer').css('display','none'); $('#sharebox .share_box').css('position','static'); $('#sharebox').css('position','static').css('height','auto'); }else{ document.getElementsByTagName('body')[0].addEventListener('touchmove', function(e) {e.preventDefault();},false);//{passive: false} //$('.page_wrap').css('display','block'); $('.english20143_nav_mo,.cctvEng20143_shipinhao_ind01,.cctvEng20143_shipinhao_list,.footer').css('display','block') $('#sharebox .share_box').css('position','absolute'); $('#sharebox').css('position','fixed').css('height','100%'); } } // 视频号页分享显示与隐藏 $(".cctvEng20143_shipinhao_ind01 .top_area .list li.btn_share").click(function () {//分享按钮点击事件 // var share_obj2 = new nativeShare('fucengshare',config); $('#sharebox').css('display', 'block'); sharefuceng = true; setShareStyle(); }); $('#share_cancel').click(function () { document.getElementsByTagName('body')[0].addEventListener('touchmove',function(e){e.returnValue = true;}, false); $('.english20143_nav_mo,.cctvEng20143_shipinhao_ind01,.cctvEng20143_shipinhao_list,.footer').css('display','block') $('#sharebox').css('display', 'none'); sharefuceng = false; }); $("#sharebox").bind('click', function (e) { var e = e || window.event; //浏览器兼容性 var elem = e.target || e.srcElement; while (elem) { //循环判断至跟节点,防止点击的是div子元素 if (elem.id && elem.id == 'share_box') { return; } elem = elem.parentNode; } document.getElementsByTagName('body')[0].addEventListener('touchmove',function(e){e.returnValue = true;}, false); $('.english20143_nav_mo,.cctvEng20143_shipinhao_ind01,.cctvEng20143_shipinhao_list,.footer').css('display','block') $("#sharebox").css("display", "none"); sharefuceng = false; setShareStyle(); }); $(window).resize(function(){ setTimeout(function(){ h =(document.documentElement.clientHeight || window.innerHeight); if(sharefuceng){ setShareStyle(); } },300) }) }
Click for more
'+timelength+'
'; // constr+='
Global View'+fous_Date+'
'; // constr+='
'; if((i+1)%3==0){ constr+='
  • '; }else{ constr+='
  • '; } constr+='
    '+total[i].title+''+timelength+'
    '; constr+='
    '+fous_Date+'
    '; constr+='
  • '; $(".cctvEng20143_shipinhao_list .con ul").html(constr); Echo.init({ offset: 0, //离可视区域多少像素的图片可以被加载 throttle:10 //图片延时多少毫秒加载 }); gundong = true; } } $('.cctvEng20143_shipinhao_list .loading_more span').html("Loading..."); if (total.length<9){ //$(".English19035_ind05 .more i").hide(); $(".cctvEng20143_shipinhao_list .loading_more").addClass("nomore"); $('.cctvEng20143_shipinhao_list .loading_more span').html("No more updates"); gundong = false; } }, error: function () { //console.log("跨域了"); alert("跨域了"); } }); } var gundong = true; window.onresize = window.onscroll = function () { var height=getClientHeight(), // 窗口滚动条高度 theight=getScrollTop(), // 窗口可视范围的高度 rheight=getScrollHeight(), // 滚动条距离底部的高度 bheight=rheight-theight-height; if (gundong){ if (bheight<=350){ //console.log(1111) gundong = false; setTimeout(function(){ page = page+1; loadadd(page,9); },200); } } } } else { var listnum=12; var urlend=false; var page=1; var datalist=[]; var total=0; var pageid="PAGErZRTmCFoDL12Jh4wkqDJ230209"; var fous_Date=""; var pagenum; var jiazai=true; function loadlist(page,listnum){ $.ajax({ type: "get", url: "//api.cntv.cn/NewVideo/getVideoListByPrimaryPageId?id="+pageid+"&mode=2&sort=desc&n="+listnum+"&p="+page+"&serviceId=pcenglish", cache: true, dataType: "jsonp", jsonp: "cb", jsonpCallback: "CallbackPC"+page, async:false, success: function(data) { total=data.data.total; var data = data.data.list; var str=""; for(var i=0;i'; // str+='
    '+data[i].title+'
    '+timelength+'
    '; // str+='
    Global View'; // str+= ''+fous_Date+'
    '; // str+=''; if((i+1)%3==0){ str+='
  • '; }else{ str+='
  • '; } str+='
    '+data[i].title+''+timelength+'
    '; str+='
    '+fous_Date+'
    '; str+='
  • '; } $(".cctvEng20143_shipinhao_list .con ul").append(str); Echo.init({ offset: 0, //离可视区域多少像素的图片可以被加载 throttle:10 //图片延时多少毫秒加载 }); pagenum=page*listnum; if(pagenum>=total){ pagenum=total; $(".cctvEng20143_shipinhao_list .loading_more span").html('No more updates'); $(".cctvEng20143_shipinhao_list .loading_more").addClass('nomore'); // $(".xinwen18886_ind04 .more").unbind("click"); }else{ jiazai=true; $(".cctvEng20143_shipinhao_list .loading_more").removeClass("nomore") $(".cctvEng20143_shipinhao_list .loading_more span").html("Click for more"); } }, error: function () { //console.log("跨域了"); alert("跨域了"); } }); } loadlist(1,listnum); //点击加载更多 $(".cctvEng20143_shipinhao_list .loading_more .more_box").click(function(){ if(jiazai){ jiazai=false; page++; $(".cctvEng20143_shipinhao_list .loading_more").removeClass("nomore") $(".cctvEng20143_shipinhao_list .loading_more span").html("Click for more"); setTimeout(function(){ loadlist(page,12); },500) } }) }

    Please scan the QR code to read on mobile phone