(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[2],{KyZt:function(a,e,t){a.exports={body:"body___3ESPa",top_bg:"top_bg___3xN8y",ce_bg:"ce_bg___SOmkB",go_home:"go_home___35Pmm",body_c:"body_c___3SKfu",body_title:"body_title___P29QC",box_1:"box_1___2BJFe",box_t:"box_t___3wNJk",body_t:"body_t___24ITW",box_2:"box_2___2WEdy",box_3:"box_3___1Ht4z",body_b:"body_b___CiKQ9",btn:"btn___3GRe-",btn_l:"btn_l___CbvWB",body_per:"body_per___1xO67",share:"share___g2fe2"}},p0dX:function(a,e,t){"use strict";t.r(e);var n,o,c,i=t("q1tI"),l=t.n(i),s=t("/MKj"),r=t("ZFw/"),d=t.n(r),_=(t("YW/v"),t("KyZt")),m=t.n(_),p=t("3a4m"),h=t.n(p),b=t("GKBh"),g=t.n(b),w=t("+BCf"),u=t.n(w),y=t("6zEG"),E=t.n(y),v=(n=Object(s["c"])(a=>{var e=a.index,t=a.detail;return{index:e,detail:t}}),n((c=class extends i["Component"]{constructor(a){super(a),this.componentWillMount=(()=>{window.scrollTo(0,0);var a=this.props.location.query.winnerId;a&&this.props.dispatch({type:"detail/getDetail",payload:{winnerId:a},callback:()=>{var a=this.props.detail,e=a.winnerType,t=a.awardName,n=a.mianImageUrl,o=a.winnerName,c=a.winnerIntroduction,i=this.props.index||{},l=i.wxOpenFlag;l?(g.a.updateAppMessageShareData({title:"".concat(o,"\u8363\u83b7\uff1a").concat(t),desc:c,link:window.location.href,imgUrl:n||("0"===e?"".concat(window.location.origin).concat(u.a):"".concat(window.location.origin).concat(E.a)),success:function(){console.log("updateAppMessageShareData\u8bbe\u7f6e\u6210\u529f")}}),g.a.updateTimelineShareData({title:"".concat(o,"\u8363\u83b7\uff1a").concat(t),link:window.location.href,imgUrl:n||("0"===e?"".concat(window.location.origin).concat(u.a):"".concat(window.location.origin).concat(E.a)),success:function(){console.log("updateTimelineShareData\u8bbe\u7f6e\u6210\u529f")}})):this.props.dispatch({type:"detail/getConfig",payload:{},callback:()=>{g.a.updateAppMessageShareData({title:"".concat(o,"\u8363\u83b7\uff1a").concat(t),desc:c,link:window.location.href,imgUrl:n||("0"===e?"".concat(window.location.origin).concat(u.a):"".concat(window.location.origin).concat(E.a)),success:function(){console.log("updateAppMessageShareData\u8bbe\u7f6e\u6210\u529f")}}),g.a.updateTimelineShareData({title:"".concat(o,"\u8363\u83b7\uff1a").concat(t),link:window.location.href,imgUrl:n||("0"===e?"".concat(window.location.origin).concat(u.a):"".concat(window.location.origin).concat(E.a)),success:function(){console.log("updateTimelineShareData\u8bbe\u7f6e\u6210\u529f")}})}})}})}),this.componentDidMount=(()=>{this.props.dispatch({type:"detail/clean",payload:{}})}),this.previewImage=(a=>{var e=this.props.detail.childImages;g.a.previewImage({current:a,urls:e})}),this.goHome=(()=>{h.a.replace("/awards/index")}),this.onChangeShareFlag=(a=>{this.setState({shareFlag:a})}),this.state={shareFlag:!1}}render(){var a=this.props.detail,e=a.winnerId,t=a.winnerType,n=a.awardName,o=a.mianImageUrl,c=a.winnerName,i=a.winnerIntroduction,s=a.childImages,r=a.winnerReason,_=this.state.shareFlag;return l.a.createElement(d.a,{title:n||""},e?l.a.createElement("div",{className:"".concat(m.a.body," ").concat("0"===t?m.a.body_per:"")},l.a.createElement("div",{className:m.a.top_bg}),l.a.createElement("div",{className:m.a.ce_bg}),l.a.createElement("div",{className:m.a.go_home},l.a.createElement("wx-open-launch-weapp",{username:"gh_61453ebacbc2",path:"apps/pages/stroll/index.html?from=awards"},l.a.createElement("script",{type:"text/wxtag-template"},l.a.createElement("div",{style:{display:"block",width:"64px",height:"80px"}})))),l.a.createElement("div",{className:m.a.body_c},l.a.createElement("div",{className:m.a.body_title},l.a.createElement("span",null,n)),l.a.createElement("div",{className:m.a.box_1},l.a.createElement("div",{className:m.a.box_t},l.a.createElement("img",{src:o||("0"===t?u.a:E.a),alt:"\u56fe\u7247"}),l.a.createElement("span",null,c)),l.a.createElement("p",null,i)),s&&s.length>0?l.a.createElement("div",null,l.a.createElement("div",{className:m.a.body_t},l.a.createElement("span",null,"".concat("0"===t?"\u83b7\u5956\u8005\u98ce\u91c7":"\u83b7\u5956\u673a\u6784\u98ce\u91c7"))),l.a.createElement("div",{className:m.a.box_2},s.map((a,e)=>l.a.createElement("img",{key:"".concat(e,"_"),src:a,alt:"\u56fe\u7247",onClick:this.previewImage.bind(this,a)})))):null,r?l.a.createElement("div",null,l.a.createElement("div",{className:m.a.body_t},l.a.createElement("span",null,"\u8bc4\u9009\u6807\u51c6")),l.a.createElement("div",{className:m.a.box_3},r)):null),l.a.createElement("div",{className:m.a.body_b},l.a.createElement("div",{className:"".concat(m.a.btn," ").concat(m.a.btn_l),onClick:this.onChangeShareFlag.bind(this,!0)},"\u7acb\u5373\u5206\u4eab"),l.a.createElement("div",{onClick:this.goHome.bind(this),className:m.a.btn},"\u8fd4\u56de\u9881\u5956\u9996\u9875")),_?l.a.createElement("div",{className:m.a.share,onClick:this.onChangeShareFlag.bind(this,!1)}):null):l.a.createElement("div",{className:m.a.body}))}},o=c))||o);e["default"]=v}}]);