(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pageA-pages-company-company-map"],{"1a11":function(e,t,a){"use strict";a.r(t);var i=a("502a"),n=a.n(i);for(var s in i)"default"!==s&&function(e){a.d(t,e,(function(){return i[e]}))}(s);t["default"]=n.a},"2c26":function(e,t,a){"use strict";a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return s})),a.d(t,"a",(function(){return i}));var i={uButton:a("6089").default,uActionSheet:a("1571").default},n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-uni-view",{staticClass:"bottom-safe-area"},[a("v-uni-map",{staticClass:"w-100 map",style:{height:e.height},attrs:{latitude:e.address.latitude,longitude:e.address.longitude,markers:e.covers}}),a("v-uni-view",{staticClass:"footer px-3",style:{height:e.footer_height}},[a("v-uni-view",{staticClass:"uni-h5"},[e._v(e._s(e.address.name))]),a("v-uni-view",{staticClass:"uni-flex"},[null!==e.address.distance?a("v-uni-view",{staticClass:"small text-auxiliary pr-2"},[e._v(e._s(e.address.distance)+"km")]):e._e(),a("v-uni-view",{staticClass:"text-ellipsis-2 uni-flex-item small text-grey"},[e._v(e._s(e.address.address))])],1),a("v-uni-view",{staticClass:"uni-flex pt-2"},[a("v-uni-view",{staticClass:"uni-flex-item"}),a("u-button",{staticClass:"w-100",attrs:{size:"medium",type:"primary",shape:"circle"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.openLocation.apply(void 0,arguments)}}},[a("v-uni-text",{staticClass:"uni-icon uni-icon-paperplane mr-1"}),a("v-uni-text",[e._v("导航")])],1)],1)],1),a("u-action-sheet",{attrs:{list:e.actionSheetList},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.ActionSheetIndex.apply(void 0,arguments)}},model:{value:e.actionSheetShow,callback:function(t){e.actionSheetShow=t},expression:"actionSheetShow"}})],1)},s=[]},"37c4":function(e,t,a){var i=a("24fb");t=i(!1),t.push([e.i,'@charset "UTF-8";\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.map[data-v-72d9cced]{overflow:hidden}.footer[data-v-72d9cced]{overflow:hidden}',""]),e.exports=t},"502a":function(e,t,a){"use strict";(function(e){var i=a("4ea4");a("b680"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(a("1424")),s={data:function(){return{height:"300px",footer_height:"80px",actionSheetShow:!1,actionSheetList:[{text:"Apple地图"},{text:"百度地图"},{text:"高德地图"}],address:{name:"",address:"",latitude:0,longitude:0,distance:null},covers:[{latitude:0,longitude:0,iconPath:"/static/default/mobile/static/icon_location.png"}],url:{}}},onLoad:function(){var e=this,t=this.getOpenerEventChannel();t.on("Find",(function(t){e.address.name=t.name,e.address.address=t.address,e.address.latitude=t.latitude,e.address.longitude=t.longitude,e.covers[0].latitude=t.latitude,e.covers[0].longitude=t.longitude,e.distance(t.latitude,t.longitude)})),this.height=.8*uni.getSystemInfoSync().windowHeight+"px",this.footer_height=.2*uni.getSystemInfoSync().windowHeight+"px"},methods:{distance:function(e,t){var a=this;uni.getLocation({type:"gcj02",success:function(i){a.address.distance=n.default.distance(e,t,i.latitude,i.longitude).toFixed(2)}})},openLocation:function(){var t=n.default.gcj02tobd09(this.address.longitude,this.address.latitude);this.url={ios:"http://maps.apple.com/?q="+encodeURIComponent(this.address.name)+"&ll="+this.address.latitude+","+this.address.longitude+"&spn=0.008766,0.019441",baidumap:"baidumap://map/marker?location="+t[1]+","+t[0]+"&title="+encodeURIComponent(this.address.name)+"&content="+encodeURIComponent(this.address.name)+"&src="+encodeURIComponent(this.XYBase.config.appName),iosamap:"iosamap://viewMap?sourceApplication="+this.XYBase.config.appName+"&poiname="+encodeURIComponent(this.address.name)+"&lat="+this.address.latitude+"&lon="+this.address.longitude+"&dev=0",androidamap:"androidamap://viewMap?sourceApplication="+this.XYBase.config.appName+"&poiname="+encodeURIComponent(this.address.name)+"&lat="+this.address.latitude+"&lon="+this.address.longitude+"&dev=0"},this.actionSheetShow=!0,e.log(this.actionSheetShow)},ActionSheetIndex:function(e){switch(e+1){case 1:this.openUrl(this.url.ios);break;case 2:this.openUrl(this.url.baidumap);break;case 3:this.openUrl(this.url.iosamap);break;case 4:this.openUrl(this.url.qqmap);break}},openUrl:function(e){window.open(e)}}};t.default=s}).call(this,a("5a52")["default"])},"8e65":function(e,t,a){"use strict";var i=a("e8dd"),n=a.n(i);n.a},"9d63":function(e,t,a){"use strict";a.r(t);var i=a("2c26"),n=a("1a11");for(var s in n)"default"!==s&&function(e){a.d(t,e,(function(){return n[e]}))}(s);a("8e65");var o,d=a("f0c5"),c=Object(d["a"])(n["default"],i["b"],i["c"],!1,null,"72d9cced",null,!1,i["a"],o);t["default"]=c.exports},e8dd:function(e,t,a){var i=a("37c4");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var n=a("4f06").default;n("9b16cf8c",i,!0,{sourceMap:!1,shadowMode:!1})}}]);