(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/orderdetail/navigation"],{143:function(t,n,e){"use strict";(function(t){e(5);o(e(4));var n=o(e(144));function o(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=e,t(n.default)}).call(this,e(1)["createPage"])},144:function(t,n,e){"use strict";e.r(n);var o=e(145),i=e(147);for(var r in i)"default"!==r&&function(t){e.d(n,t,(function(){return i[t]}))}(r);var a,c=e(11),u=Object(c["default"])(i["default"],o["render"],o["staticRenderFns"],!1,null,null,null,!1,o["components"],a);u.options.__file="pages/index/orderdetail/navigation.vue",n["default"]=u.exports},145:function(t,n,e){"use strict";e.r(n);var o=e(146);e.d(n,"render",(function(){return o["render"]})),e.d(n,"staticRenderFns",(function(){return o["staticRenderFns"]})),e.d(n,"recyclableRender",(function(){return o["recyclableRender"]})),e.d(n,"components",(function(){return o["components"]}))},146:function(t,n,e){"use strict";var o;e.r(n),e.d(n,"render",(function(){return i})),e.d(n,"staticRenderFns",(function(){return a})),e.d(n,"recyclableRender",(function(){return r})),e.d(n,"components",(function(){return o}));var i=function(){var t=this,n=t.$createElement,e=(t._self._c,t.__get_style([].concat(t.mapStyle)));t.$mp.data=Object.assign({},{$root:{s0:e}})},r=!1,a=[];i._withStripped=!0},147:function(t,n,e){"use strict";e.r(n);var o=e(148),i=e.n(o);for(var r in o)"default"!==r&&function(t){e.d(n,t,(function(){return o[t]}))}(r);n["default"]=i.a},148:function(t,n,e){"use strict";(function(t){var e;function o(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=(e={props:{mapStyle:{type:Object,default:{width:"100%",height:"600rpx"}},showCompass:{type:Boolean,default:!0},enableTraffic:{type:Boolean,default:!1},showLocation:{type:Boolean,default:!0}},data:function(){return{longitude:"118.72495",latitude:"32.00834",markers:[]}},onReady:function(){var n=this;n.map=t.createMapContext("tencentMap",this),n.getLocation()}},o(e,"onReady",(function(){var t=this;this.getAuthorize().then((function(){t.getLocationInfo()})).catch((function(){t.openConfirm().then((function(){t.getLocationInfo()})).catch((function(){t.rejectGetLocation()}))}))})),o(e,"methods",{getAuthorize:function(){return new Promise((function(n,e){t.authorize({scope:"scope.userLocation",success:function(){n()},fail:function(){e()}})}))},getLocationInfo:function(){var n=this;t.getLocation({type:"gcj02",success:function(t){n.longitude=t.longitude,n.latitude=t.latitude,n.markers=[{id:2,latitude:32.00834,longitude:118.72495,callout:{content:"奥林皮克体育中心",color:"#000",fontSize:10,bgColor:"#fff",padding:5,display:"ALWAYS",textAlign:"center"}}]}})},openConfirm:function(){return new Promise((function(n,e){t.showModal({title:"请求授权当前位置",content:"我们需要获取地理位置信息，为您推荐附近的商家",success:function(o){o.confirm?t.openSetting().then((function(t){!0===t[1].authSetting["scope.userLocation"]?n():e()})):o.cancel&&e()}})}))},rejectGetLocation:function(){t.showToast({title:"您拒绝了授权，无法获得周边信息",icon:"none",duration:2e3})},markertap:function(t){requirePlugin("routePlan");var n="5ZKBZ-W3TCU-LSDVC-4XJLB-KQOYO-TVBQ6",e="test",o=1,i=JSON.stringify({name:"奥林皮克体育中心",latitude:32.00834,longitude:118.72495});wx.navigateTo({url:"plugin://routePlan/index?key="+n+"&referer="+e+"&endPoint="+i+"&navigation="+o})}}),e);n.default=i}).call(this,e(1)["default"])}},[[143,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/index/orderdetail/navigation.js.map