(window.webpackJsonp=window.webpackJsonp||[]).push([[57],{1088:function(e,t,a){},1195:function(e,t,a){"use strict";a.r(t);a(40);var c=a(10),n=a.n(c),o=a(3),r=a(5),s=a(4),l=a(6),i=a(7),u=a(0),m=a.n(u),d=a(2),h=a(24),f=a(603),_=a(605),p=(a(1088),function(e){function t(e){var a;return Object(o.a)(this,t),(a=Object(s.a)(this,Object(l.a)(t).call(this,e))).fetchCourseList=function(){var e=a.props.match.params.id||0;d.f.get("".concat(API.home,"/sys/school/").concat(e)).then(function(e){var t=e.data,c=t.code,n=t.data;200===c&&(a.setState({header:n.name,courseList:n.data}),document.title="\u52a9\u529b\u9ad8\u6821\u5728\u7ebf\u6559\u5b66\u8ba1\u5212\u4e4b".concat(n.name,"\u4e13\u533a - \u4e03\u6708\u5728\u7ebf"))})},a.toCourseDetail=function(e){var t=a.props,c=t.history,o=t.match.params.id||0;d.f.post("".concat(API.home,"/sys/school/verify"),{school_id:o,course_id:e}).then(function(t){var a=t.data,o=a.code,r=a.msg;200===o?c.push("/detail?id=".concat(e)):4030===o||4013===o?c.push("/passport/login"):n.a.info("".concat(r,"~"))})},a.state={header:"",courseList:[]},a}return Object(i.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){this.fetchCourseList()}},{key:"render",value:function(){var e=this,t=this.state,a=t.courseList,c=void 0===a?[]:a,n=t.header;return m.a.createElement(m.a.Fragment,null,m.a.createElement(h.e,{title:"\u52a9\u5b66\u8ba1\u5212",arrow:!0}),m.a.createElement(f.a,null),m.a.createElement(_.a,{headerStyle:{marginTop:"20px"},title:n}),m.a.createElement("p",{className:"college-course__desc"},"\u70b9\u51fb\u9700\u8981\u5b66\u4e60\u7684\u8bfe\u7a0b\u5c01\u9762\uff0c\u5728\u8bfe\u7a0b\u8be6\u60c5\u9875\u8fdb\u5165\u8d2d\u4e70\u6d41\u7a0b\u51ed\u514d\u5355\u5238\u514d\u8d39\u5151\u6362\u8bfe\u7a0b\u3002"),m.a.createElement("div",{className:"college-course__body"},c.map(function(t){return m.a.createElement("div",{className:"college-course__item",onClick:function(){return e.toCourseDetail(t.course_id)},key:t.course_id},m.a.createElement("i",{className:"college-course__cover",style:{backgroundImage:"url(".concat(t.image_name,")")}}),m.a.createElement("p",{className:"college-course__title"},t.course_title))})))}}]),t}(u.Component));t.default=p},603:function(e,t,a){"use strict";var c=a(0),n=a.n(c);a(604);t.a=function(e){e.banner;return n.a.createElement("div",{className:"college-banner"})}},604:function(e,t,a){},605:function(e,t,a){"use strict";var c=a(0),n=a.n(c);a(606);t.a=function(e){var t=e.title,a=e.isDecorate,c=void 0===a||a,o=e.headerStyle,r=void 0===o?{}:o;return n.a.createElement(n.a.Fragment,null,n.a.createElement("div",{className:"college-header",style:r},n.a.createElement("i",{className:"college-header__icon","data-direction":"left"}),n.a.createElement("h2",{className:"college-header__text"},t),n.a.createElement("i",{className:"college-header__icon","data-direction":"right"})),c&&n.a.createElement("i",{className:"college-header__decorate"}))}},606:function(e,t,a){}}]);
//# sourceMappingURL=57.95e07f2b.chunk.js.map