(this["webpackJsonpmr-julyedu"]=this["webpackJsonpmr-julyedu"]||[]).push([[58],{1597:function(e,t,a){},1707:function(e,t,a){"use strict";a.r(t);a(25);var s=a(4),c=a.n(s),r=a(0),o=a.n(r),l=a(1),n=a(18),i=a(729),m=a(731);a(1597);class u extends r.Component{constructor(e){super(e),this.fetchCourseList=()=>{const{match:e}=this.props,t=e.params.id||0;l.f.get(`${API.home}/sys/school/${t}`).then(e=>{const{code:t,data:a}=e.data;200===t&&(this.setState({header:a.name,courseList:a.data}),document.title=`\u52a9\u529b\u9ad8\u6821\u5728\u7ebf\u6559\u5b66\u8ba1\u5212\u4e4b${a.name}\u4e13\u533a - \u4e03\u6708\u5728\u7ebf`)})},this.toCourseDetail=e=>{const{history:t,match:a}=this.props,s=a.params.id||0;l.f.post(API.home+"/sys/school/verify",{school_id:s,course_id:e}).then(a=>{const{code:s,msg:r}=a.data;200===s?t.push("/detail?id="+e):4030===s||4013===s?t.push("/passport/login"):c.a.info(r+"~")})},this.state={header:"",courseList:[]}}componentDidMount(){this.fetchCourseList()}render(){const{courseList:e=[],header:t}=this.state;return o.a.createElement(o.a.Fragment,null,o.a.createElement(n.e,{title:"\u52a9\u5b66\u8ba1\u5212",arrow:!0}),o.a.createElement(i.a,null),o.a.createElement(m.a,{headerStyle:{marginTop:"20px"},title:t}),o.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"),o.a.createElement("div",{className:"college-course__body"},e.map(e=>o.a.createElement("div",{className:"college-course__item",onClick:()=>this.toCourseDetail(e.course_id),key:e.course_id},o.a.createElement("i",{className:"college-course__cover",style:{backgroundImage:`url(${e.image_name})`}}),o.a.createElement("p",{className:"college-course__title"},e.course_title)))))}}t.default=u},729:function(e,t,a){"use strict";var s=a(0),c=a.n(s);a(730);t.a=()=>c.a.createElement("div",{className:"college-banner"})},730:function(e,t,a){},731:function(e,t,a){"use strict";var s=a(0),c=a.n(s);a(732);t.a=e=>{const{title:t,isDecorate:a=!0,headerStyle:s={}}=e;return c.a.createElement(c.a.Fragment,null,c.a.createElement("div",{className:"college-header",style:s},c.a.createElement("i",{className:"college-header__icon","data-direction":"left"}),c.a.createElement("h2",{className:"college-header__text"},t),c.a.createElement("i",{className:"college-header__icon","data-direction":"right"})),a&&c.a.createElement("i",{className:"college-header__decorate"}))}},732:function(e,t,a){}}]);
//# sourceMappingURL=58.23806d1a.chunk.js.map