(window.webpackJsonp=window.webpackJsonp||[]).push([[49],{1269:function(e,t,a){},1309: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(2),h=a(27),f=a(742),_=a(744),p=(a(1269),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})})},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},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){},744:function(e,t,a){"use strict";var c=a(0),n=a.n(c);a(745);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"}))}},745:function(e,t,a){}}]);
//# sourceMappingURL=49.595a87c2.chunk.js.map