(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/hch-position/hch-position"],{"4aa6":function(t,n,e){},"83ad":function(t,n,e){"use strict";e.r(n);var a=e("cd1e"),i=e("93f2");for(var o in i)"default"!==o&&function(t){e.d(n,t,(function(){return i[t]}))}(o);e("8c81");var r,u=e("f0c5"),c=Object(u["a"])(i["default"],a["b"],a["c"],!1,null,"7b951f47",null,!1,a["a"],r);n["default"]=c.exports},"8b95":function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e={props:{storeData:{type:Array,default:[{id:1,name:"门店1号",address:"厦门市思明区汇景商业广场XXX1号",tel:"12345678900"},{id:2,name:"门店2号",address:"厦门市思明区汇景商业广场XXX2号",tel:"12345678900"}]},markers:{type:Array,default:[{id:1,latitude:24.4483294023427,longitude:118.08479034393311,callout:{content:"门店1号店",borderRadius:10,padding:5,display:"ALWAYS"}},{id:2,latitude:24.4558,longitude:118.12266,callout:{content:"门店2号店",borderRadius:10,padding:10,display:"ALWAYS"}}]}},onLoad:function(){},data:function(){return{store:{},storeFlag:!1,storeAdFlag:!1,distanceL:0,latitude:39.909,longitude:116.39742,controls:[]}},methods:{storeDesEvn:function(){t.showToast({title:"自己自定义跳门店详情页介绍",duration:2e3,icon:"none"})},callouttap:function(t){this.storeFlag=!0,this.storeAdFlag=!1;for(var n=0;n<this.storeData.length;n++){var e=this.storeData[n];if(e.id==t.markerId){this.store=e;break}}},bindtap:function(t){this.storeFlag=!1},hideAd:function(){this.storeAdFlag=!1},updated:function(){var n=this;t.getLocation({type:"gcj02",success:function(t){n.latitude=t.latitude,n.longitude=t.longitude,n.nearDistance(n.markers,n.latitude,n.longitude)},fail:function(t){console.log(t)}})},regionchange:function(n){var e=this,a=t.createMapContext("myMap",this);a.getCenterLocation({success:function(t){e.centerLatitude=t.latitude,e.centerLongitude=t.longitude,e.nearDistance(e.markers,e.centerLatitude,e.centerLongitude)},fail:function(t){console.log(t)}})},distance:function(t,n,e,a){var i=t*Math.PI/180,o=e*Math.PI/180,r=i-o,u=n*Math.PI/180-a*Math.PI/180,c=2*Math.asin(Math.sqrt(Math.pow(Math.sin(r/2),2)+Math.cos(i)*Math.cos(o)*Math.pow(Math.sin(u/2),2)));return c*=6378.137,c=Math.round(1e4*c)/1e4,c},nearDistance:function(t,n,e){for(var a=[],i=0,o=t.length;i<o;i++){var r=t[i],u=this.distance(r.latitude,r.longitude,n,e);a.push(u)}this.distanceL=Math.min.apply(null,a)}},onShow:function(){},onReady:function(){}};n.default=e}).call(this,e("543d")["default"])},"8c81":function(t,n,e){"use strict";var a=e("4aa6"),i=e.n(a);i.a},"93f2":function(t,n,e){"use strict";e.r(n);var a=e("8b95"),i=e.n(a);for(var o in a)"default"!==o&&function(t){e.d(n,t,(function(){return a[t]}))}(o);n["default"]=i.a},cd1e:function(t,n,e){"use strict";var a;e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return o})),e.d(n,"a",(function(){return a}));var i=function(){var t=this,n=t.$createElement;t._self._c},o=[]}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'components/hch-position/hch-position-create-component',
    {
        'components/hch-position/hch-position-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('543d')['createComponent'](__webpack_require__("83ad"))
        })
    },
    [['components/hch-position/hch-position-create-component']]
]);
