(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[8],{"+QgL":function(e,t,a){e.exports=a.p+"static/canvasBg.613c935c.png"},"Lt/A":function(e,t,a){"use strict";a.r(t);var n=a("2Taf"),i=a.n(n),s=a("vZ4D"),r=a.n(s),o=a("MhPg"),c=a.n(o),l=a("l4Ni"),m=a.n(l),u=a("ujKo"),d=a.n(u),f=a("q1tI"),g=a.n(f),v=(a("/MKj"),a("9ibs")),p=a("ZFw/"),y=a.n(p),b=a("kX0f"),h=a.n(b),_=a("+QgL"),x=a.n(_);function w(e){var t=N();return function(){var a,n=d()(e);if(t){var i=d()(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return m()(this,a)}}function N(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}var E=function(e){c()(a,e);var t=w(a);function a(){var e;i()(this,a);for(var n=arguments.length,s=new Array(n),r=0;r<n;r++)s[r]=arguments[r];return e=t.call.apply(t,[this].concat(s)),e.state={memberName:"",issueDate:""},e.componentWillMount=function(){var t=sessionStorage.getItem("appreciationInfo")||"",a=JSON.parse(t);""!=t&&e.setState({issueDate:a.issueDate.split("-")[0],memberName:a.memberName})},e.componentDidMount=function(){},e.componentWillUnmount=function(){},e}return r()(a,[{key:"bindClick",value:function(){v["g"].loading("\u751f\u6210\u4e2d",0,null,!0);var e=document.getElementById("myCanvas"),t=e.getContext("2d"),a=document.getElementById("img");t.drawImage(a,0,0,2481,3508);var n=this.state.memberName;t.font="120px bold \u9ed1\u4f53",t.fillStyle="#C78826",t.fillText(n,1300,1760);var i=this.state.issueDate;t.font="80px bold \u9ed1\u4f53",t.fillText(i,1115,2020);var s=this.state.issueDate;t.font="50px bold \u9ed1\u4f53",t.fillStyle="#707172",t.fillText(s,1272,2400);var r=new Image;r.crossOrigin="anonymous";var o=e.toDataURL("image/png");/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?(v["g"].hide(),window.webkit.messageHandlers.downloadImg.postMessage({imgUrl:o})):(v["g"].hide(),window.js.downloadImg(o))}},{key:"render",value:function(){return g.a.createElement(y.a,{title:"\u7eaf\u79cd\u72ac\u732b\u9274\u8d4f\u8bc1\u4e66"},g.a.createElement("div",{className:h.a.body},g.a.createElement("div",{className:h.a.imgBoxx},g.a.createElement("div",{className:h.a.name},this.state.memberName),g.a.createElement("div",{className:h.a.year},this.state.issueDate),g.a.createElement("div",{className:h.a.enYear},this.state.issueDate),g.a.createElement("div",{className:h.a.btn,onClick:this.bindClick.bind(this)},"\u70b9\u51fb\u4fdd\u5b58\u9ad8\u6e05\u56fe\u7247"),g.a.createElement("div",{className:h.a.none},g.a.createElement("canvas",{id:"myCanvas",height:"3508px",width:"2481px"}),g.a.createElement("img",{id:"img",src:x.a,alt:""}),g.a.createElement("div",{className:h.a.btn},"\u70b9\u51fb\u4fdd\u5b58\u9ad8\u6e05\u56fe\u7247")))))}}]),a}(f["Component"]);t["default"]=E},kX0f:function(e,t,a){e.exports={body:"body___3xxt1",imgBoxx:"imgBoxx___3cGoc",btn:"btn___GbP92",name:"name___3KfaK",year:"year___l5a71",enYear:"enYear___2Vq1m",none:"none___3WAAT",myCanvas:"myCanvas___2Ebal"}}}]);