(this["webpackJsonpmr-julyedu"]=this["webpackJsonpmr-julyedu"]||[]).push([[19],{1153:function(e,t,a){"use strict";a.r(t);a(36);var n=a(10),r=a.n(n),c=a(3),o=a(5),s=a(58),i=a(6),l=a(7),u=a(0),m=a.n(u),p=(a(996),a(25)),d=a(1),f=function(e){Object(i.a)(a,e);var t=Object(l.a)(a);function a(e){var n;return Object(c.a)(this,a),(n=t.call(this,e)).toCourseDetail=function(e){Object(s.a)(n).state.fromApp?Object(d.a)("toCourse",e):n.props.history.push("/detail?id=".concat(e))},n.state={list:[],fromApp:!!Object(d.c)("from")},n}return Object(o.a)(a,[{key:"componentDidMount",value:function(){var e=this;d.f.get("".concat(API.home,"/sys/red_packet/share_course")).then((function(t){200===t.data.code?e.setState({list:t.data.data}):r.a.info(t.data.msg,2)}))}},{key:"render",value:function(){var e=this,t=this.state.list;return m.a.createElement("div",{className:"share-course"},!this.state.fromApp&&m.a.createElement(p.e,{title:"\u5206\u4eab\u9886\u7ea2\u5305",arrow:!0}),t&&t.length>0?m.a.createElement("div",null,t.map((function(t,a){var n=m.a.createElement("div",{className:"info"},m.a.createElement("p",{className:"title text-overflow-1"},t.course_title),m.a.createElement("p",{className:"contact text-overflow-1"},t.simpledescription),m.a.createElement("button",null,"\u5206\u4eab\u9886\u7ea2\u5305"));return m.a.createElement("div",{key:a},m.a.createElement(p.j,{img:t.image_name,info:n,id:t.course_id,toDetail:e.toCourseDetail}))}))):m.a.createElement("div",null,m.a.createElement("p",{className:"not-data"},"\u6682\u65f6\u6ca1\u6709\u53ef\u5206\u4eab\u7684\u8bfe\u7a0b\u54e6\u301c")))}}]),a}(u.Component);t.default=f},996:function(e,t,a){}}]);
//# sourceMappingURL=ShareCourse.897310ae.chunk.js.map