(window.webpackJsonp=window.webpackJsonp||[]).push([[51],{1267:function(e,t,a){},1307:function(e,t,a){"use strict";a.r(t);a(37);var c=a(11),n=a.n(c),o=a(4),s=a(7),r=a(5),i=a(8),l=a(9),u=a(0),m=a.n(u),d=a(2),h=a(27),p=a(742),f=(a(1267),function(e){function t(e){var a;return Object(o.a)(this,t),(a=Object(r.a)(this,Object(i.a)(t).call(this,e))).fetchCourseList=function(){var e=a.props.match.params.id||0;d.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({courseList:n})})},a.toCourseDetail=function(e){var t=a.props,c=t.history,o=t.match.params.id||0;d.d.post("".concat(API.home,"/sys/school/verify"),{school_id:o,course_id:e}).then(function(t){var a=t.data,o=a.code,s=a.msg;200===o?c.push("/detail?id=".concat(e)):4030===o||4013===o?c.push("/passport/login"):n.a.info("".concat(s,"~"))})},a.state={courseList:[]},a}return Object(l.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){this.fetchCourseList()}},{key:"render",value:function(){var e=this,t=this.state.courseList,a=void 0===t?[]:t;return m.a.createElement(m.a.Fragment,null,m.a.createElement(h.e,{title:"\u52a9\u5b66\u8ba1\u5212",arrow:!0}),m.a.createElement(p.a,null),m.a.createElement("div",{className:"college-course__header"},m.a.createElement("i",{className:"header__decorate"}),m.a.createElement("p",{className:"header__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"},a.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=f},742:function(e,t,a){"use strict";var c=a(0),n=a.n(c);a(743);t.a=function(e){e.banner;return n.a.createElement("div",{className:"college-banner"})}},743:function(e,t,a){}}]);
//# sourceMappingURL=51.af3dab36.chunk.js.map