HHSLinkSLink/HSLink-wx/unpackage/dist/build/app-plus/__uniappchooselocation.js

1 line
33 KiB
JavaScript
Raw Normal View History

2020-12-19 12:13:27 +08:00
!function(e){var t={};function A(a){if(t[a])return t[a].exports;var i=t[a]={i:a,l:!1,exports:{}};return e[a].call(i.exports,i,i.exports,A),i.l=!0,i.exports}A.m=e,A.c=t,A.d=function(e,t,a){A.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},A.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},A.t=function(e,t){if(1&t&&(e=A(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(A.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)A.d(a,i,function(t){return e[t]}.bind(null,i));return a},A.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return A.d(t,"a",t),t},A.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},A.p="",A(A.s=40)}([function(e,t){e.exports={}},function(e,t,A){"use strict";function a(e,t,A,a,i,n,o,s){var r,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=A,c._compiled=!0),a&&(c.functional=!0),n&&(c._scopeId="data-v-"+n),o?(r=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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=r):i&&(r=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),r)if(c.functional){c._injectStyles=r;var l=c.render;c.render=function(e,t){return r.call(t),l(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,r):[r]}return{exports:e,options:c}}A.d(t,"a",function(){return a})},function(e,t,A){"use strict";var a;Object.defineProperty(t,"__esModule",{value:!0}),t.weexPlus=t.default=void 0,a="function"==typeof getUni?getUni:function(){var e=function(e){return"function"==typeof e},t=/^\$|^on|^create|Sync$|Manager$|^pause/,A=["os","getCurrentSubNVue","getSubNVueById","stopRecord","stopVoice","stopBackgroundAudio","stopPullDownRefresh","hideKeyboard","hideToast","hideLoading","showNavigationBarLoading","hideNavigationBarLoading","canIUse","navigateBack","closeSocket","pageScrollTo","drawCanvas"],a=function(e){return!(t.test(e)&&"createBLEConnection"!==e||~A.indexOf(e))},n=function(t){return function(){for(var A=arguments.length,a=Array(A>1?A-1:0),i=1;i<A;i++)a[i-1]=arguments[i];var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e(n.success)||e(n.fail)||e(n.complete)?t.apply(void 0,[n].concat(a)):new Promise(function(e,A){t.apply(void 0,[Object.assign({},n,{success:e,fail:A})].concat(a)),Promise.prototype.finally=function(e){var t=this.constructor;return this.then(function(A){return t.resolve(e()).then(function(){return A})},function(A){return t.resolve(e()).then(function(){throw A})})}}).then(function(e){return[null,e]}).catch(function(e){return[e]})}},o=[],s=void 0;function r(e){o.forEach(function(t){return t({origin:s,data:e})})}var c=i.webview.currentWebview().id,l=new BroadcastChannel("UNI-APP-SUBNVUE");function d(e){e.$processed=!0;var t=i.webview.currentWebview().id===e.id,A="uniNView"===e.__uniapp_origin_type&&e.__uniapp_origin_id,a=e.id;if(e.postMessage=function(e){A?l.postMessage({data:e,to:t?A:a}):m({type:"UniAppSubNVue",data:e})},e.onMessage=function(e){o.push(e)},e.__uniapp_mask_id){s=e.__uniapp_host;var n=e.__uniapp_mask,r=i.webview.getWebviewById(e.__uniapp_mask_id);r=r.parent()||r;var c=e.show,d=e.hide,u=e.close,g=function(){r.setStyle({mask:"none"})};e.show=function(){r.setStyle({mask:n});for(var t=arguments.length,A=Array(t),a=0;a<t;a++)A[a]=arguments[a];return c.apply(e,A)},e.hide=function(){g();for(var t=arguments.length,A=Array(t),a=0;a<t;a++)A[a]=arguments[a];return d.apply(e,A)},e.close=function(){g();for(var t=arguments.length,A=Array(t),a=0;a<t;a++)A[a]=arguments[a];return u.apply(e,A)}}}function u(e){var t=i.webview.getWebviewById(e);return t&&!t.$processed&&d(t),t}l.onmessage=function(e){e.data.to===c&&r(e.data.data)};var g=weex.requireModule("plus"),f=weex.requireModu