__uniappopenlocation.js 28 KB

1
  1. !function(e){var t={};function n(o){if(t[o])return t[o].exports;var a=t[o]={i:o,l:!1,exports:{}};return e[o].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(o,a,function(t){return e[t]}.bind(null,a));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=42)}([function(e,t){e.exports={}},function(e,t,n){"use strict";function o(e,t,n,o,a,i,r,s,c,u){var l,A="function"==typeof e?e.options:e;if(c){A.components||(A.components={});var d=Object.prototype.hasOwnProperty;for(var p in c)d.call(c,p)&&!d.call(A.components,p)&&(A.components[p]=c[p])}if(u&&((u.beforeCreate||(u.beforeCreate=[])).unshift((function(){this[u.__module]=this})),(A.mixins||(A.mixins=[])).push(u)),t&&(A.render=t,A.staticRenderFns=n,A._compiled=!0),o&&(A.functional=!0),i&&(A._scopeId="data-v-"+i),r?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),a&&a.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},A._ssrRegister=l):a&&(l=s?function(){a.call(this,this.$root.$options.shadowRoot)}:a),l)if(A.functional){A._injectStyles=l;var f=A.render;A.render=function(e,t){return l.call(t),f(e,t)}}else{var g=A.beforeCreate;A.beforeCreate=g?[].concat(g,l):[l]}return{exports:e,options:A}}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0}),t.weexPlus=t.default=void 0,o="function"==typeof getUni?getUni:function(){var e=function(e){return"function"==typeof e},t=function(e){return e.then((function(e){return[null,e]})).catch((function(e){return[e]}))},n=/^\$|^on|^create|Sync$|Manager$|^pause/,o=["os","getCurrentSubNVue","getSubNVueById","stopRecord","stopVoice","stopBackgroundAudio","stopPullDownRefresh","hideKeyboard","hideToast","hideLoading","showNavigationBarLoading","hideNavigationBarLoading","canIUse","navigateBack","closeSocket","pageScrollTo","drawCanvas"],i=function(e){return(!n.test(e)||"createBLEConnection"===e)&&!~o.indexOf(e)},r=function(n){return function(){for(var o=arguments.length,a=Array(o>1?o-1:0),i=1;i<o;i++)a[i-1]=arguments[i];var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e(r.success)||e(r.fail)||e(r.complete)?n.apply(void 0,[r].concat(a)):t(new Promise((function(e,t){n.apply(void 0,[Object.assign({},r,{success:e,fail:t})].concat(a)),Promise.prototype.finally=function(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){throw n}))}))}})))}},s=[],c=void 0;function u(e){s.forEach((function(t){return t({origin:c,data:e})}))}var l=a.webview.currentWebview().id,A=new BroadcastChannel("UNI-APP-SUBNVUE");function d(e){var t=a.webview.getWebviewById(e);return t&&!t.$processed&&function(e){e.$processed=!0;var t=a.webview.currentWebview().id===e.id,n="uniNView"===e.__uniapp_origin_type&&e.__uniapp_origin_id,o=e.id;if(e.postMessage=function(e){n?A.postMessage({data:e,to:t?n:o}):y({type:"UniAppSubNVue",data:e})},e.onMessage=function(e){s.push(e)},e.__uniapp_mask_id){c=e.__uniapp_host;var i=e.__uniapp_mask,r=a.webview.getWebviewById(e.__uniapp_mask_id);r=r.parent()||r;var u=e.show,l=e.hide,d=e.close,p=function(){r.setStyle({mask:i})},f=function(){r.setStyle({mask:"none"})};e.show=function(){p();for(var t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];return u.apply(e,n)},e.hide=function(){f();for(var t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];return l.apply(e,n)},e.close=function(){f();for(var t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];return d.apply(e,n)}}}(t),t}A.onmessage=function(e){e.data.to===l&&u(e.data.data)};var p=weex.requireModule("plus"),f=weex.requireModule("globalEvent"),g=0,v={};f.addEventListener("plusMessage",(function(e){"UniAppJsApi"===e.data.type?m(e.data.id,e.data.data):"UniAppSubNVue"===e.data.type?u(e.data.data,e.data.options):"onNavigationBarButtonTap"===e.data.type?"function"==typeof b&&b(e.data.data):"onNavigationBarSearchInputChanged"===e.data.type?"function"==typeof B&&B(e.data.data):"onNavigationBarSearchInputConfirmed"===e.data.type?"function"==typeof w&&w(e.data.data):"onNavigationBarSearchInputClicked"===e.data.type&&"function"==typeof P&&P(e.data.data)}));var m=function(e,t){var n=v[e];n?(n(t),n.keepAlive||delete v[e]):console.error("callback["+e+"] is undefined")},h=function(t){var n,o,a=t.id,i=t.type,r=t.params;v[a]=(o=function(t){e(n)?n(t):n&&(~t.errMsg.indexOf(":ok")?e(n.success)&&n.success(t):~t.errMsg.indexOf(":fail")&&e(n.fail)&&n.fail(t),e(n.complete)&&n.complete(t))},(e(n=r)||n&&e(n.callback))&&(o.keepAlive=!0),o),p.postMessage({id:a,type:i,params:r},"__uniapp__service")};function y(e){p.postMessage(e,"__uniapp__service")}var C=function(e){return function(t){h({id:g++,type:e,params:t})}},b=void 0,B=void 0,w=void 0,P=void 0;function S(e){b=e}function I(e){B=e}function O(e){w=e}function x(e){P=e}function E(e){return weex.requireModule(e)}var M=weex.requireModule("dom"),k=weex.requireModule("globalEvent"),Q=[];function j(e){"function"==typeof e&&(this.isUniAppReady?e():Q.push(e))}k.addEventListener("plusMessage",(function(e){"UniAppReady"===e.data.type&&(j.isUniAppReady=!0,Q.length&&(Q.forEach((function(e){return e()})),Q=[]))}));var V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},R=weex.requireModule("stream"),T=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GET",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"application/x-www-form-urlencoded";return"object"===(void 0===e?"undefined":V(e))?"POST"===t.toUpperCase()&&"application/json"===n.toLowerCase()?JSON.stringify(e):Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&"):e},U=weex.requireModule("plusstorage"),_=weex.requireModule("clipboard"),L=function(){if("function"==typeof getUniEmitter)return getUniEmitter;var e={$on:function(){console.warn("uni.$on failed")},$off:function(){console.warn("uni.$off failed")},$once:function(){console.warn("uni.$once failed")},$emit:function(){console.warn("uni.$emit failed")}};return function(){return e}}();function z(e,t,n){return e[t].apply(e,n)}var q=Object.freeze({loadFontFace:function(t){var n=t.family,o=t.source,a=(t.desc,t.success),i=(t.fail,t.complete);M.addRule("fontFace",{fontFamily:n,src:o.replace(/"/g,"'")});var r={errMsg:"loadFontFace:ok",status:"loaded"};e(a)&&a(r),e(i)&&i(r)},ready:j,request:function(t){var n=t.url,o=t.data,a=t.header,i=t.method,r=void 0===i?"GET":i,s=t.dataType,c=void 0===s?"json":s,u=(t.responseType,t.success),l=t.fail,A=t.complete,d=!1,p=!1,f={};if(a)for(var g in a)p||"content-type"!==g.toLowerCase()?f[g]=a[g]:(p=!0,f["Content-Type"]=a[g]);return"GET"===r&&o&&(n=n+(~n.indexOf("?")?"&"===n.substr(-1)||"?"===n.substr(-1)?"":"&":"?")+T(o)),R.fetch({url:n,method:r,headers:f,type:"json"===c?"json":"text",body:"GET"!==r?T(o,r,f["Content-Type"]):""},(function(t){var n=t.status,o=(t.ok,t.statusText,t.data),a=t.headers,i={};!n||-1===n||d?(i.errMsg="request:fail",e(l)&&l(i)):(i.data=o,i.statusCode=n,i.header=a,e(u)&&u(i)),e(A)&&A(i)})),{abort:function(){d=!0}}},getStorage:function(t){var n=t.key,o=(t.data,t.success),a=t.fail,i=t.complete;U.getItem(n+"__TYPE",(function(t){if("success"===t.result){var r=t.data;U.getItem(n,(function(t){if("success"===t.result){var n=t.data;r&&n?("String"!==r&&(n=JSON.parse(n)),e(o)&&o({errMsg:"getStorage:ok",data:n})):(t.errMsg="setStorage:fail",e(a)&&a(t))}else t.errMsg="setStorage:fail",e(a)&&a(t);e(i)&&i(t)}))}else t.errMsg="setStorage:fail",e(a)&&a(t),e(i)&&i(t)}))},setStorage:function(t){var n=t.key,o=t.data,a=t.success,i=t.fail,r=t.complete,s="String";"object"===(void 0===o?"undefined":V(o))&&(s="Object",o=JSON.stringify(o)),U.setItem(n,o,(function(t){"success"===t.result?U.setItem(n+"__TYPE",s,(function(t){"success"===t.result?e(a)&&a({errMsg:"setStorage:ok"}):(t.errMsg="setStorage:fail",e(i)&&i(t))})):(t.errMsg="setStorage:fail",e(i)&&i(t)),e(r)&&r(t)}))},removeStorage:function(t){var n=t.key,o=(t.data,t.success),a=t.fail,i=t.complete;U.removeItem(n,(function(t){"success"===t.result?e(o)&&o({errMsg:"removeStorage:ok"}):(t.errMsg="removeStorage:fail",e(a)&&a(t)),e(i)&&i(t)})),U.removeItem(n+"__TYPE")},clearStorage:function(e){e.key,e.data,e.success,e.fail,e.complete},getClipboardData:function(t){var n=t.success,o=(t.fail,t.complete);_.getString((function(t){var a={errMsg:"getClipboardData:ok",data:t.data};e(n)&&n(a),e(o)&&o(a)}))},setClipboardData:function(t){var n=t.data,o=t.success,a=(t.fail,t.complete),i={errMsg:"setClipboardData:ok"};_.setString(n),e(o)&&o(i),e(a)&&a(i)},onSubNVueMessage:u,getSubNVueById:d,getCurrentSubNVue:function(){return d(a.webview.currentWebview().id)},$on:function(){return z(L(),"$on",[].concat(Array.prototype.slice.call(arguments)))},$off:function(){return z(L(),"$off",[].concat(Array.prototype.slice.call(arguments)))},$once:function(){return z(L(),"$once",[].concat(Array.prototype.slice.call(arguments)))},$emit:function(){return z(L(),"$emit",[].concat(Array.prototype.slice.call(arguments)))}}),D={os:{nvue:!0}},N={};return"undefined"!=typeof Proxy?N=new Proxy({},{get:function(e,t){if("os"===t)return{nvue:!0};if("postMessage"===t)return y;if("requireNativePlugin"===t)return E;if("onNavigationBarButtonTap"===t)return S;if("onNavigationBarSearchInputChanged"===t)return I;if("onNavigationBarSearchInputConfirmed"===t)return O;if("onNavigationBarSearchInputClicked"===t)return x;var n=q[t];return n||(n=C(t)),i(t)?r(n):n}}):(Object.keys(D).forEach((function(e){N[e]=D[e]})),N.postMessage=y,N.requireNativePlugin=E,N.onNavigationBarButtonTap=S,N.onNavigationBarSearchInputChanged=I,N.onNavigationBarSearchInputConfirmed=O,N.onNavigationBarSearchInputClicked=x,Object.keys({uploadFile:!0,downloadFile:!0,chooseImage:!0,previewImage:!0,getImageInfo:!0,saveImageToPhotosAlbum:!0,chooseVideo:!0,saveVideoToPhotosAlbum:!0,saveFile:!0,getSavedFileList:!0,getSavedFileInfo:!0,removeSavedFile:!0,openDocument:!0,setStorage:!0,getStorage:!0,getStorageInfo:!0,removeStorage:!0,clearStorage:!0,getLocation:!0,chooseLocation:!0,openLocation:!0,getSystemInfo:!0,getNetworkType:!0,makePhoneCall:!0,scanCode:!0,setScreenBrightness:!0,getScreenBrightness:!0,setKeepScreenOn:!0,vibrateLong:!0,vibrateShort:!0,addPhoneContact:!0,showToast:!0,showLoading:!0,hideToast:!0,hideLoading:!0,showModal:!0,showActionSheet:!0,setNavigationBarTitle:!0,setNavigationBarColor:!0,navigateTo:!0,redirectTo:!0,reLaunch:!0,switchTab:!0,navigateBack:!0,getProvider:!0,login:!0,getUserInfo:!0,share:!0,requestPayment:!0,subscribePush:!0,unsubscribePush:!0,onPush:!0,offPush:!0}).forEach((function(e){var t=q[e];t||(t=C(e)),i(e)?N[e]=r(t):N[e]=t}))),N};var a=new WeexPlus(weex);t.weexPlus=a;var i=o(weex,a,BroadcastChannel);t.default=i},function(e,t,n){Vue.prototype.__$appStyle__={},Vue.prototype.__merge_style&&Vue.prototype.__merge_style(n(4).default,Vue.prototype.__$appStyle__)},function(e,t,n){"use strict";n.r(t);var o=n(0),a=n.n(o);for(var i in o)"default"!==i&&function(e){n.d(t,e,(function(){return o[e]}))}(i);t.default=a.a},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={onLoad:function(){this.initMessage()},methods:{initMessage:function(){var t=this,n=e.webview.currentWebview().extras||{},o=n.from,a=(n.callback,n.runtime),i=n.data,r=void 0===i?{}:i,s=n.useGlobalEvent;this.__from=o,this.__runtime=a,this.__page=e.webview.currentWebview().id,this.__useGlobalEvent=s,this.data=JSON.parse(JSON.stringify(r)),e.key.addEventListener("backbutton",(function(){"function"==typeof t.onClose?t.onClose():e.webview.currentWebview().close("auto")}));var c=this,u=function(e){var t=e.data&&e.data.__message;t&&c.__onMessageCallback&&c.__onMessageCallback(t.data)};this.__useGlobalEvent?weex.requireModule("globalEvent").addEventListener("plusMessage",u):new BroadcastChannel(this.__page).onmessage=u},postMessage:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=JSON.parse(JSON.stringify({__message:{__page:this.__page,data:t,keep:n}})),a=this.__from;if("v8"===this.__runtime)if(this.__useGlobalEvent)e.webview.postMessageToUniNView(o,a);else{var i=new BroadcastChannel(a);i.postMessage(o)}else{var r=e.webview.getWebviewById(a);r&&r.evalJS("__plusMessage&&__plusMessage(".concat(JSON.stringify({data:o}),")"))}},onMessage:function(e){this.__onMessageCallback=e}}};t.default=n}).call(this,n(2).weexPlus)},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={data:function(){return{locale:"en",fallbackLocale:"en",localization:{en:{done:"OK",cancel:"Cancel"},zh:{done:"完成",cancel:"取消"},"zh-hans":{},"zh-hant":{},messages:{}},localizationTemplate:{}}},onLoad:function(){this.initLocale()},created:function(){this.initLocale()},methods:{initLocale:function(){if(!this.__initLocale){this.__initLocale=!0;var t=(e.webview.currentWebview().extras||{}).data||{};if(t.messages&&(this.localization.messages=t.messages),t.locale)this.locale=t.locale.toLowerCase();else{var n=e.os.language.toLowerCase().split("/")[0].replace("_","-").split("-"),o=n[1];o&&(n[1]={chs:"hans",cn:"hans",sg:"hans",cht:"hant",tw:"hant",hk:"hant",mo:"hant"}[o]||o),n.length=n.length>2?2:n.length,this.locale=n.join("-")}}},localize:function(e){var t=this,n=this.locale,o=n.split("-")[0],a=this.fallbackLocale,i=function(e){return Object.assign({},t.localization[e],(t.localizationTemplate||{})[e])};return i("messages")[e]||i(n)[e]||i(o)[e]||i(a)[e]||e}}};t.default=n}).call(this,n(2).weexPlus)},,function(e,t,n){"use strict";var o=n(30),a=n(15),i=n(1);var r=Object(i.a)(a.default,o.b,o.c,!1,null,null,"58c3f92f",!1,o.a,void 0);(function(e){this.options.style||(this.options.style={}),Vue.prototype.__merge_style&&Vue.prototype.__$appStyle__&&Vue.prototype.__merge_style(Vue.prototype.__$appStyle__,this.options.style),Vue.prototype.__merge_style?Vue.prototype.__merge_style(n(37).default,this.options.style):Object.assign(this.options.style,n(37).default)}).call(r),t.default=r.exports},,,,,,,function(e,t,n){"use strict";var o=n(16),a=n.n(o);t.default=a.a},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(5)),a=i(n(6));function i(e){return e&&e.__esModule?e:{default:e}}var r={mixins:[o.default,a.default],data:function(){return{bottom:"0px",longitude:"",latitude:"",markers:[],name:"",address:"",localizationTemplate:{en:{"map.title.amap":"AutoNavi Maps","map.title.baidu":"Baidu Maps","map.title.tencent":"Tencent Maps","map.title.apple":"Apple Maps","map.title.google":"Google Maps","location.title":"My Location","select.cancel":"Cancel"},zh:{"map.title.amap":"高德地图","map.title.baidu":"百度地图","map.title.tencent":"腾讯地图","map.title.apple":"苹果地图","map.title.google":"谷歌地图","location.title":"我的位置","select.cancel":"取消"}},android:"android"===weex.config.env.platform.toLowerCase()}},onLoad:function(){var t=this.data;if(this.latitude=t.latitude,this.longitude=t.longitude,this.name=t.name||"",this.address=t.address||"",!this.android){var n=e.webview.currentWebview().getSafeAreaInsets();this.bottom=n.bottom+"px"}},onReady:function(){this.mapContext=this.$refs.map1,this.markers=[{id:"location",latitude:this.latitude,longitude:this.longitude,title:this.name,zIndex:"1",iconPath:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAABICAMAAACORiZjAAAByFBMVEUAAAD/PyL/PyL/PyL/PyL/PyL/PyL/PyL/PyL/PiL/PyL/PyL/PyP/PyL/PyL/PyL/PyL/PiL/PyL8PiP/PyL4OyP/PyL3OyX9Pyb0RUP0RkPzOiXsPj3YLi7TKSnQJiX0RkTgMCj0QjvkNC3vPDPwOy/9PyXsNSTyRUTgNDPdMjHrPTzuQD7iNTTxQ0HTJyTZKyf1RULlNjDZKyTfLSLeLSX0Qzz3Qzv8PSTMJCTmOjnPJSXLIiLzRkXWLCvgNDPZLyzVKijRJSTtPzvcMS7jNjPZLCnyREHpOzjiNDDtPzvzQz/VKSXkNTDsPDXyQjz2RT7pMyTxOinjMST5QjTmOjnPJSLdLyr0RD//YF7/////R0b/Tk3/XVv/WFb/VVP/S0v/Pz//W1n/UVD/REP/Xlz/Ojr/QUH/Skn/U1L/ODf7VlX5UU/oOzrqNzf/+/v5UlHvQUD2TEv0SUj3Tk3/2dn8W1r6TEv7R0b7REPvPTzzPDvwNjXkMjLnMDDjLS3dKir/xcX/vr7/qqn/pqX/mZn/fn7/ZWT/8PD/4eH/3t3/zs7/ra3/kpL/iIj/e3r5PDz4NjbxMTHsMTDlLCz/9vb/6ej/ubjhOGVRAAAAWXRST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4Mv177Jaz4fhQFnWdr8c4283pVhBRSDg4+zLeOYyu9CcCsIBK5T2fF0mXK7JkYaAEaAoY9Mazqw1FdnBRcWFuA/ZGDOd/R7eH7my3m1MA208k60I3ibHozUps/bICe+PQllbUmjrBaxIqaynG5JwT5UrgmW9ubpjrt5kJMOKlMvavIM2o08cVqRcVvONyNw0Y088YVmvPIJeqVUEy9rkmU31imBZ1x7PNV6RelkeD16Relmfbm81VQTLevs2A74iDWXpXzznwwEj9YCszcbCcOqiSY4jYTh1Jx1B04o+/wH6/wOSPFj1xgAAAABJRU5ErkJggg==",width:26,height:36}],this.updateMarker()},methods:{goto:function(){var e="iOS"===weex.config.env.platform;this.openSysMap(this.latitude,this.longitude,this.name,e)},updateMarker:function(){this.mapContext.moveToLocation(),this.mapContext.translateMarker({markerId:"location",destination:{latitude:this.latitude,longitude:this.longitude},duration:0},(function(e){}))},openSysMap:function(t,n,o,a){var i=this,r=weex.requireModule("mapSearch"),s=[{title:this.localize("map.title.tencent"),getUrl:function(){return"https://apis.map.qq.com/uri/v1/routeplan?type=drive&to="+encodeURIComponent(o)+"&tocoord="+encodeURIComponent(t+","+n)+"&referer=APP"}},{title:this.localize("map.title.google"),getUrl:function(){return"https://www.google.com/maps/?daddr="+encodeURIComponent(o)+"&sll="+encodeURIComponent(t+","+n)}}],c=[{title:this.localize("map.title.amap"),pname:"com.autonavi.minimap",action:a?"iosamap://":"amapuri://",getUrl:function(){var e;return e=a?"iosamap://path":"amapuri://route/plan/",e+="?sourceApplication=APP&dname="+encodeURIComponent(o)+"&dlat="+t+"&dlon="+n+"&dev=0"}},{title:this.localize("map.title.baidu"),pname:"com.baidu.BaiduMap",action:"baidumap://",getUrl:function(){return"baidumap://map/direction?destination="+encodeURIComponent("latlng:"+t+","+n+"|name:"+o)+"&mode=driving&src=APP&coord_type=gcj02"}},{title:this.localize("map.title.tencent"),pname:"com.tencent.map",action:"qqmap://",getUrl:function(){return"qqmap://map/routeplan?type=drive"+(a?"&from="+encodeURIComponent(i.localize("location.title")):"")+"&to="+encodeURIComponent(o)+"&tocoord="+encodeURIComponent(t+","+n)+"&referer=APP"}},{title:this.localize("map.title.google"),pname:"com.google.android.apps.maps",action:"comgooglemapsurl://",getUrl:function(){var e;return e=a?"comgooglemapsurl://maps.google.com/":"https://www.google.com/maps/",e+="?daddr="+encodeURIComponent(o)+"&sll="+encodeURIComponent(t+","+n)}}],u=[];c.forEach((function(t){e.runtime.isApplicationExist({pname:t.pname,action:t.action})&&u.push(t)})),a&&u.unshift({title:this.localize("map.title.apple"),navigateTo:function(){r.openSystemMapNavigation({longitude:n,latitude:t,name:o})}}),0===u.length&&(u=u.concat(s)),e.nativeUI.actionSheet({cancel:this.localize("select.cancel"),buttons:u},(function(t){var n,o=t.index;o>0&&((n=u[o-1]).navigateTo?n.navigateTo():e.runtime.openURL(n.getUrl(),(function(){}),n.pname))}))}}};t.default=r}).call(this,n(2).weexPlus)},function(e,t){e.exports={page:{flex:1},"flex-r":{flexDirection:"row",flexWrap:"nowrap"},"flex-c":{flexDirection:"column",flexWrap:"nowrap"},"flex-fill":{flex:1},"a-i-c":{alignItems:"center"},"j-c-c":{justifyContent:"center"},target:{paddingTop:"10",paddingBottom:"10"},"text-area":{paddingLeft:"10",paddingRight:"10",flex:1},name:{fontSize:"16",lines:1,textOverflow:"ellipsis"},address:{fontSize:"14",color:"#808080",lines:1,textOverflow:"ellipsis",marginTop:"2"},"goto-area":{width:"50",height:"50",paddingTop:"8",paddingRight:"8",paddingBottom:"8",paddingLeft:"8",backgroundColor:"#007aff",borderRadius:50,marginRight:"10"},"goto-icon":{width:"34",height:"34"},"goto-text":{fontSize:"14",color:"#FFFFFF"}}},,,,,,,,,,,,,function(e,t,n){"use strict";var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("scroll-view",{staticStyle:{flexDirection:"column"},attrs:{scrollY:!0,enableBackToTop:!0,bubble:"true"}},[n("view",{staticClass:["page","flex-c"],style:{paddingBottom:e.bottom}},[n("map",{ref:"map1",staticClass:["flex-fill","map"],attrs:{longitude:e.longitude,latitude:e.latitude,markers:e.markers}}),n("view",{staticClass:["flex-r","a-i-c","target"]},[n("view",{staticClass:["text-area"]},[n("u-text",{staticClass:["name"]},[e._v(e._s(e.name))]),n("u-text",{staticClass:["address"]},[e._v(e._s(e.address))])]),n("view",{staticClass:["goto-area"],on:{click:e.goto}},[n("u-image",{staticClass:["goto-icon"],attrs:{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADIEAYAAAD9yHLdAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAAAAAAAA+UO7fwAAAAlwSFlzAAAASAAAAEgARslrPgAADzVJREFUeNrt3WmMFMUfxvGqRREjEhXxIAooUQTFGPGIeLAcshoxRhM1Eu+YjZGIJh4vTIzHC1GJiiCeiUckEkWDVzxQxHgRvNB4LYiigshyxFXYg4Bb/xfPv1YbFpjtnZmq7v5+3vxSs8vOr4vpfqZ6pmeMAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMKwoRtAtjnnnHN77KHR2LGqhx327y8YZ9zSpcYaa+z8+dZaa21LS+i+AQCBKDgmTVJdv96VZN06/+9C9w8AqBId+K1Vfeih0gJjZ/zfsayEASBvksExbVp5gmNrjz5KkABATlQnOAgSAMiNMMFBkABAZsURHAQJAGRGnMFBkABAtLIRHAQJAEQjm8FBkABAMPkIDoIEAKomn8FBkABAxRQjOAgSACibYgYHQQIAqREcnSFIAGC7/AFSleDoHEECAB38AVGV4CgNQQKgwPwBUJXgSIcgAVAg/oCnSnCUB0ECIMf8AU6V4KgMggRAjvgDmirBUR0ECYAM8wcw1ViCY/PmfN3Pzvh5J0gAZIA/YCUPYKE1NqpOmlSd+6uvV/3999BbLqxIAETMH6BUYwuOI49Ura2tzv36+xkyRJUgAYBt+AOSanzBkeyzegGSvF+CBAA6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VW7trd+2ffRZ6+wAAFaID/dlnlz1AnHPOnXVW6O0DAFSYDvhTppRn5XHXXaG3BwBQZUqBK65QbWwsLTVWr1a9/PLQ/QPoPhu6AWSbAqFXL43GjFEdMiT5Ww0NqgsW6Iui2tpC9w0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAyK7/ATO6t9N2I5PTAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIyLTAzLTAxVDExOjQ1OjU1KzA4OjAw5vcxUwAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0wMy0wMVQxMTo0NTo1NSswODowMJeqie8AAABSdEVYdHN2ZzpiYXNlLXVyaQBmaWxlOi8vL2hvbWUvYWRtaW4vaWNvbi1mb250L3RtcC9pY29uX2lnaGV6d2JubWhiL25hdmlnYXRpb25fbGluZS5zdmc29Ka/AAAAAElFTkSuQmCC"}})],1)])],1)])},a=[];n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){}))},,,,,,,function(e,t,n){"use strict";n.r(t);var o=n(17),a=n.n(o);for(var i in o)"default"!==i&&function(e){n.d(t,e,(function(){return o[e]}))}(i);t.default=a.a},,,,,function(e,t,n){"use strict";n.r(t);n(3);var o=n(8);o.default.mpType="page",o.default.route="template/__uniappopenlocation",o.default.el="#root",new Vue(o.default)}]);