(this["webpackJsonpmr-julyedu"]=this["webpackJsonpmr-julyedu"]||[]).push([[59],{1070:function(e,t,a){},1177:function(e,t,a){"use strict";a.r(t);a(39);var c=a(10),n=a.n(c),r=a(4),o=a(5),s=a(6),l=a(7),i=a(0),u=a.n(i),m=a(1),d=a(24),h=a(592),f=a(594),_=(a(1070),function(e){Object(s.a)(a,e);var t=Object(l.a)(a);function a(e){var c;return Object(r.a)(this,a),(c=t.call(this,e)).fetchCourseList=function(){var e=c.props.match.params.id||0;m.f.get("".concat(API.home,"/sys/school/").concat(e)).then((function(e){var t=e.data,a=t.code,n=t.data;200===a&&(c.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"))}))},c.toCourseDetail=function(e){var t=c.props,a=t.history,r=t.match.params.id||0;m.f.post("".concat(API.home,"/sys/school/verify"),{school_id:r,course_id:e}).then((function(t){var c=t.data,r=c.code,o=c.msg;200===r?a.push("/detail?id=".concat(e)):4030===r||4013===r?a.push("/passport/login"):n.a.info("".concat(o,"~"))}))},c.state={header:"",courseList:[]},c}return Object(o.a)(a,[{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 u.a.createElement(u.a.Fragment,null,u.a.createElement(d.e,{title:"\u52a9\u5b66\u8ba1\u5212",arrow:!0}),u.a.createElement(h.a,null),u.a.createElement(f.a,{headerStyle:{marginTop:"20px"},title:n}),u.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"),u.a.createElement("div",{className:"college-course__body"},c.map((function(t){return u.a.createElement("div",{className:"college-course__item",onClick:function(){return e.toCourseDetail(t.course_id)},key:t.course_id},u.a.createElement("i",{className:"college-course__cover",style:{backgroundImage:"url(".concat(t.image_name,")")}}),u.a.createElement("p",{className:"college-course__title"},t.course_title))}))))}}]),a}(i.Component));t.default=_},592:function(e,t,a){"use strict";var c=a(0),n=a.n(c);a(593);t.a=function(e){e.banner;return n.a.createElement("div",{className:"college-banner"})}},593:function(e,t,a){},594:function(e,t,a){"use strict";var c=a(0),n=a.n(c);a(595);t.a=function(e){var t=e.title,a=e.isDecorate,c=void 0===a||a,r=e.headerStyle,o=void 0===r?{}:r;return n.a.createElement(n.a.Fragment,null,n.a.createElement("div",{className:"college-header",style:o},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"}))}},595:function(e,t,a){}}]);
//# sourceMappingURL=59.f4d650a6.chunk.js.map