webpackJsonp([16],{eYCY:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=o("mvHQ"),n=o.n(a),s=o("Au9i"),i={mixins:[o("5g4Q").a],data:function(){return{locationInfo:{flag:!1,address:""}}},methods:{getLocation:function(){var t=this;s.Indicator.open({text:"地理信息获取中...",spinnerType:"triple-bounce"}),plus.geolocation.getCurrentPosition(function(e){console.log("地理信息 "+n()(e)),t.locationInfo.address=e.address.province+e.address.city+e.address.district+e.address.street+e.address.streetNum,t.locationInfo.flag=!0,s.Indicator.close()},function(t){console.log("错误 "+n()(t)),s.Indicator.close()},{enableHighAccuracy:!0,provider:"amap",geocode:!0})}}},c={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("transition",{attrs:{name:"slide"}},[o("div",{staticClass:"geolocation"},[o("mt-header",{staticClass:"header",attrs:{title:"Geolocation",fixed:t.headerConf.fixed}},[o("div",{attrs:{slot:"left"},slot:"left"},[o("mt-button",{attrs:{icon:"back"},on:{click:t.back}},[t._v("返回")])],1)]),t._v(" "),o("div",{staticClass:"content"},[o("div",{staticClass:"row-block"},[o("mt-button",{attrs:{type:"default"},on:{click:t.getLocation}},[t._v("点击获取当前地理信息")])],1),t._v(" "),o("div",{directives:[{name:"show",rawName:"v-show",value:t.locationInfo.flag,expression:"locationInfo.flag"}],staticClass:"row"},[o("p",[t._v(t._s(t.locationInfo.address))])])])],1)])},staticRenderFns:[]};var r=o("VU/8")(i,c,!1,function(t){o("kukV")},"data-v-69699d63",null);e.default=r.exports},kukV:function(t,e){}});
//# sourceMappingURL=16.19404e4ecfc28227469a.js.map