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