<!doctype html><htmllang="en"><head><metacharset="utf-8"/><linkrel="shortcut icon"href="/favicon.ico"/><metaname="viewport"content="width=device-width,initial-scale=1,shrink-to-fit=no,user-scalable=no"/><metaname="theme-color"content="#000000"/><linkrel="manifest"href="/manifest.json"/><title>七月在线 - 国内领先的人工智能教育平台</title><linkhref="/static/css/24.965d713a.chunk.css"rel="stylesheet"><linkhref="/static/css/main.c5f4d2a1.chunk.css"rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><divid="root"></div><script src="/api.js"></script><script>!function(d){functione(e){for(varr,t,a=e[0],n=e[1],o=e[2],c=0,i=[];c<a.length;c++)t=a[c],l[t]&&i.push(l[t][0]),l[t]=0;for(rinn)Object.prototype.hasOwnProperty.call(n,r)&&(d[r]=n[r]);for(h&&h(e);i.length;)i.shift()();returnu.push.apply(u,o||[]),f()}functionf(){for(vare,r=0;r<u.length;r++){for(vart=u[r],a=!0,n=1;n<t.length;n++){varo=t[n];0!==l[o]&&(a=!1)}a&&(u.splice(r--,1),e=p(p.s=t[0]))}returne}vart={},s={18:0},l={18:0},u=[];functionp(e){if(t[e])returnt[e].exports;varr=t[e]={i:e,l:!1,exports:{}};returnd[e].call(r.exports,r,r.exports,p),r.l=!0,r.exports}p.e=function(u){vare=[];s[u]?e.push(s[u]):0!==s[u]&&{0:1,1:1,2:1,3:1,4:1,6:1,8:1,9:1,10:1,11:1,12:1,13:1,14:1,16:1,17:1,19:1,20:1,21:1,22:1,23:1,26:1,28:1,29:1,30:1,31:1}[u]&&e.push(s[u]=newPromise(function(e,a){for(varr="static/css/"+({0:"BargainMiddlePage",1:"Classify",2:"CourseList",3:"DrawDocument",4:"Examination",5:"MyEdit",6:"Order",7:"Orderinfo",8:"PayOrder",9:"Preferential",10:"SearchResult",11:"ShopCart",12:"aist-share",13:"coupons",14:"detail",16:"myorders",17:"purchased",19:"search",20:"shareposter",21:"study",22:"togroup",23:"video"}[u]||u)+"."+{0:"6d24aba4",1:"2ef92576",2:"49ca5e9b",3:"aeb3f822",4:"7bb0622b",5:"31d6cfe0",6:"c25de43a",7:"31d6cfe0",8:"71617dc9",9:"a285bc5d",10:"706b43f2",11:"fa7d91fc",12:"a97e13d0",13:"f2c7a13b",14:"2f69295d",16:"789a128d",17:"bd80fb0a",19:"68fd6acc",20:"9e774e45",21:"95315632",22:"f08bc5f3",23:"a4013dc8",25:"31d6cfe0",26:"73976871",27:"31d6cfe0",28:"42a89c77",29:"bf839917",30:"35e22f8c",31:"57d8b033"}[u]+".chunk.css",n=p.p+r,t=document.getElementsByTagName("link"),o=0;o<t.length;o++){varc=(d=t[o]).getAttribute("data-href")||d.getAttribute("href");if("stylesheet"===d.rel&&(c===r||c===n))returne()}vari=document.getElementsByTagName("style");for(o=0;o<i.length;o++){vard;if((c=(d=i[o]).getAttribute("data-href"))===r||c===n)returne()}varf=document.createElement("link");f.rel="stylesheet",f.type="text/css",f.onload=e,f.onerror=function(e){varr=e&&e.target&&e.target.src||n,t=newError("Loading CSS chunk "+u+" failed.\n("+r+")");t.request=r,deletes[u],f.parentNode.removeChild(f),a(t)},f.href=n,document.getElementsByTagName("head")[0].appendChild(f)}).then(function(){s[u]=0}));vart=l[u];if(0!==t)if(t)e.push(t[2]);else{varr=newPromise(function(e,r){t=l[u]=[e,r]});e.push(t[2]=r);vara,o=document.createElement("script");o.charset="utf-8",o.timeout=120,p.nc&&o.setAttribute("nonce",p.nc),o.src=p.p+"static/js/"+({0:"BargainMiddlePage",1:"Classify",2:"CourseList",3:"DrawDocument",4:"Examination",5:"MyEdit",6:"Order",7:"Orderinfo",8:"PayOrder",9:"Preferential",10:"SearchResult",11:"ShopCart",12:"aist-share",13:"coupons",14:"detail",16:"myorders",17:"purchased",19:"search",20:"shareposter",21:"study",22:"togroup",23:"video"}[u]||u)+"."+{0:"c17d2450",1:"17ebd626",2:"df1427b5",3:"7fd9d55d",4:"681b3739",5:"539ac99a",6:"36a03aa7",7:"229e2d92",8:"220217be",9:"1ac4da1c",10:"21f335ee",11:"a3aa3523",12:"645eee55",13:"72b220db",14:"70bdafef",16:"fa5a3185",17:"1a0cc90e",19:"449ffe8e",20:"2842f7fe",21:"7d4b3c37",22:"d73bccb5",23:"7c320d7a",25:"403aae65",26:"f842ed87",27:"33496196",28:"ab85697f",29:"52529984",30:"3e2101f4",31:"1bf13040"}[u]+".chunk.js",a=function(e){o.onerror=o.onload=null,clearTimeout(c);varr=l[u];if(0!==r){if(r){vart=e&&("load"===e.type?"missing":e.type),a=e&&e.target&&e.target.src,n=newError("Loading chunk "+u+" failed.\n("+t+": "+a+")");n.type=t,n.request=a,r[1](n)}l[u]=void0}};varc=setTimeout(function(){a({type:"timeout",target:o})},12e4);o.onerror=o.onload=a,document.head.appendChild(o)}returnPromise.all(e)},p.m=d,p.c=t,p.d=function(e,r,t){p.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},p.r=function(e){"undefined"!=typeofSymbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},p.t=function(r,e){if(1&e&&(r=p(r)),8&e)returnr;if(4&e&&"object"==typeofr&&r&&r.__esModule)returnr;vart=Object.create(null);if(p.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeofr)for(varainr)p.d(t,a,function(e){returnr[e]}.bind(null,a));returnt},p.n=function(e){varr=e&&e.__esModule?function(){returne.default}:function(){returne};returnp.d(r,"a",r),r},p.o=function(e,r){returnObject.prototype.hasOwnProperty.call(e,r)},p.p="/",p.oe=function(e){throwconsole.error(e),e};varr=window.webpackJsonp=window.webpackJsonp||[],a=r.push.bind(r);r.push=e,r=r.slice();for(varn=0;n<r.length;n++)e(r[n]);varh=a;f()}([])</script><script src="/static/js/24.ed68e76b.chunk.js"></script><script src="/static/js/main.d7582dd7.chunk.js"></script></body></html>
\ No newline at end of file
<!doctype html><htmllang="en"><head><metacharset="utf-8"/><linkrel="shortcut icon"href="/favicon.ico"/><metaname="viewport"content="width=device-width,initial-scale=1,shrink-to-fit=no,user-scalable=no"/><metaname="theme-color"content="#000000"/><linkrel="manifest"href="/manifest.json"/><title>七月在线 - 国内领先的人工智能教育平台</title><linkhref="/static/css/24.965d713a.chunk.css"rel="stylesheet"><linkhref="/static/css/main.c5f4d2a1.chunk.css"rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><divid="root"></div><script src="/api.js"></script><script>!function(d){functione(e){for(varr,t,a=e[0],n=e[1],o=e[2],c=0,i=[];c<a.length;c++)t=a[c],l[t]&&i.push(l[t][0]),l[t]=0;for(rinn)Object.prototype.hasOwnProperty.call(n,r)&&(d[r]=n[r]);for(h&&h(e);i.length;)i.shift()();returnu.push.apply(u,o||[]),f()}functionf(){for(vare,r=0;r<u.length;r++){for(vart=u[r],a=!0,n=1;n<t.length;n++){varo=t[n];0!==l[o]&&(a=!1)}a&&(u.splice(r--,1),e=p(p.s=t[0]))}returne}vart={},s={18:0},l={18:0},u=[];functionp(e){if(t[e])returnt[e].exports;varr=t[e]={i:e,l:!1,exports:{}};returnd[e].call(r.exports,r,r.exports,p),r.l=!0,r.exports}p.e=function(u){vare=[];s[u]?e.push(s[u]):0!==s[u]&&{0:1,1:1,2:1,3:1,4:1,6:1,8:1,9:1,10:1,11:1,12:1,13:1,14:1,16:1,17:1,19:1,20:1,21:1,22:1,23:1,26:1,28:1,29:1,30:1,31:1}[u]&&e.push(s[u]=newPromise(function(e,a){for(varr="static/css/"+({0:"BargainMiddlePage",1:"Classify",2:"CourseList",3:"DrawDocument",4:"Examination",5:"MyEdit",6:"Order",7:"Orderinfo",8:"PayOrder",9:"Preferential",10:"SearchResult",11:"ShopCart",12:"aist-share",13:"coupons",14:"detail",16:"myorders",17:"purchased",19:"search",20:"shareposter",21:"study",22:"togroup",23:"video"}[u]||u)+"."+{0:"6d24aba4",1:"2ef92576",2:"49ca5e9b",3:"aeb3f822",4:"7bb0622b",5:"31d6cfe0",6:"c25de43a",7:"31d6cfe0",8:"71617dc9",9:"a285bc5d",10:"706b43f2",11:"fa7d91fc",12:"a97e13d0",13:"f2c7a13b",14:"2f69295d",16:"789a128d",17:"bd80fb0a",19:"68fd6acc",20:"9e774e45",21:"95315632",22:"f08bc5f3",23:"a4013dc8",25:"31d6cfe0",26:"73976871",27:"31d6cfe0",28:"42a89c77",29:"bf839917",30:"35e22f8c",31:"57d8b033"}[u]+".chunk.css",n=p.p+r,t=document.getElementsByTagName("link"),o=0;o<t.length;o++){varc=(d=t[o]).getAttribute("data-href")||d.getAttribute("href");if("stylesheet"===d.rel&&(c===r||c===n))returne()}vari=document.getElementsByTagName("style");for(o=0;o<i.length;o++){vard;if((c=(d=i[o]).getAttribute("data-href"))===r||c===n)returne()}varf=document.createElement("link");f.rel="stylesheet",f.type="text/css",f.onload=e,f.onerror=function(e){varr=e&&e.target&&e.target.src||n,t=newError("Loading CSS chunk "+u+" failed.\n("+r+")");t.request=r,deletes[u],f.parentNode.removeChild(f),a(t)},f.href=n,document.getElementsByTagName("head")[0].appendChild(f)}).then(function(){s[u]=0}));vart=l[u];if(0!==t)if(t)e.push(t[2]);else{varr=newPromise(function(e,r){t=l[u]=[e,r]});e.push(t[2]=r);vara,o=document.createElement("script");o.charset="utf-8",o.timeout=120,p.nc&&o.setAttribute("nonce",p.nc),o.src=p.p+"static/js/"+({0:"BargainMiddlePage",1:"Classify",2:"CourseList",3:"DrawDocument",4:"Examination",5:"MyEdit",6:"Order",7:"Orderinfo",8:"PayOrder",9:"Preferential",10:"SearchResult",11:"ShopCart",12:"aist-share",13:"coupons",14:"detail",16:"myorders",17:"purchased",19:"search",20:"shareposter",21:"study",22:"togroup",23:"video"}[u]||u)+"."+{0:"c17d2450",1:"17ebd626",2:"df1427b5",3:"7fd9d55d",4:"681b3739",5:"539ac99a",6:"36a03aa7",7:"229e2d92",8:"220217be",9:"1ac4da1c",10:"21f335ee",11:"a3aa3523",12:"645eee55",13:"72b220db",14:"70bdafef",16:"fa5a3185",17:"1a0cc90e",19:"449ffe8e",20:"2842f7fe",21:"f2aa4d8c",22:"d73bccb5",23:"7c320d7a",25:"403aae65",26:"f842ed87",27:"33496196",28:"ab85697f",29:"52529984",30:"3e2101f4",31:"1bf13040"}[u]+".chunk.js",a=function(e){o.onerror=o.onload=null,clearTimeout(c);varr=l[u];if(0!==r){if(r){vart=e&&("load"===e.type?"missing":e.type),a=e&&e.target&&e.target.src,n=newError("Loading chunk "+u+" failed.\n("+t+": "+a+")");n.type=t,n.request=a,r[1](n)}l[u]=void0}};varc=setTimeout(function(){a({type:"timeout",target:o})},12e4);o.onerror=o.onload=a,document.head.appendChild(o)}returnPromise.all(e)},p.m=d,p.c=t,p.d=function(e,r,t){p.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},p.r=function(e){"undefined"!=typeofSymbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},p.t=function(r,e){if(1&e&&(r=p(r)),8&e)returnr;if(4&e&&"object"==typeofr&&r&&r.__esModule)returnr;vart=Object.create(null);if(p.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeofr)for(varainr)p.d(t,a,function(e){returnr[e]}.bind(null,a));returnt},p.n=function(e){varr=e&&e.__esModule?function(){returne.default}:function(){returne};returnp.d(r,"a",r),r},p.o=function(e,r){returnObject.prototype.hasOwnProperty.call(e,r)},p.p="/",p.oe=function(e){throwconsole.error(e),e};varr=window.webpackJsonp=window.webpackJsonp||[],a=r.push.bind(r);r.push=e,r=r.slice();for(varn=0;n<r.length;n++)e(r[n]);varh=a;f()}([])</script><script src="/static/js/24.ed68e76b.chunk.js"></script><script src="/static/js/main.d7582dd7.chunk.js"></script></body></html>
(window.webpackJsonp=window.webpackJsonp||[]).push([[21],{1177:function(e,t,a){"use strict";a.r(t);varn=a(7),s=a(8),r=a(11),o=a(9),i=a(10),l=a(0),c=a.n(l),u=(a(782),a(20)),p=a(53),d=a(647),m=(a(783),a(156)),h=a(21),f=a(84),v=a(649),b=a.n(v),y=a(40),E=a(30);varg=c.a.memo(function(e){vart=e.addCourseClick;returnc.a.createElement("div",{className:"add-course"},c.a.createElement("button",{className:"add",onClick:t},"\u6dfb\u52a0\u8bfe\u7a0b+"))});functionL(e){vart=e.record,a=t.seconds,n=t.lesson_name,s="";if(n){varr=/\u7b2c[\s\S]+?\u8bfe/.exec(n);s+=r&&r[0]?r[0]:""}if(a){varo=function(e){return{hour:Math.floor(e/3600),min:Math.floor(e/60)%60,sec:e%60}}(a);s+=(o.hour?String(o.hour).padStart(2,"0")+":":"")+(o.min?String(o.min).padStart(2,"0")+":":"")+(o.sec?String(o.sec).padStart(2,"0"):"")}returnc.a.createElement("span",{className:"record"},s.length?"\u5b66\u4e60\u5230".concat(s):null)}varw=c.a.memo(function(e){vart=e.item;if(t.ago||t.seconds){vara=newDate(1e3*t.ago),n=Object(m.isToday)(a)?Object(m.format)(a,"HH\u65f6mm\u5206"):Object(m.format)(a,"MM\u6708DD\u65e5");returnc.a.createElement("div",{className:"des"},c.a.createElement("span",{className:"time"},n),c.a.createElement(L,{record:t}))}returnc.a.createElement("button",{className:"start-learn"},"\u5f00\u59cb\u5b66\u4e60")}),C=function(e){functiont(){vare,a;Object(n.a)(this,t);for(vars=arguments.length,i=newArray(s),l=0;l<s;l++)i[l]=arguments[l];return(a=Object(r.a)(this,(e=Object(o.a)(t)).call.apply(e,[this].concat(i)))).state={isLoading:!0},a.handleClick=function(e){a.props.history.push("/play/video?id=".concat(e))},a.addCourseClick=function(){a.props.history.push("/classify")},a.loadFunc=Object(y.debounce)(function(){a.props.courseList.length%10===0&&a.props.fetchCoursesListIfNeeded()},200),a}returnObject(i.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){this.props.switchTab(!1),this.props.fetchCoursesListIfNeeded()}},{key:"componentWillUnmount",value:function(){this.props.switchTab(!0)}},{key:"render",value:function(){vare=this,t=this.props,a=t.courseList,n=t.user;returnc.a.createElement(E.f,{isLoading:this.props.isLoading},a&&0!==a.length?c.a.createElement(c.a.Fragment,null,c.a.createElement("div",{className:"my-course-uid"},"\u52a0\u7fa4\u8bf7\u5907\u6ce8\u60a8\u7684\u5b66\u53f7\uff1a".concat(!n.hasError&&this.props.user.data.uid)),c.a.createElement(b.a,{pageStart:0,hasMore:!0,loadMore:this.loadFunc,useWindow:!1},c.a.createElement("ul",{ref:function(t){returne.list=t}},a.map(function(t,a){varn=c.a.createElement("div",{className:"info"},c.a.createElement("div",{className:"title"},t.course_title),t.is_aist?c.a.createElement("div",{className:"contact"},"\u52a9\u6559\u5fae\u4fe1\uff1a",t.assist_weixin):c.a.createElement("div",{className:"contact"},"QQ\u7fa4\uff1a",t.course_qq),t.is_aist&&t.aist_schedule&&c.a.createElement("div",{className:"process-status"},c.a.createElement("div",{className:"process-wrapper"},c.a.createElement("div",{className:"process-bar",style:{width:"".concat(parseFloat(t.aist_schedule),"%")}})),c.a.createElement("div",{className:"process-text"},t.aist_schedule)),c.a.createElement(w,{item:t})),s=t.is_aist&&c.a.createElement("span",{className:"status"},"\u8fd4\u73b0");returnc.a.createElement(d.a,Object.assign({img:t.image_name,handleClick:e.handleClick},t,{key:a,info:n,status:s,id:t.course_id}))}))),a.length%10!==0?c.a.createElement(g,{addCourseClick:this.addCourseClick}):null):c.a.createElement("div",{className:"empty"},c.a.createElement("p",null,c.a.createElement("i",{className:"iconfont iconfish"})),c.a.createElement("p",{className:"empty-prompt"},"\u8fd8\u662f\u54b8\u9c7c\u4e00\u6761\uff0c\u5feb\u53bb\u7ffb\u8eab~"),c.a.createElement("p",null,c.a.createElement(u.b,{className:"select-course",to:"/classify"},"\u53bb\u9009\u8bfe"))))}}]),t}(l.PureComponent),N=Object(h.b)(function(e){return{courseList:e.myCourses.courseList,user:e.user,isLoading:e.myCourses.isLoading}},{fetchCoursesListIfNeeded:f.e,switchTab:f.f})(C),k=(a(44),a(14)),O=a.n(k),_=(a(784),function(e){returnc.a.createElement("li",{className:"course-base-item ".concat(e.className),onClick:e.handleClick.bind(void0,e.id)},e.top,c.a.createElement("img",{src:e.img,alt:""}),c.a.createElement("p",{className:"course-title"},e.title),e.bottom)}),S=a(4),j=a(15),P=a.n(j),M=(a(785),function(e){returnc.a.createElement("div",{className:"bottom"},c.a.createElement(E.h,{className:e.className},e.text),c.a.createElement("span",null,e.audience,"\u4eba\u89c2\u770b"))}),T=function(e){functiont(){vare,a;Object(n.a)(this,t);for(vars=arguments.length,i=newArray(s),l=0;l<s;l++)i[l]=arguments[l];return(a=Object(r.a)(this,(e=Object(o.a)(t)).call.apply(e,[this].concat(i)))).state={courses:[],live:[],page:1,num:10},a.handleClick=function(e){a.props.history.push("/play/video?id=".concat(e))},a.getFreeCourses=function(){returnS.c.get("".concat(API.home,"/m/free_course/").concat(a.state.page,"/").concat(a.state.num))},a.getFreeLive=function(){returnS.c.get("".concat(API.home,"/m/live/free_list"))},a.toLive=function(e){vart=e.room_id;e.live_status?window.location.assign("http://www-test.julyedu.com/live/m_room/".concat(t)):O.a.info("\u76f4\u64ad\u5373\u5c06\u5f00\u59cb\uff0c\u656c\u8bf7\u671f\u5f85",2,null,!1)},a}returnObject(i.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){vare=this;this.getFreeCourses().then(function(t){vara=t.data;200==a.code?e.setState({courses:a.data}):O.a.info(a.msg)}),this.getFreeLive().then(function(t){vara=t.data;200==a.code?e.setState({live:Object(y.isEmpty)(a.data)?[]:a.data}):O.a.info(a.msg,2,null,!1)})}},{key:"render",value:function(){vare=this;returnc.a.createElement("ul",{className:"free-courses"},this.state.live.map(function(t,a){varn=c.a.createElement("div",{className:"bottom"},c.a.createElement("div",{className:"animation-box"},newArray(4).fill("a").map(function(e,t){returnc.a.createElement("i",{key:t,className:P()("column","column-".concat(t+1))})})),c.a.createElement("div",{className:"time"},"".concat(t.live_start_time))),s=t.live_status?c.a.createElement(E.h,{className:"tag-soon top"},"\u5373\u5c06\u5f00\u59cb"):c.a.createElement(E.h,{className:"tag-playing top"},"\u6b63\u5728\u76f4\u64ad");returnc.a.createElement(_,{img:t.live_cover,title:t.live_title,top:s,bottom:n,key:t.live_id,className:"live",handleClick:e.toLive.bind(e,t),id:a})}),this.state.courses.map(function(t,a){returnc.a.createElement(_,{img:t.logo,title:t.video_course_name,handleClick:e.handleClick,bottom:c.a.createElement(M,{audience:t.play_times,className:"tag-category",text:t.category}),id:t.v_course_id,key:a,className:"course-item"})}))}}]),t}(l.PureComponent),x=a(163),W=a(159),H=a(17),R=function(e){functiont(){vare,a;Object(n.a)(this,t);for(vars=arguments.length,i=newArray(s),l=0;l<s;l++)i[l]=arguments[l];return(a=Object(r.a)(this,(e=Object(o.a)(t)).call.apply(e,[this].concat(i)))).state={position:{}},a}returnObject(i.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){vare=this.props.match;returnc.a.createElement("section",{id:"study"},c.a.createElement("div",{className:"tab"},c.a.createElement("div",null,c.a.createElement(u.c,{to:"".concat(e.url,"/my-course"),replace:!0,activeClassName:"active"},"\u6211\u7684\u8bfe\u7a0b")),c.a.createElement("div",null,c.a.createElement(u.c,{to:"".concat(e.url,"/free-course"),replace:!0,activeClassName:"active"},"\u514d\u8d39\u8bfe\u7a0b"))),c.a.createElement("div",{className:"study-container"},c.a.createElement(p.d,null,c.a.createElement(p.a,{exact:!0,from:"/study",to:"study/my-course"}),c.a.createElement(p.b,{path:"".concat(this.props.match.path,"/my-course"),component:N}),c.a.createElement(p.b,{path:"".concat(this.props.match.path,"/free-course"),component:T}))))}}]),t}(l.Component);t.default=Object(H.d)(W.a,x.a)(R)},647:function(e,t,a){"use strict";varn=a(0),s=a.n(n);a(648);t.a=function(e){returns.a.createElement("li",{className:"v-list-base-item",onClick:e.handleClick.bind(void0,e.id)},s.a.createElement("div",{className:"content"},s.a.createElement("div",{className:"cover"},e.status,s.a.createElement("img",{src:e.img,alt:""})),e.info),e.tab)}},648:function(e,t,a){},649:function(e,t,a){e.exports=a(650)},650:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});varn=function(){functione(e,t){for(vara=0;a<t.length;a++){varn=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"inn&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}returnfunction(t,a,n){returna&&e(t.prototype,a),n&&e(t,n),t}}(),s=a(0),r=i(s),o=i(a(2));functioni(e){returne&&e.__esModule?e:{default:e}}varl=function(e){functiont(e){!function(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}(this,t);vara=function(e,t){if(!e)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeoft&&"function"!==typeoft?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));returna.scrollListener=a.scrollListener.bind(a),a.eventListenerOptions=a.eventListenerOptions.bind(a),a.mousewheelListener=a.mousewheelListener.bind(a),a}returnfunction(e,t){if("function"!==typeoft&&null!==t)thrownewTypeError("Super expression must either be null or a function, not "+typeoft);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.Component),n(t,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){vare=this.getParentElement(this.scrollComponent);e.scrollTop=e.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){vare=!1,t={getpassive(){e=!0}};try{document.addEventListener("test",null,t),document.removeEventListener("test",null,t)}catch(a){}returne}},{key:"eventListenerOptions",value:function(){vare=this.props.useCapture;returnthis.isPassiveSupported()&&(e={useCapture:this.props.useCapture,passive:!0}),e}},{key:"setDefaultLoader",value:function(e){this.defaultLoader=e}},{key:"detachMousewheelListener",value:function(){vare=window;!1===this.props.useWindow&&(e=this.scrollComponent.parentNode),e.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){vare=window;!1===this.props.useWindow&&(e=this.getParentElement(this.scrollComponent)),e.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),e.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(e){vart=this.props.getScrollParent&&this.props.getScrollParent();returnnull!=t?t:e&&e.parentNode}},{key:"filterProps",value:function(e){returne}},{key:"attachScrollListener",value:function(){vare=this.getParentElement(this.scrollComponent);if(this.props.hasMore&&e){vart=window;!1===this.props.useWindow&&(t=e),t.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),t.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(e){1!==e.deltaY||this.isPassiveSupported()||e.preventDefault()}},{key:"scrollListener",value:function(){vare=this.scrollComponent,t=window,a=this.getParentElement(e),n=void0;if(this.props.useWindow){vars=document.documentElement||document.body.parentNode||document.body,r=void0!==t.pageYOffset?t.pageYOffset:s.scrollTop;n=this.props.isReverse?r:this.calculateOffset(e,r)}elsen=this.props.isReverse?a.scrollTop:e.scrollHeight-a.scrollTop-a.clientHeight;n<Number(this.props.threshold)&&e&&null!==e.offsetParent&&(this.detachScrollListener(),this.beforeScrollHeight=a.scrollHeight,this.beforeScrollTop=a.scrollTop,"function"===typeofthis.props.loadMore&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(e,t){returne?this.calculateTopPosition(e)+(e.offsetHeight-t-window.innerHeight):0}},{key:"calculateTopPosition",value:function(e){returne?e.offsetTop+this.calculateTopPosition(e.offsetParent):0}},{key:"render",value:function(){vare=this,t=this.filterProps(this.props),a=t.children,n=t.element,s=t.hasMore,o=(t.initialLoad,t.isReverse),i=t.loader,l=(t.loadMore,t.pageStart,t.ref),c=(t.threshold,t.useCapture,t.useWindow,t.getScrollParent,function(e,t){vara={};for(varnine)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n]);returna}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]));c.ref=function(t){e.scrollComponent=t,l&&l(t)};varu=[a];returns&&(i?o?u.unshift(i):u.push(i):this.defaultLoader&&(o?u.unshift(this.defaultLoader):u.push(this.defaultLoader))),r.default.createElement(n,c,u)}}]),t}();l.propTypes={children:o.default.node.isRequired,element:o.default.node,hasMore:o.default.bool,initialLoad:o.default.bool,isReverse:o.default.bool,loader:o.default.node,loadMore:o.default.func.isRequired,pageStart:o.default.number,ref:o.default.func,getScrollParent:o.default.func,threshold:o.default.number,useCapture:o.default.bool,useWindow:o.default.bool},l.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},t.default=l,e.exports=t.default},782:function(e,t,a){},783:function(e,t,a){},784:function(e,t,a){},785:function(e,t,a){}}]);
(window.webpackJsonp=window.webpackJsonp||[]).push([[21],{1177:function(e,t,a){"use strict";a.r(t);varn=a(7),s=a(8),r=a(11),o=a(9),i=a(10),l=a(0),c=a.n(l),u=(a(782),a(20)),p=a(53),d=a(647),m=(a(783),a(156)),h=a(21),f=a(84),v=a(649),b=a.n(v),y=a(40),E=a(30);varg=c.a.memo(function(e){vart=e.addCourseClick;returnc.a.createElement("div",{className:"add-course"},c.a.createElement("button",{className:"add",onClick:t},"\u6dfb\u52a0\u8bfe\u7a0b+"))});functionL(e){vart=e.record,a=t.seconds,n=t.lesson_name,s="";if(n){varr=/\u7b2c[\s\S]+?\u8bfe/.exec(n);s+=r&&r[0]?r[0]:""}if(a){varo=function(e){return{hour:Math.floor(e/3600),min:Math.floor(e/60)%60,sec:e%60}}(a);s+=(o.hour?String(o.hour).padStart(2,"0")+":":"")+(o.min?String(o.min).padStart(2,"0")+":":"")+(o.sec?String(o.sec).padStart(2,"0"):"")}returnc.a.createElement("span",{className:"record"},s.length?"\u5b66\u4e60\u5230".concat(s):null)}varw=c.a.memo(function(e){vart=e.item;if(t.ago||t.seconds){vara=newDate(1e3*t.ago),n=Object(m.isToday)(a)?Object(m.format)(a,"HH\u65f6mm\u5206"):Object(m.format)(a,"MM\u6708DD\u65e5");returnc.a.createElement("div",{className:"des"},c.a.createElement("span",{className:"time"},n),c.a.createElement(L,{record:t}))}returnc.a.createElement("button",{className:"start-learn"},"\u5f00\u59cb\u5b66\u4e60")}),C=function(e){functiont(){vare,a;Object(n.a)(this,t);for(vars=arguments.length,i=newArray(s),l=0;l<s;l++)i[l]=arguments[l];return(a=Object(r.a)(this,(e=Object(o.a)(t)).call.apply(e,[this].concat(i)))).state={isLoading:!0},a.handleClick=function(e){a.props.history.push("/play/video?id=".concat(e))},a.addCourseClick=function(){a.props.history.push("/classify")},a.loadFunc=Object(y.debounce)(function(){a.props.courseList.length%10===0&&a.props.fetchCoursesListIfNeeded()},200),a}returnObject(i.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){this.props.switchTab(!1),this.props.fetchCoursesListIfNeeded()}},{key:"componentWillUnmount",value:function(){this.props.switchTab(!0)}},{key:"render",value:function(){vare=this,t=this.props,a=t.courseList,n=t.user;returnc.a.createElement(E.f,{isLoading:this.props.isLoading},a&&0!==a.length?c.a.createElement(c.a.Fragment,null,c.a.createElement("div",{className:"my-course-uid"},"\u52a0\u7fa4\u8bf7\u5907\u6ce8\u60a8\u7684\u5b66\u53f7\uff1a".concat(!n.hasError&&this.props.user.data.uid)),c.a.createElement(b.a,{pageStart:0,hasMore:!0,loadMore:this.loadFunc,useWindow:!1},c.a.createElement("ul",{ref:function(t){returne.list=t}},a.map(function(t,a){varn=c.a.createElement("div",{className:"info"},c.a.createElement("div",{className:"title"},t.course_title),t.is_aist?c.a.createElement("div",{className:"contact"},"\u52a9\u6559\u5fae\u4fe1\uff1a",t.assist_weixin):c.a.createElement("div",{className:"contact"},"QQ\u7fa4\uff1a",t.course_qq),t.is_aist&&t.aist_schedule&&c.a.createElement("div",{className:"process-status"},c.a.createElement("div",{className:"process-wrapper"},c.a.createElement("div",{className:"process-bar",style:{width:"".concat(parseFloat(t.aist_schedule),"%")}})),c.a.createElement("div",{className:"process-text"},t.aist_schedule)),c.a.createElement(w,{item:t})),s=t.is_aist&&c.a.createElement("span",{className:"status"},"\u8fd4\u73b0");returnc.a.createElement(d.a,Object.assign({img:t.image_name,handleClick:e.handleClick},t,{key:a,info:n,status:s,id:t.v_course_id}))}))),a.length%10!==0?c.a.createElement(g,{addCourseClick:this.addCourseClick}):null):c.a.createElement("div",{className:"empty"},c.a.createElement("p",null,c.a.createElement("i",{className:"iconfont iconfish"})),c.a.createElement("p",{className:"empty-prompt"},"\u8fd8\u662f\u54b8\u9c7c\u4e00\u6761\uff0c\u5feb\u53bb\u7ffb\u8eab~"),c.a.createElement("p",null,c.a.createElement(u.b,{className:"select-course",to:"/classify"},"\u53bb\u9009\u8bfe"))))}}]),t}(l.PureComponent),N=Object(h.b)(function(e){return{courseList:e.myCourses.courseList,user:e.user,isLoading:e.myCourses.isLoading}},{fetchCoursesListIfNeeded:f.e,switchTab:f.f})(C),k=(a(44),a(14)),O=a.n(k),_=(a(784),function(e){returnc.a.createElement("li",{className:"course-base-item ".concat(e.className),onClick:e.handleClick.bind(void0,e.id)},e.top,c.a.createElement("img",{src:e.img,alt:""}),c.a.createElement("p",{className:"course-title"},e.title),e.bottom)}),S=a(4),j=a(15),P=a.n(j),M=(a(785),function(e){returnc.a.createElement("div",{className:"bottom"},c.a.createElement(E.h,{className:e.className},e.text),c.a.createElement("span",null,e.audience,"\u4eba\u89c2\u770b"))}),T=function(e){functiont(){vare,a;Object(n.a)(this,t);for(vars=arguments.length,i=newArray(s),l=0;l<s;l++)i[l]=arguments[l];return(a=Object(r.a)(this,(e=Object(o.a)(t)).call.apply(e,[this].concat(i)))).state={courses:[],live:[],page:1,num:10},a.handleClick=function(e){a.props.history.push("/play/video?id=".concat(e))},a.getFreeCourses=function(){returnS.c.get("".concat(API.home,"/m/free_course/").concat(a.state.page,"/").concat(a.state.num))},a.getFreeLive=function(){returnS.c.get("".concat(API.home,"/m/live/free_list"))},a.toLive=function(e){vart=e.room_id;e.live_status?window.location.assign("http://www-test.julyedu.com/live/m_room/".concat(t)):O.a.info("\u76f4\u64ad\u5373\u5c06\u5f00\u59cb\uff0c\u656c\u8bf7\u671f\u5f85",2,null,!1)},a}returnObject(i.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){vare=this;this.getFreeCourses().then(function(t){vara=t.data;200==a.code?e.setState({courses:a.data}):O.a.info(a.msg)}),this.getFreeLive().then(function(t){vara=t.data;200==a.code?e.setState({live:Object(y.isEmpty)(a.data)?[]:a.data}):O.a.info(a.msg,2,null,!1)})}},{key:"render",value:function(){vare=this;returnc.a.createElement("ul",{className:"free-courses"},this.state.live.map(function(t,a){varn=c.a.createElement("div",{className:"bottom"},c.a.createElement("div",{className:"animation-box"},newArray(4).fill("a").map(function(e,t){returnc.a.createElement("i",{key:t,className:P()("column","column-".concat(t+1))})})),c.a.createElement("div",{className:"time"},"".concat(t.live_start_time))),s=t.live_status?c.a.createElement(E.h,{className:"tag-soon top"},"\u5373\u5c06\u5f00\u59cb"):c.a.createElement(E.h,{className:"tag-playing top"},"\u6b63\u5728\u76f4\u64ad");returnc.a.createElement(_,{img:t.live_cover,title:t.live_title,top:s,bottom:n,key:t.live_id,className:"live",handleClick:e.toLive.bind(e,t),id:a})}),this.state.courses.map(function(t,a){returnc.a.createElement(_,{img:t.logo,title:t.video_course_name,handleClick:e.handleClick,bottom:c.a.createElement(M,{audience:t.play_times,className:"tag-category",text:t.category}),id:t.v_course_id,key:a,className:"course-item"})}))}}]),t}(l.PureComponent),x=a(163),W=a(159),H=a(17),R=function(e){functiont(){vare,a;Object(n.a)(this,t);for(vars=arguments.length,i=newArray(s),l=0;l<s;l++)i[l]=arguments[l];return(a=Object(r.a)(this,(e=Object(o.a)(t)).call.apply(e,[this].concat(i)))).state={position:{}},a}returnObject(i.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){vare=this.props.match;returnc.a.createElement("section",{id:"study"},c.a.createElement("div",{className:"tab"},c.a.createElement("div",null,c.a.createElement(u.c,{to:"".concat(e.url,"/my-course"),replace:!0,activeClassName:"active"},"\u6211\u7684\u8bfe\u7a0b")),c.a.createElement("div",null,c.a.createElement(u.c,{to:"".concat(e.url,"/free-course"),replace:!0,activeClassName:"active"},"\u514d\u8d39\u8bfe\u7a0b"))),c.a.createElement("div",{className:"study-container"},c.a.createElement(p.d,null,c.a.createElement(p.a,{exact:!0,from:"/study",to:"study/my-course"}),c.a.createElement(p.b,{path:"".concat(this.props.match.path,"/my-course"),component:N}),c.a.createElement(p.b,{path:"".concat(this.props.match.path,"/free-course"),component:T}))))}}]),t}(l.Component);t.default=Object(H.d)(W.a,x.a)(R)},647:function(e,t,a){"use strict";varn=a(0),s=a.n(n);a(648);t.a=function(e){returns.a.createElement("li",{className:"v-list-base-item",onClick:e.handleClick.bind(void0,e.id)},s.a.createElement("div",{className:"content"},s.a.createElement("div",{className:"cover"},e.status,s.a.createElement("img",{src:e.img,alt:""})),e.info),e.tab)}},648:function(e,t,a){},649:function(e,t,a){e.exports=a(650)},650:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});varn=function(){functione(e,t){for(vara=0;a<t.length;a++){varn=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"inn&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}returnfunction(t,a,n){returna&&e(t.prototype,a),n&&e(t,n),t}}(),s=a(0),r=i(s),o=i(a(2));functioni(e){returne&&e.__esModule?e:{default:e}}varl=function(e){functiont(e){!function(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}(this,t);vara=function(e,t){if(!e)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeoft&&"function"!==typeoft?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));returna.scrollListener=a.scrollListener.bind(a),a.eventListenerOptions=a.eventListenerOptions.bind(a),a.mousewheelListener=a.mousewheelListener.bind(a),a}returnfunction(e,t){if("function"!==typeoft&&null!==t)thrownewTypeError("Super expression must either be null or a function, not "+typeoft);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.Component),n(t,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){vare=this.getParentElement(this.scrollComponent);e.scrollTop=e.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){vare=!1,t={getpassive(){e=!0}};try{document.addEventListener("test",null,t),document.removeEventListener("test",null,t)}catch(a){}returne}},{key:"eventListenerOptions",value:function(){vare=this.props.useCapture;returnthis.isPassiveSupported()&&(e={useCapture:this.props.useCapture,passive:!0}),e}},{key:"setDefaultLoader",value:function(e){this.defaultLoader=e}},{key:"detachMousewheelListener",value:function(){vare=window;!1===this.props.useWindow&&(e=this.scrollComponent.parentNode),e.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){vare=window;!1===this.props.useWindow&&(e=this.getParentElement(this.scrollComponent)),e.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),e.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(e){vart=this.props.getScrollParent&&this.props.getScrollParent();returnnull!=t?t:e&&e.parentNode}},{key:"filterProps",value:function(e){returne}},{key:"attachScrollListener",value:function(){vare=this.getParentElement(this.scrollComponent);if(this.props.hasMore&&e){vart=window;!1===this.props.useWindow&&(t=e),t.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),t.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(e){1!==e.deltaY||this.isPassiveSupported()||e.preventDefault()}},{key:"scrollListener",value:function(){vare=this.scrollComponent,t=window,a=this.getParentElement(e),n=void0;if(this.props.useWindow){vars=document.documentElement||document.body.parentNode||document.body,r=void0!==t.pageYOffset?t.pageYOffset:s.scrollTop;n=this.props.isReverse?r:this.calculateOffset(e,r)}elsen=this.props.isReverse?a.scrollTop:e.scrollHeight-a.scrollTop-a.clientHeight;n<Number(this.props.threshold)&&e&&null!==e.offsetParent&&(this.detachScrollListener(),this.beforeScrollHeight=a.scrollHeight,this.beforeScrollTop=a.scrollTop,"function"===typeofthis.props.loadMore&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(e,t){returne?this.calculateTopPosition(e)+(e.offsetHeight-t-window.innerHeight):0}},{key:"calculateTopPosition",value:function(e){returne?e.offsetTop+this.calculateTopPosition(e.offsetParent):0}},{key:"render",value:function(){vare=this,t=this.filterProps(this.props),a=t.children,n=t.element,s=t.hasMore,o=(t.initialLoad,t.isReverse),i=t.loader,l=(t.loadMore,t.pageStart,t.ref),c=(t.threshold,t.useCapture,t.useWindow,t.getScrollParent,function(e,t){vara={};for(varnine)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n]);returna}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]));c.ref=function(t){e.scrollComponent=t,l&&l(t)};varu=[a];returns&&(i?o?u.unshift(i):u.push(i):this.defaultLoader&&(o?u.unshift(this.defaultLoader):u.push(this.defaultLoader))),r.default.createElement(n,c,u)}}]),t}();l.propTypes={children:o.default.node.isRequired,element:o.default.node,hasMore:o.default.bool,initialLoad:o.default.bool,isReverse:o.default.bool,loader:o.default.node,loadMore:o.default.func.isRequired,pageStart:o.default.number,ref:o.default.func,getScrollParent:o.default.func,threshold:o.default.number,useCapture:o.default.bool,useWindow:o.default.bool},l.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},t.default=l,e.exports=t.default},782:function(e,t,a){},783:function(e,t,a){},784:function(e,t,a){},785:function(e,t,a){}}]);