(window.webpackJsonp=window.webpackJsonp||[]).push([[32],{1156:function(e,t,a){},1177:function(e,t,a){"use strict";a.r(t);a(44);var n=a(14),c=a.n(n),r=a(8),s=a(9),o=a(11),i=a(7),l=a(10),u=a(0),m=a.n(u),d=(a(1156),a(30)),p=a(3),f=a(700),h=function(e){function t(e){var a;return Object(r.a)(this,t),(a=Object(o.a)(this,Object(i.a)(t).call(this,e))).toCourseDetail=function(e){Object(p.c)("from")?Object(p.a)("toCourse",e):a.props.history.push("/detail?id=".concat(e))},a.state={list:[]},a}return Object(l.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){var e=this;p.d.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 m.a.createElement("div",{className:"share-course"},m.a.createElement(d.e,{title:"\u5206\u4eab\u9886\u7ea2\u5305",arrow:!0}),m.a.createElement(f.a,null),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,onClick:function(){return e.toCourseDetail(t.course_id)}},m.a.createElement(d.i,{img:t.image_name,info:n}))})):m.a.createElement("div",null,m.a.createElement("p",{className:"not-data"},"\u6682\u65f6\u6ca1\u6709\u53ef\u5206\u4eab\u7684\u8bfe\u7a0b\u54e6\u301c")))}}]),t}(u.Component);t.default=h},700:function(e,t,a){"use strict";a(44);var n=a(14),c=a.n(n),r=a(8),s=a(9),o=a(11),i=a(7),l=a(10),u=a(0),m=a.n(u),d=(a(701),a(3)),p=a(657),f=a.n(p),h=a(20),E=function(e){function t(e){var a;return Object(r.a)(this,t),(a=Object(o.a)(this,Object(i.a)(t).call(this,e))).state={src:"",codeSrc:""},a}return Object(l.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props&&this.props.user&&this.props.user.data.uid;d.d.get("".concat(API["base-api"],"/wx/user_temporary_qrcode/").concat(t)).then(function(t){if(0==t.data.errno)return e.setState({src:t.data.data.url}),new Promise(function(t){f.a.toDataURL(e.state.src,{},function(t,a){e.setState({codeSrc:a})}),t()});c.a.info(t.data.msg,2)})}},{key:"render",value:function(){return m.a.createElement("div",{className:"followQRcode-box"},m.a.createElement("div",{className:"followQRcode"},m.a.createElement("div",{className:"content"},m.a.createElement("p",{className:"title"},"\u5173\u6ce8\u516c\u4f17\u53f7"),m.a.createElement("p",{className:"desc"},m.a.createElement("span",null,"1"),"\u6709\u4eba\u901a\u8fc7\u60a8\u5206\u4eab\u7684\u94fe\u63a5\u9886\u53d6\u7ea2\u5305\u540e\uff0c\u4f1a\u7b2c\u4e00\u65f6\u95f4\u901a\u8fc7\u5fae\u4fe1\u670d\u52a1\u53f7\u901a\u77e5\u60a8\u3002"),m.a.createElement("p",{className:"desc"},m.a.createElement("span",null,"2"),"\u8bf7\u7528\u4e2a\u4eba\u5fae\u4fe1\u626b\u63cf\uff0c\u5173\u6ce8\u670d\u52a1\u53f7\u540e\u53ef\u63d0\u73b0\u7ea2\u5305\u5230\u5fae\u4fe1\u96f6\u94b1\u3002"),m.a.createElement("img",{src:this.state.codeSrc,alt:""}),m.a.createElement("p",{className:"tip"},"\u957f\u6309\u4e8c\u7ef4\u7801\u4fdd\u5b58\u5230\u76f8\u518c")),m.a.createElement("div",{className:"close"},m.a.createElement("i",{className:"iconfont iconiconfront-2",onClick:this.props.toClose}))))}}]),t}(u.Component);t.a=Object(h.b)(function(e){return{user:e.user}})(E)},701:function(e,t,a){}}]);
//# sourceMappingURL=32.1e86668f.chunk.js.map