function ShufflingShow(){$.ajax({type:"POST",url:"/Home/_GetBanner/",dataType:"json",data:{banner_type:1},success:function(n){var t;if(n.code=="200"){var i=n.data,u="",r="";for(t=0;t<\/li> ';for(t=0;t';switch(i[t].banner_target){case 0:r+=' <\/a>';break;case 1:r+=' <\/a>';break;case 2:r+=' <\/a>'}r+=" <\/div> "}$("#carousel-indicators").html(u);$("#carousel-inner ").html(r)}else snackbar("获取数据失败,请重试!")},error:function(){}})}function newArticleList(){$("#one_mask_three").show();$.ajax({url:"/data/_Getsimu_newsToPage",type:"Post",dataType:"JSON",data:{PageNum:1,PageRow:5},success:function(n){for(var t="",i=0;i',t+='
<\/div>',t+='
',t+='
"'+(n.data[i].title==null?"--":n.data[i].title)+'"<\/span><\/div>',t+='
"'+(n.data[i].outline==null?"--":n.data[i].outline)+'"<\/div>',t+='

',t+='<\/span>',t+=''+n.data[i].fund_name+"<\/span>",t+='登录查看<\/a><\/span>',t+="<\/p>";$("#ranking_list").html(t);$("#deadline").html(convertDateFuncNew(n.data[0].cycle,handDate.yearMonth))}else $("#one_nodata_data").css("display","flex"),$("#ranking_list").html("--"),$("#one_mask_one").css("display","none")},error:function(){$("#one_nodata_data").css("display","flex");$("#one_mask_one").css("display","none")}})}function onClickSearch_time(n,t){$(t).siblings().removeClass("rankActive");$(t).addClass("rankActive");RankingList(n)}function switchR(){$("#rank_year").is(":animated")||(index<$("#rank_year>li").length-4?(index++,$("#rank_year").animate({left:-(index*70)},600)):errorSnackbar("没有更多了"))}function switchL(){$("#rank_year").is(":animated")||(index>0?(index--,$("#rank_year").animate({left:-(index*70)},600)):errorSnackbar("没有更多了"))}function timeContra(){oneMin=setInterval(Notice,6e4)}function Notice(){$("#one_mask_two").show();$.ajax({url:"/Data/_GetUserRegister",type:"Post",dataType:"json",success:function(n){var i=n.data,t="",r,f,u;if(n!=null&&n.code!=null&&n.code==200){for($("#one_motice_data").hide(),i.PageList.length>5&&(i.PageList.length=5),r=0;r',t+='

',t+='',t+='欢迎机构用户'+u+"(先生/女士)<\/strong>加入系统<\/span>",t+="<\/p>",t+='

',t+=''+(i.PageList[r].company_name==null?"--":i.PageList[r].company_name)+"<\/span>",t+=''+(convertDateFunc(i.PageList[r].create_time)==null?"--":convertDateFunc(i.PageList[r].create_time))+"<\/span>",t+="<\/p>",t+="<\/li>"):(t+='

  • ',t+='',t+='欢迎私募用户'+u+"(先生/女士)<\/strong>加入系统<\/span>",t+='

    ',t+=''+(i.PageList[r].company_name==null?"--":i.PageList[r].company_name)+"<\/span>",t+=''+(convertDateFunc(i.PageList[r].create_time)==null?"--":convertDateFunc(i.PageList[r].create_time))+"<\/span>",t+="<\/p>",t+="<\/li>");$("#one_mask_two").hide();$("#announcement").html(t)}else $("#one_mask_two").hide(),$("#one_motice_data").show()},error:function(){}})}var subStr={strategy:null,interval:null,update_date:null,PageRow:10,PageNum:1},obj,index,oneMin;$(function(){newArticleList();PolicyList();rankingDate();Notice();ShufflingShow();$("#myCarousel").carousel({interval:3e3});timeContra()});obj={NewID:null};index=0;oneMin=null