(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[35],{"cY/S":function(e,t,a){e.exports={top:"top___3vawQ",top_i:"top_i___1KuuX",box:"box___RqZRI",tr:"tr___2d8Y_",tr_t:"tr_t___19DMk",select:"select___11_pS",placeholder:"placeholder___31YOM",btn:"btn___Du07s",button_blue:"button_blue___3sD-x"}},ebNA:function(e,t,a){"use strict";a.r(t);var n,r,l,s=a("p0pE"),c=a.n(s),i=a("q1tI"),o=a.n(i),m=a("/MKj"),d=a("9ibs"),p=(a("YW/v"),a("cY/S")),h=a.n(p),u=a("3a4m"),v=a.n(u),g=a("yWgo"),_=e=>{return o.a.createElement("div",{onClick:e.onClick,className:"".concat(h.a.select," ").concat(e.value?null:h.a.placeholder)},e.extra)},E=a("kXDs"),N=(n=Object(m["c"])(e=>{var t=e.register;return{register:t}}),n((l=class extends i["Component"]{constructor(e){super(e),this.componentWillMount=(()=>{var e=JSON.parse(window.sessionStorage.getItem("registerInfo"));this.setState({registerInfo:e})}),this.goback=(()=>{console.log("popstate")}),this.componentDidMount=(()=>{window.addEventListener("popstate",this.goback)}),this.onChangeText=(e=>t=>{this.props.dispatch({type:"register/updateState",payload:{[e]:t.target.value}})}),this.onChangeAddressText=(e=>t=>{this.props.dispatch({type:"register/updateAddressState",payload:{[e]:t.target.value}})}),this.onChangePicker=(e=>t=>{var a=null;a=t instanceof Date?Object(g["b"])(t,"YYYY-MM-DD"):t[0],this.props.dispatch({type:"register/updateState",payload:{[e]:a}})}),this.submit=(()=>{var e=this.state.registerInfo;this.props.dispatch({type:"register/register",payload:c()({},e)})}),this.state={registerInfo:{}}}componentWillUnmount(){window.removeEventListener("popstate",this.goback)}render(){var e=this.props.register,t=e.avatar,a=e.nickName,n=e.gender,r=e.birthday,l=e.memberName,s=e.cardNo,c=e.address,i=e.kennelNameCn,m=e.kennelNameEn,p=e.kennelFciName,u=this.state.registerInfo;return o.a.createElement("div",null,o.a.createElement("div",{className:h.a.top},o.a.createElement("div",null,"\u4f1a\u5458\u4fe1\u606f"),o.a.createElement("img",{className:h.a.top_i,src:t||E,alt:"\u5934\u50cf"})),o.a.createElement("div",{className:h.a.box},o.a.createElement("div",{className:h.a.tr},o.a.createElement("div",{className:h.a.tr_t},"\u6635\u79f0"),o.a.createElement("input",{type:"text",placeholder:"\u8bf7\u586b\u5199",value:a||"",onChange:this.onChangeText("nickName")})),o.a.createElement("div",{className:h.a.tr},o.a.createElement("div",{className:h.a.tr_t},"\u6027\u522b"),o.a.createElement(d["i"],{title:"\u9009\u62e9\u6027\u522b",extra:"\u8bf7\u9009\u62e9",cols:1,data:[{value:"male",label:"\u7537"},{value:"female",label:"\u5973"}],value:n?[n]:null,onChange:this.onChangePicker("gender")},o.a.createElement(_,{value:n}))),o.a.createElement("div",{className:h.a.tr},o.a.createElement("div",{className:h.a.tr_t},"\u751f\u65e5"),o.a.createElement(d["d"],{mode:"date",format:"YYYY-MM-DD",title:"\u9009\u62e9\u751f\u65e5",value:r?new Date(Object(g["b"])(r,"YYYY/MM/DD HH:mm:ss")):null,onChange:this.onChangePicker("birthday"),extra:"\u8bf7\u9009\u62e9\u751f\u65e5",minDate:new Date(1900,0,1),maxDate:new Date},o.a.createElement(_,{value:r}))),o.a.createElement("div",{className:h.a.tr},o.a.createElement("div",{className:h.a.tr_t},"\u771f\u5b9e\u59d3\u540d"),o.a.createElement("input",{type:"text",placeholder:"\u8bf7\u586b\u5199",value:l||"",onChange:this.onChangeText("memberName")})),o.a.createElement("div",{className:h.a.tr},o.a.createElement("div",{className:h.a.tr_t},"\u8eab\u4efd\u8bc1"),o.a.createElement("input",{type:"text",placeholder:"\u8bf7\u586b\u5199\u8eab\u4efd\u8bc1",value:s||"",onChange:this.onChangeText("cardNo")})),!u||"20"!==u.memberType&&20!==u.memberType?null:o.a.createElement("div",null,o.a.createElement("div",{className:h.a.tr},o.a.createElement("div",{className:h.a.tr_t},"\u72ac\u820d\u4e2d\u6587\u540d"),o.a.createElement("input",{type:"text",placeholder:"\u9650\u586b\u51992-4\u4e2a\u6c49\u5b57",value:i||"",onChange:this.onChangeText("kennelNameCn")})),o.a.createElement("div",{className:h.a.tr},o.a.createElement("div",{className:h.a.tr_t},"\u72ac\u820d\u82f1\u6587\u540d"),o.a.createElement("input",{type:"text",placeholder:"\u4ec5\u9650\u586b\u5199\u82f1\u6587",value:m||"",onChange:this.onChangeText("kennelNameEn")})),o.a.createElement("div",{className:h.a.tr},o.a.createElement("div",{className:h.a.tr_t},"FCI\u82f1\u6587\u540d"),o.a.createElement("input",{type:"text",placeholder:"\u4ec5\u9650\u586b\u5199\u82f1\u6587",value:p||"",onChange:this.onChangeText("kennelFciName")}))),o.a.createElement("div",{className:h.a.tr},o.a.createElement("div",{className:h.a.tr_t},"\u6536\u8d27\u5730\u5740"),o.a.createElement("div",{onClick:()=>{v.a.push("/ckuh5/register/locationPicker")},className:"".concat(h.a.select," ").concat(c.area?null:h.a.placeholder)},c.area?c.province+c.city+c.area:"\u8bf7\u6dfb\u52a0\u6536\u8d27\u5730\u5740")),o.a.createElement("div",{className:h.a.tr},o.a.createElement("div",{className:h.a.tr_t},"\u8be6\u7ec6\u5730\u5740"),o.a.createElement("input",{type:"text",placeholder:"\u8bf7\u586b\u5199\u8be6\u7ec6\u5730\u5740",value:c.address||"",onChange:this.onChangeAddressText("address")}))),o.a.createElement("div",{className:h.a.btn,onClick:this.submit},"\u5b8c\u6210"))}},r=l))||r);t["default"]=N}}]);