(this["webpackJsonpmr-julyedu"]=this["webpackJsonpmr-julyedu"]||[]).push([[68],{1483:function(e,a,t){},1644:function(e,a,t){"use strict";t.r(a);t(25);var n=t(4),s=t.n(n),i=t(0),c=t.n(i),l=(t(1483),t(1)),m=t(15);class r extends i.Component{constructor(){super(...arguments),this.state={data:""},this.getIndexData=()=>{l.f.post(API["base-api"]+"/m/deposit/coupon",{order_id:Object(l.c)("order_id")}).then(e=>{if(200===e.data.errno){const{data:a}=e.data;this.setState({data:a})}else s.a.info(e.data.msg,2)})},this.invitation=e=>{const{user:a}=this.props;a&&a.data&&a.data.uid?window.location.href=e:this.props.history.push("/passport/login")}}componentDidMount(){this.getIndexData()}render(){let e=this.state.data;return c.a.createElement("div",{className:"callback-box"},c.a.createElement("div",{className:"banner"}),c.a.createElement("div",{className:"content"},c.a.createElement("div",{className:"title"},"\u606d\u559c\u4f60\uff0c\u83b7\u5f97\u4e00\u5f20"),c.a.createElement("div",{className:"coupon"},c.a.createElement("p",{className:"coupon-name"},"\u81a8\u80c0\u5238"),c.a.createElement("p",{className:"coupon-price"},c.a.createElement("span",null,e.amount),"\u5143"),c.a.createElement("p",{className:"coupon-time"},"\u6709\u6548\u671f\u81f3\uff1a",e.expire_time)),c.a.createElement("div",{className:"tip"},c.a.createElement("ul",null,new Array(19).fill("1").map((e,a)=>c.a.createElement("li",{key:a}))),"\u5168\u573a\u901a\u7528"),c.a.createElement("div",{className:"expand"},c.a.createElement("span",{className:"expand-small"},e.amount),"\u5143",c.a.createElement("img",{src:"https://cdn.julyedu.com/active19_717/m/expand.png",alt:""}),c.a.createElement("span",{className:"expand-big"},e.limit_amount),"\u5143"),c.a.createElement("button",{className:"invitation",onClick:()=>this.invitation(e.share_url)},"\u9080\u8bf7\u597d\u53cb\u52a9\u529b\uff0c",e.amount,"\u5143\u53d8",e.limit_amount,"\u5143"),c.a.createElement("div",{className:"active-time"},"\u6d3b\u52a8\u65f6\u95f4\uff1a",e.start_time,"-",e.end_time),c.a.createElement("div",{className:"active-tip"},"\u9001\u52a9\u529b\u597d\u53cb",e.limit_amount,"\u5143\uff01")))}}a.default=Object(m.b)(e=>({user:e.user}))(r)}}]);
//# sourceMappingURL=68.13b84f8f.chunk.js.map