(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pageA-pages-common-company-map"],{"4d94":function(t,e,a){"use strict";(function(t){var i=a("4ea4");a("b680"),Object.defineProperty(e,"__esModule",{value:!0}),e.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 t=this,e=this.getOpenerEventChannel();e.on("Find",(function(e){t.address.name=e.name,t.address.address=e.address,t.address.latitude=e.latitude,t.address.longitude=e.longitude,t.covers[0].latitude=e.latitude,t.covers[0].longitude=e.longitude,t.distance(e.latitude,e.longitude)})),this.height=.8*uni.getSystemInfoSync().windowHeight+"px",this.footer_height=.2*uni.getSystemInfoSync().windowHeight+"px"},methods:{distance:function(t,e){var a=this;uni.getLocation({type:"gcj02",success:function(i){a.address.distance=n.default.distance(t,e,i.latitude,i.longitude).toFixed(2)}})},openLocation:function(){var e=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="+e[1]+","+e[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,t.log(this.actionSheetShow)},ActionSheetIndex:function(t){switch(t+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(t){window.open(t)}}};e.default=s}).call(this,a("5a52")["default"])},"5aec":function(t,e,a){"use strict";a.r(e);var i=a("4d94"),n=a.n(i);for(var s in i)"default"!==s&&function(t){a.d(e,t,(function(){return i[t]}))}(s);e["default"]=n.a},"766c":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return s})),a.d(e,"a",(function(){return i}));var i={uButton:a("6089").default,uActionSheet:a("1571").default},n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"bottom-safe-area"},[a("v-uni-map",{staticClass:"w-100 map",style:{height:t.height},attrs:{latitude:t.address.latitude,longitude:t.address.longitude,markers:t.covers}}),a("v-uni-view",{staticClass:"footer px-3",style:{height:t.footer_height}},[a("v-uni-view",{staticClass:"uni-h5"},[t._v(t._s(t.address.name))]),a("v-uni-view",{staticClass:"uni-flex"},[null!==t.address.distance?a("v-uni-view",{staticClass:"small text-auxiliary pr-2"},[t._v(t._s(t.address.distance)+"km")]):t._e(),a("v-uni-view",{staticClass:"text-ellipsis-2 uni-flex-item small text-grey"},[t._v(t._s(t.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(e){arguments[0]=e=t.$handleEvent(e),t.openLocation.apply(void 0,arguments)}}},[a("v-uni-text",{staticClass:"uni-icon uni-icon-paperplane mr-1"}),a("v-uni-text",[t._v("导航")])],1)],1)],1),a("u-action-sheet",{attrs:{list:t.actionSheetList},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.ActionSheetIndex.apply(void 0,arguments)}},model:{value:t.actionSheetShow,callback:function(e){t.actionSheetShow=e},expression:"actionSheetShow"}})],1)},s=[]},"8e97":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.map[data-v-61137025]{overflow:hidden}.footer[data-v-61137025]{overflow:hidden}',""]),t.exports=e},"95c3":function(t,e,a){var i=a("8e97");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("28e680ca",i,!0,{sourceMap:!1,shadowMode:!1})},ad25:function(t,e,a){"use strict";a.r(e);var i=a("766c"),n=a("5aec");for(var s in n)"default"!==s&&function(t){a.d(e,t,(function(){return n[t]}))}(s);a("c9a4");var o,d=a("f0c5"),c=Object(d["a"])(n["default"],i["b"],i["c"],!1,null,"61137025",null,!1,i["a"],o);e["default"]=c.exports},c9a4:function(t,e,a){"use strict";var i=a("95c3"),n=a.n(i);n.a}}]);