(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[26],{"9pAV":function(e,t,a){e.exports=a.p+"static/femaledogbg.1e2682a7.png"},M0fq:function(e,t,a){e.exports=a.p+"static/maledogbg.a30bdf2a.png"},ZzBi:function(e,t,a){"use strict";a.r(t);var n,i,d,s=a("d6i3"),o=a.n(s),r=a("1l/V"),c=a.n(r),l=a("q1tI"),_=a.n(l),p=a("/MKj"),h=a("ZFw/"),m=a.n(h),g=(a("YW/v"),a("3a4m")),u=a.n(g),x=a("x43R"),b=a.n(x),A=a("9ibs"),f=a("grbR"),E=a("9fl/"),y=a("M0fq"),N=a.n(y),w=a("9pAV"),C=a.n(w),S=a("shQm"),v=a.n(S),T=a("bRPe"),M=a.n(T),k=a("bx0s"),I=a.n(k),R=(n=Object(p["c"])(e=>{var t=e.indexModel;return{indexModel:t}}),n((d=class extends l["Component"]{constructor(e){var t;super(e),t=this,this.timeout=null,this.componentWillMount=(()=>{var e=sessionStorage.getItem("indexSelectedTab");e?this.props.dispatch({type:"indexModel/updateState",payload:{selectedTab:e}}):e=this.props.indexModel.selectedTab,"t1"===e?this.getTransferList(1):this.getNewdogchipList(1),this.getUserInfo()}),this.componentDidMount=(()=>{window.addEventListener("scroll",this.onScroll)}),this.componentWillUnmount=(()=>{this.props.dispatch({type:"indexModel/updateStateFun",payload:{isLoading:!1}}),clearTimeout(this.timeout),this.timeout=null}),this.getUserInfo=c()(o.a.mark(function e(){var a,n,i,d,s;return o.a.wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(a=window.sessionStorage.getItem("access-user"),n="",a&&(n=JSON.parse(window.sessionStorage.getItem("access-user"))),!n||!n.code){e.next=7;break}t.props.dispatch({type:"indexModel/updateState",payload:{userInfo:n||{}}}),e.next=13;break;case 7:return e.next=9,E["m"]();case 9:i=e.sent,d=i.rc,s=i.data,d||(n=s||null,t.props.dispatch({type:"indexModel/updateState",payload:{userInfo:n||{},token:s.token}}),window.sessionStorage.setItem("access-user",n?JSON.stringify(n):JSON.stringify({})));case 13:case"end":return e.stop()}},e)})),this.changeAccount=(()=>{u.a.push("/ckuh5/mobileCode?need=noOpenId")}),this.tockuApply=(e=>{u.a.push("/ckuh5/ckuApply?birthCode=".concat(e))}),this.toRegistrationCard=(e=>{u.a.push("/ckuh5/registrationCard?id=".concat(e))}),this.toTransfer=(()=>{u.a.push("/ckuh5/transfer")}),this.toCertificate=(e=>{u.a.push("/ckuh5/ckuCertificate?id=".concat(e))}),this.renew=c()(o.a.mark(function e(){var a,n,i,d;return o.a.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return t.props.dispatch({type:"indexModel/updateState",payload:{renewLoading:!0}}),e.next=3,E["u"]();case 3:a=e.sent,n=a.rc,i=a.msg,d=a.data,n?(A["m"].info("".concat(i),2),t.props.dispatch({type:"indexModel/updateState",payload:{renewLoading:!1}})):(window.sessionStorage.setItem("newUser",!1),t.savePayInfo({title:"CKU",detail:"\u7eed\u8d39\u4e1a\u52a1",orderId:d.orderId,orderAmount:d.orderAmount}),t.props.dispatch({type:"indexModel/updateState",payload:{renewLoading:!1}}),u.a.push("/ckuh5/pay"));case 8:case"end":return e.stop()}},e)})),this.savePayInfo=(e=>{var t=e.orderId,a=e.orderAmount,n={};n.orderId=t,n.orderAmount=a;var i=this.props.indexModel.userInfo;n.title=i&&i.memberType?"CKU".concat(Object(f["getMemberTypeCZ"])(i.memberType)):"",n.detail=i&&(i.cardType||0===i.cardType)?"".concat(Object(f["getCardTypeCZ"])(i.cardType),"\u4f1a\u5458"):"",window.sessionStorage.setItem("payInfo",JSON.stringify(n))}),this.upgrade=(()=>{window.sessionStorage.setItem("newUser",!1),u.a.push("/ckuh5/memberType?type=upgrade")}),this.savePayInfoDogChip=(e=>{var t=e.orderId,a=e.price,n=e.businessName,i={};i.orderId=t,i.orderAmount=a,i.title="\u8840\u7edf\u8bc1\u4e66",i.detail=n,window.sessionStorage.setItem("newUser",!1),window.sessionStorage.setItem("payInfo",JSON.stringify(i)),u.a.push("/ckuh5/pay")}),this.onScroll=(()=>{this.setState({isScrolling:!0}),clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.setState({isScrolling:!1})},200)}),this.getTransferList=(e=>{this.props.dispatch({type:"indexModel/getTransferList",payload:{pageNo:e,pageSize:10,source:2}})}),this.getNewdogchipList=(e=>{this.props.dispatch({type:"indexModel/getNewdogchipList",payload:{pageNo:e,pageSize:10}})}),this.onRefresh=(()=>{var e=this.props.indexModel.selectedTab;"t1"===e?this.getTransferList(1):this.getNewdogchipList(1)}),this.onEndReached=(()=>{var e=this.props.indexModel,t=e.selectedTab,a=e.pageNum;"t1"===t?this.getTransferList(a+1):this.getNewdogchipList(a+1)}),this.renderRenew=(()=>{var e=this.props.indexModel,t=e.userInfo,a=e.renewLoading;return a?_.a.createElement(A["a"],{size:"small",className:b.a.index_head_right_button},_.a.createElement(A["f"],{type:"loading",size:"xs"})):t.cardType?_.a.createElement(A["a"],{size:"small",className:b.a.index_head_right_button,onClick:this.renew},"\u7acb\u5373\u7eed\u8d39"):void 0}),this.renderUpgrade=(()=>{var e=this.props.indexModel.userInfo;return 40!==e.cardType?_.a.createElement("div",{className:b.a.index_button},_.a.createElement(A["a"],{className:b.a.index_top_button,size:"small",onClick:this.upgrade},"\u5347\u7ea7")):_.a.createElement("div",null)}),this.state={isScrolling:!1}}render(){var e=[{title:"\u8eab\u4efd\u8bc6\u522b\u767b\u8bb0\u5361",key:"t1"},{title:"\u8840\u7edf\u8bc1\u4e66",key:"t2"}],t=(e,t,a)=>{return _.a.createElement("div",{className:b.a.index_content_item},_.a.createElement("div",{className:b.a.first_col},_.a.createElement("span",null,"No.",e.birthCerRegCode)),_.a.createElement("div",{className:b.a.second_col},_.a.createElement("div",{className:b.a.second_col_left},_.a.createElement("img",{src:"1"===e.dogGender?N.a:C.a,alt:""})),_.a.createElement("div",{className:b.a.second_col_right},_.a.createElement("p",{className:b.a.dog_name},_.a.createElement("img",{src:"1"===e.dogGender?M.a:v.a,alt:""}),e.dogName),_.a.createElement("p",{className:b.a.dog_color},e.colorFlag," ; ",e.dogBreed),_.a.createElement("p",{className:b.a.dog_birth},"\u51fa\u751f\u65e5\u671f\uff1a",e.dogBirthday),_.a.createElement("p",{className:b.a.dog_birth},"\u7e41\u6b96\u4eba:",e.breeder),_.a.createElement("p",{className:b.a.dog_birth},"\u8840\u7edf\u8bc1\u4e66\u53f7:",e.pedigreeCertified))),_.a.createElement("div",{className:b.a.third_col},_.a.createElement(A["a"],{className:b.a.third_col_btn1,size:"small",onClick:()=>this.toRegistrationCard(e.id)},"\u8be6\u60c5"),"1"===e.canApplyPedigreeCertifiedFlag&&_.a.createElement(A["a"],{className:b.a.third_col_btn2,size:"small",onClick:()=>{this.tockuApply(e.birthCerRegCode)}},"\u8840\u7edf\u8bc1\u4e66\u7533\u8bf7")))},a=(e,t,a)=>{return _.a.createElement("div",{className:b.a.index_content_item},_.a.createElement("div",{className:b.a.first_col},_.a.createElement("span",null,"\u8840\u7edf\u8bc1\u4e66\u53f7.",e.pedigreeCertified),_.a.createElement("span",{className:b.a.endTime},e.createDate)),_.a.createElement("div",{className:b.a.second_col},_.a.createElement("div",{className:b.a.second_col_left},_.a.createElement("img",{src:I.a,alt:""})),_.a.createElement("div",{className:b.a.second_col_right},_.a.createElement("p",{className:b.a.dog_name},_.a.createElement("img",{src:"\u516c"===e.dogGender?M.a:v.a,alt:""}),""===e.callName?e.dogEnName:e.callName),_.a.createElement("p",{className:b.a.dog_color}),_.a.createElement("p",{className:b.a.dog_birth},"\u51fa\u751f\u65e5\u671f\uff1a",e.dogBirthday),_.a.createElement("p",{className:b.a.dog_birth},"\u72ac\u4e3b\u4eba:",e.tempUserName),_.a.createElement("p",{className:b.a.dog_birth},"\u767b\u8bb0\u5361\u7f16\u53f7:",e.birthCode))),_.a.createElement("div",{className:b.a.third_col},e.pedigreeCertified&&_.a.createElement(A["a"],{className:b.a.third_col_btn1,size:"small",onClick:()=>this.toCertificate(e.dogId)},"\u67e5\u770b\u8bc1\u4e66"),"1"===e.paymentState&&_.a.createElement(A["a"],{className:b.a.third_col_btn2,size:"small",onClick:this.savePayInfoDogChip.bind(this,e)},"\u7acb\u5373\u4ed8\u6b3e")))},n=this.props.indexModel,i=n.userInfo,d=n.selectedTab,s=n.refreshing,o=this.state.isScrolling;return _.a.createElement(m.a,{title:"\u4f1a\u5458\u4e2d\u5fc3"},_.a.createElement("div",{className:b.a.index_container},_.a.createElement("div",{className:b.a.index_top},_.a.createElement("div",{className:"".concat(b.a.index_head," ").concat(0===i.cardType?b.a.index_head1:10===i.cardType?b.a.index_head2:20===i.cardType?b.a.index_head3:30===i.cardType?b.a.index_head4:40===i.cardType?b.a.index_head5:null)},_.a.createElement("div",{className:b.a.index_head_top},_.a.createElement("div",{className:b.a.index_head_left},_.a.createElement("p",{className:b.a.index_head_left_p},_.a.createElement("span",{className:b.a.index_head_left_name},i.memberName)," |"," ",_.a.createElement("span",{className:b.a.index_head_left_a,onClick:this.changeAccount},"\u5207\u6362\u8d26\u53f7>")),_.a.createElement("p",{className:b.a.index_head_left_endtime},i.memberEndDate,"\u5230\u671f")),_.a.createElement("div",{className:b.a.index_head_right},this.renderRenew())),_.a.createElement("div",{className:"".concat(b.a.index_top_img," ").concat(0===i.cardType?b.a.index_top_img1:10===i.cardType?b.a.index_top_img2:20===i.cardType?b.a.index_top_img3:30===i.cardType?b.a.index_top_img4:40===i.cardType?b.a.index_top_img5:null)},_.a.createElement("div",{className:b.a.index_membercode},_.a.createElement("p",null,"NO.",i.memberCode)),this.renderUpgrade()))),_.a.createElement("div",{className:b.a.index_content},_.a.createElement("div",{className:b.a.index_content_tab},_.a.createElement(A["l"],{tabs:e,page:d,swipeable:!1,tabBarActiveTextColor:"#2e2e2e",tabBarInactiveTextColor:"#a8a8a8",onChange:(e,t)=>{this.props.dispatch({type:"indexModel/updateState",payload:{selectedTab:e.key}}),sessionStorage.setItem("indexSelectedTab",e.key),"t1"===e.key?this.getTransferList(1):this.getNewdogchipList(1)}},_.a.createElement(A["g"],{key:"t1",dataSource:this.props.indexModel.scoreList,renderFooter:()=>_.a.createElement("div",{style:{padding:"0.1rem",justifyContent:"center",alignItems:"center"}},this.props.indexModel.isLoading?"\u52a0\u8f7d\u4e2d...":"\u6682\u65e0\u6570\u636e"),renderRow:t,style:{padding:"0 .3rem",boxSizing:"border-box",background:"rgba(247,247,247,1)"},pageSize:4,scrollRenderAheadDistance:500,onEndReached:this.onEndReached,onEndReachedThreshold:10,useBodyScroll:!0,pullToRefresh:_.a.createElement(A["k"],{refreshing:s,onRefresh:this.onRefresh})}),_.a.createElement(A["g"],{key:"t2",dataSource:this.props.indexModel.scoreList2,renderFooter:()=>_.a.createElement("div",{style:{padding:"0.1rem",justifyContent:"center",alignItems:"center"}},this.props.indexModel.isLoading?"\u52a0\u8f7d\u4e2d...":"\u6682\u65e0\u6570\u636e"),renderRow:a,style:{padding:"0 .3rem",boxSizing:"border-box",background:"rgba(247,247,247,1)"},pageSize:4,scrollRenderAheadDistance:500,onEndReached:this.onEndReached,onEndReachedThreshold:10,useBodyScroll:!0,pullToRefresh:_.a.createElement(A["k"],{refreshing:s,onRefresh:this.onRefresh})}))),"t1"!==d||o?null:_.a.createElement("div",{className:b.a.fixedButtonWrap},_.a.createElement(A["a"],{className:b.a.fixedButton,onClick:this.toTransfer},"\u8eab\u4efd\u767b\u8bb0\u5361\u767b\u8bb0")))))}},i=d))||i);t["default"]=R},bRPe:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAcCAYAAAATFf3WAAACjElEQVRYR9WYbUhTURjHf5tOp5YhvRFFGYUabmSEZVaWkGEFNQITIkXLCCRqUpEhIZLohvRhEOUsIwvsg6ifetFFnwqjMqIgSguhWvSi2AQhym1xOo0R28QNd72dT5d7z33+v/uc8/zPOVcDkFHqTfNoaQS2Acni3gy2MeCe1sOZ19c1A5q/cI+AlBmECiY9qvWQo0kr83YCe1UG58PpEoAuFQxrqPyMCUCvSrP3BytqgCeLoGIHaDSBn59ePvWURA3wmAnKCyVgjBbiYv1QqgD04cxKgGunwLhchYBJemg9AWtWwpsPsGwh6ONAFRlMiIfLVZCdDm+dUGIFhxVERhUB1MVAbiZkrYA5SfDNBX2v4Pk70OvAXgU5q2DoM5RY5PP+iyCymnEwykWyyQB1pbBkfqDQs0H4OSHh3n+FAxb4Mir71eyHRD3UXI0i4K510HREVubLIeh5CiNjsHQB7N4Ai+dJceewhPs0MnWYYD3DsplFc+FuA8TroPEmtDn+DSmspL4c9uTCoBNMtTDhVhBQDFFpAbTfh7obwYVFZjvOQmYqmC/BnccKAvZapFUUnJbzK1QzbQRrBXQ/gOpWBQFftMiVwXh4clFDKnTWyqoua1IQsM8GKbNhbSWM/wgtLKpcGLSjH45eUBCw+TjkZ0H1Feh+GFr4XBns2wLnO6DltoKA+auh2QzDLiiuh4/DgeKbDWA3wy83bK/2e2CkmGHZjBCxVUJhtvQ+Wzf0PIHv49L/ivLkFksXCw3tgTYUCWTYgMIDLYdg53q/nNsjjVs0cW3rAvutSHAC3wkb0BcizwjFW+VanJzoX4vbemHAOT1wIkrEgNOHMHmk/+LQpO5jp+oP7mIGqPnXx2+pXOsTXqsW5wAAAABJRU5ErkJggg=="},bx0s:function(e,t,a){e.exports=a.p+"static/dogchipBg.419abe9a.png"},shQm:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAcCAYAAAATFf3WAAAC3ElEQVRYR9WYa0gUURiGn1lXzSwvoUiUGWXpD+mmiAgZRJJhYUlEIMhKtKlFSUkoKlaStyAiC+1imAiBmZrSBWzFsEhMrCCSEvwTWeGNNSTUdSdOU3TRbXc23bbzc2bOvM+853zvOWckADkyeTVmTREyWwAvce0ftlEkHqAxZ0ud1W+kr3AmTQcSvv8Qarq0zAhac5QkR+huIZPoVHDfYSTqJTlcZ3SCYbXkz6gAlJ3SvW9QswsYGgR7YyEiFBZ5w6cxeN4Lda3wtMcuH2YPMHUX7NsBkjQzSFM7FF2HySlVoLMDKMDSEsEsQ2Mb3G6HdwPg5wNxUZC0FVy10PwITlY6GHBZANSeBhcN5F+Bu0+mA4SHQtlRcHOF9DPQ+cpmyL938PAeSN4GLZ2QXW5Z+NBu0MVDaxccv+hAwGs5sCYYMsugrduy8KpAuHEKBo0Ql+FAwLpCWL4YdAXwss+ysO9CaDkPEyaI3u9AwMtZsCEEci/B/Q7LwmEroCoPPgzB9sw5AoyPBk8PqDX8ENAngH4ndPVAaqll4bwUSIhRXcnqisRQBt4L4KYBSmtArEF+3lBfDPPnQWUzlNdPh0zYCLkpIMuQdAJ6386Rg7GRUKAHrQs0tEFhNXh5QlUuBAYoos9eQ2M79P+UgzHrlACvaICrTTbDiQfVOSh6bA6HwlTQauHOYwheCiFBMDCiuCimwO9tYlKBq76nCs4+QNFr03ooTldWB9E+DoO+GD6PK/NMrMWiao1j8KJXWVneD6qGsx9QuCTyb+USRfRhtxK+U2a7IP7USf0Qi2G8cEwJ52GjMqTubmDogpwKMKnbDFj7IvWAAi4qDIaMcKAE/H3g7BHwcFeczCqHSZM1XZvvqwesyQd/X0grhb5+RUgE9bkMpUhEBJXU2Axg7UH1gCJixM5lfPLXd68NhpKDSkHMlIXWSCzcVw9op5C93f6DQ5PTHzud/eAu5oYz//r4AmfJC3g2HsYAAAAAAElFTkSuQmCC"},x43R:function(e,t,a){e.exports={index_container:"index_container___1IFI0",index_top:"index_top___1bvuL",index_head:"index_head___1yjQt",index_head_top:"index_head_top___Occgu",index_head_left:"index_head_left___3o35Z",index_head_left_p:"index_head_left_p___1p6vo",index_head_left_name:"index_head_left_name___3SBn6",index_head_left_a:"index_head_left_a___3AqAR",index_head_left_endtime:"index_head_left_endtime___2VDWz",index_head_right:"index_head_right___3jqSn",index_head_right_button:"index_head_right_button___37D5q",index_top_img:"index_top_img___FhY84",index_button:"index_button___FJPzM",index_top_button:"index_top_button___tGH-x",index_membercode:"index_membercode___1nlP1",index_top_img1:"index_top_img1___2gMF1",index_top_img2:"index_top_img2___H_T2Z",index_top_img3:"index_top_img3___M3oNO",index_top_img4:"index_top_img4___1cBCb",index_top_img5:"index_top_img5___2tTFv",index_head1:"index_head1___2FzET",index_head2:"index_head2___3fBY_",index_head3:"index_head3___3Uusr",index_head4:"index_head4___UeDe0",index_head5:"index_head5___1faS1",index_content:"index_content___bPGrG",index_content_item:"index_content_item___1xTSt",first_col:"first_col___3l5ne",endTime:"endTime___2Zqnr",second_col:"second_col___2w_O2",second_col_left:"second_col_left___3RTXE",second_col_right:"second_col_right___1Y6Ua",dog_name:"dog_name___3amrQ",dog_color:"dog_color___3fgBL",dog_birth:"dog_birth___1etX7",third_col:"third_col___D8ulq",third_col_btn1:"third_col_btn1___1D5hO",third_col_btn2:"third_col_btn2___2zYwz",fixedButtonWrap:"fixedButtonWrap___3S4R-",fixedButton:"fixedButton___ZmFts"}}}]);