function list(s,l,t,r,c){$.ajax({headers:{token:getCookie("token"),resolution:window.screen.width+"*"+window.screen.height},type:"GET",url:"/api/course/getSelectionCourseList?projectid=12",data:{sortType:s,currentPage:c,sortord:7,mainClassify:l,condition:r,childClassify:t},dataType:"json",async:!0,success:function(o){var n=o.data,e="",f="";console.log(n);for(var d=0,u=n.list.length;d",a.isAllAudio?(e+='',e+='',e+=''):a.isPay==!0?(e+='',e+='',e+=''):a.courseType==2?(e+='',e+='',e+=''):(e+='',e+='',e+=''),e+="",e+="

"+a.introduce+"

",e+="
",a.isPay==!0?e+='\u7ACB\u5373\u5B66\u4E60':a.type==1?e+='\u9650\u65F6\u79D2\u6740':a.type==2?e+='\u62FC\u56E2\u5546\u54C1':a.type==3?e+='\u780D\u4EF7\u5546\u54C1':a.courseType==2?e+='\u8BFE\u7A0B\u5305':e+='\u7ACB\u5373\u62A5\u540D',e+="",e+='',e+='"):$(".coursemain ul").html(e)}})}var keyWord=getPar("keyword");list(1,pid,cid,keyWord,1);var classifyData=[],tab="",pid="",cid="",keyWord="";$(".saitan").on("click",function(){$.ajax({type:"GET",url:"/api/course/getClassifys?projectid=12",contentType:"application/json",dataType:"json",data:{needOther:!1},async:!0,success:function(s){classifyData=s.data;var l=s.data,t="";for(i=0,len=l.length;i'+r.classifyName+""}$(".plate-nav").append(t)}}),layer.open({type:1,content:'
',anim:"up",style:"position:fixed; left:0; top:0; width:100%; height:80%; border: none; -webkit-animation-duration: .5s; animation-duration: .5s;",btn:"\u786E\u5B9A",yes:function(s){list(tab,pid,cid,keyWord,1),layer.close(s)}}),$(".filterrig").on("click","a",function(){var s=$(this);if(s.text()=="\u5168\u90E8")$(".plate-nav2 a").hide(),$(".filterrig a").removeClass("curs"),pid="",cid="",keyWord="",$(this).addClass("curs");else if(s.hasClass("pid")){$(".plate-nav2").show(),$(".plate-nav a").removeClass("curs"),$(this).addClass("curs"),pid=s.attr("tabs");for(var l=[],t=0,r=classifyData.length;t\u5168\u90E8 '),o+=''+c.classifyName+""}$(".plate-nav2").html(o)}else s.hasClass("cid")&&($(".plate-nav2 a").removeClass("curs"),$(this).addClass("curs"),cid=s.attr("tabs"))})}),$(".searchtxt").val(keyWord),$(".searchbtn").on("click",function(){keyWord=$(".searchtxt").val(),list(tab,pid,cid,keyWord,1)}),$(".coursetit li").on("click",function(){$(".coursetit li").removeClass("curs"),$(this).addClass("curs"),tab=$(this).attr("tabs"),list(tab,pid,cid,keyWord,1)});function getCookie(s){for(var l=document.cookie,t=l.split("; "),r=0;r