(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[9],{Hj01:function(t,e,o){"use strict";o.r(e);var n,a,i,s=o("q1tI"),l=o.n(s),c=o("/MKj"),r=o("GKBh"),d=o.n(r),p=o("yWgo"),u=(n=Object(c["c"])(t=>{var e=t.info;return{info:e}}),n((i=class extends s["Component"]{constructor(t){super(t),this.componentDidMount=(()=>{document.title="\u5730\u5740\u9009\u62e9";var t=this;"wechat"===Object(p["a"])()?d.a.getLocation({type:"wgs84",success:function(e){var o=e.latitude,n=e.longitude;console.log(o,n,"======================="),t.setState({flag:!0,latitude:o,longitude:n})},fail:function(e){console.log(e,"=================="),t.setState({flag:!0})}}):t.setState({flag:!0}),window.addEventListener("message",this.selectLocation,!1)}),this.componentWillUnmount=(()=>{window.removeEventListener("message",this.selectLocation,!1)}),this.selectLocation=(t=>{var e=t.data;e&&"locationPicker"===e.module&&(console.log("location",e),this.props.dispatch({type:"info/geocoder",payload:{location:e.latlng,poiname:e.poiname}}))}),this.state={flag:!1,latitude:null,longitude:null}}render(){var t=this.state,e=t.flag,o=t.latitude,n=t.longitude;return e?l.a.createElement("iframe",{title:"\u5730\u5740\u9009\u62e9",style:{position:"absolute"},id:"mapPage",width:"100%",height:"100%",framebborder:0,src:"https://apis.map.qq.com/tools/locpicker?search=1&type=1&policy=1&key=457BZ-TES6V-JS7P2-UJQAQ-IJSSO-RIFBA&referer=CABApp".concat(o?"&coordtype=1&coord="+o+","+n:"")}):null}},a=i))||a);e["default"]=u}}]);