(window.webpackJsonp=window.webpackJsonp||[]).push([[50],{1222:function(e,t,a){},1274:function(e,t,a){"use strict";a.r(t);a(37);var c=a(11),n=a.n(c),o=a(4),r=a(7),s=a(5),l=a(8),i=a(9),u=a(0),d=a.n(u),m=a(3),h=a(26),f=a(736),_=a(738),p=(a(1222),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;m.d.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;m.d.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 d.a.createElement(d.a.Fragment,null,d.a.createElement(h.e,{title:"\u52a9\u5b66\u8ba1\u5212",arrow:!0}),d.a.createElement(f.a,null),d.a.createElement(_.a,{headerStyle:{marginTop:"20px"},title:n}),d.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"),d.a.createElement("div",{className:"college-course__body"},c.map(function(t){return d.a.createElement("div",{className:"college-course__item",onClick:function(){return e.toCourseDetail(t.course_id)},key:t.course_id},d.a.createElement("i",{className:"college-course__cover",style:{backgroundImage:"url(".concat(t.image_name,")")}}),d.a.createElement("p",{className:"college-course__title"},t.course_title))})))}}]),t}(u.Component));t.default=p},736:function(e,t,a){"use strict";var c=a(0),n=a.n(c);a(737);t.a=function(e){e.banner;return n.a.createElement("div",{className:"college-banner"})}},737:function(e,t,a){},738:function(e,t,a){"use strict";var c=a(0),n=a.n(c);a(739);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"}))}},739:function(e,t,a){}}]);
//# sourceMappingURL=50.83e4925b.chunk.js.map