!function(e){var t={};function a(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,a),o.l=!0,o.exports}a.m=e,a.c=t,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},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 n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)a.d(n,o,function(t){return e[t]}.bind(null,o));return n},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=51)}([function(e,t){e.exports={}},function(e,t,a){"use strict";function n(e,t,a,n,o,i,r,s){var c,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=a,l._compiled=!0),n&&(l.functional=!0),i&&(l._scopeId="data-v-"+i),r?(c=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__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},l._ssrRegister=c):o&&(c=s?function(){o.call(this,this.$root.$options.shadowRoot)}:o),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(e,t){return c.call(t),u(e,t)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:l}}a.d(t,"a",function(){return n})},function(e,t,a){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.weexPlus=t.default=void 0,n="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"],n=function(e){return!(t.test(e)&&"createBLEConnection"!==e||~a.indexOf(e))},i=function(t){return function(){for(var a=arguments.length,n=Array(a>1?a-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:{};return e(i.success)||e(i.fail)||e(i.complete)?t.apply(void 0,[i].concat(n)):new Promise(function(e,a){t.apply(void 0,[Object.assign({},i,{success:e,fail:a})].concat(n)),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]})}},r=[],s=void 0;function c(e){r.forEach(function(t){return t({origin:s,data:e})})}var l=o.webview.currentWebview().id,u=new BroadcastChannel("UNI-APP-SUBNVUE");function d(e){e.$processed=!0;var t=o.webview.currentWebview().id===e.id,a="uniNView"===e.__uniapp_origin_type&&e.__uniapp_origin_id,n=e.id;if(e.postMessage=function(e){a?u.postMessage({data:e,to:t?a:n}):S({type:"UniAppSubNVue",data:e})},e.onMessage=function(e){r.push(e)},e.__uniapp_mask_id){s=e.__uniapp_host;var i=e.__uniapp_mask,c=o.webview.getWebviewById(e.__uniapp_mask_id);c=c.parent()||c;var l=e.show,d=e.hide,f=e.close,p=function(){c.setStyle({mask:"none"})};e.show=function(){c.setStyle({mask:i});for(var t=arguments.length,a=Array(t),n=0;n1&&void 0!==arguments[1]?arguments[1]:V,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"application/x-www-form-urlencoded";return"object"===(void 0===e?"undefined":E(e))?"POST"===t.toUpperCase()&&"application/json"===a.toLowerCase()?JSON.stringify(e):Object.keys(e).map(function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])}).join("&"):e},D=weex.requireModule("plusstorage"),R="__TYPE",q=weex.requireModule("clipboard"),J=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 F(e,t,a){return e[t].apply(e,a)}var X=Object.freeze({loadFontFace:function(t){var a=t.family,n=t.source,o=(t.desc,t.success),i=(t.fail,t.complete);T.addRule("fontFace",{fontFamily:a,src:n.replace(/"/g,"'")});var r={errMsg:"loadFontFace:ok",status:"loaded"};e(o)&&o(r),e(i)&&i(r)},ready:I,request:function(t){var a=t.url,n=t.data,o=t.header,i=t.method,r=void 0===i?"GET":i,s=t.dataType,c=void 0===s?"json":s,l=(t.responseType,t.success),u=t.fail,d=t.complete,f=!1,p=!1,g={};if(o)for(var h in o)p||"content-type"!==h.toLowerCase()?g[h]=o[h]:(p=!0,g["Content-Type"]=o[h]);return r===V&&n&&(a=a+(~a.indexOf("?")?"&"===a.substr(-1)||"?"===a.substr(-1)?"":"&":"?")+U(n)),B.fetch({url:a,method:r,headers:g,type:"json"===c?"json":"text",body:r!==V?U(n,r,g["Content-Type"]):""},function(t){var a=t.status,n=(t.ok,t.statusText,t.data),o=t.headers,i={};!a||-1===a||f?(i.errMsg="request:fail",e(u)&&u(i)):(i.data=n,i.statusCode=a,i.header=o,e(l)&&l(i)),e(d)&&d(i)}),{abort:function(){f=!0}}},getStorage:function(t){var a=t.key,n=(t.data,t.success),o=t.fail,i=t.complete;D.getItem(a+R,function(t){if("success"===t.result){var r=t.data;D.getItem(a,function(t){if("success"===t.result){var a=t.data;r&&a?("String"!==r&&(a=JSON.parse(a)),e(n)&&n({errMsg:"getStorage:ok",data:a})):(t.errMsg="setStorage:fail",e(o)&&o(t))}else t.errMsg="setStorage:fail",e(o)&&o(t);e(i)&&i(t)})}else t.errMsg="setStorage:fail",e(o)&&o(t),e(i)&&i(t)})},setStorage:function(t){var a=t.key,n=t.data,o=t.success,i=t.fail,r=t.complete,s="String";"object"===(void 0===n?"undefined":E(n))&&(s="Object",n=JSON.stringify(n)),D.setItem(a,n,function(t){"success"===t.result?D.setItem(a+R,s,function(t){"success"===t.result?e(o)&&o({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 a=t.key,n=(t.data,t.success),o=t.fail,i=t.complete;D.removeItem(a,function(t){"success"===t.result?e(n)&&n({errMsg:"removeStorage:ok"}):(t.errMsg="removeStorage:fail",e(o)&&o(t)),e(i)&&i(t)}),D.removeItem(a+R)},clearStorage:function(e){e.key,e.data,e.success,e.fail,e.complete},getClipboardData:function(t){var a=t.success,n=(t.fail,t.complete);q.getString(function(t){var o={errMsg:"getClipboardData:ok",data:t.data};e(a)&&a(o),e(n)&&n(o)})},setClipboardData:function(t){var a=t.data,n=t.success,o=(t.fail,t.complete),i={errMsg:"setClipboardData:ok"};q.setString(a),e(n)&&n(i),e(o)&&o(i)},onSubNVueMessage:c,getSubNVueById:f,getCurrentSubNVue:function(){return f(o.webview.currentWebview().id)},$on:function(){return F(J(),"$on",[].concat(Array.prototype.slice.call(arguments)))},$off:function(){return F(J(),"$off",[].concat(Array.prototype.slice.call(arguments)))},$once:function(){return F(J(),"$once",[].concat(Array.prototype.slice.call(arguments)))},$emit:function(){return F(J(),"$emit",[].concat(Array.prototype.slice.call(arguments)))}}),z={os:{nvue:!0}},W={};return"undefined"!=typeof Proxy?W=new Proxy({},{get:function(e,t){if("os"===t)return{nvue:!0};if("postMessage"===t)return S;if("requireNativePlugin"===t)return j;if("onNavigationBarButtonTap"===t)return L;if("onNavigationBarSearchInputChanged"===t)return P;if("onNavigationBarSearchInputConfirmed"===t)return M;if("onNavigationBarSearchInputClicked"===t)return k;var a=X[t];return a||(a=b(t)),n(t)?i(a):a}}):(Object.keys(z).forEach(function(e){W[e]=z[e]}),W.postMessage=S,W.requireNativePlugin=j,W.onNavigationBarButtonTap=L,W.onNavigationBarSearchInputChanged=P,W.onNavigationBarSearchInputConfirmed=M,W.onNavigationBarSearchInputClicked=k,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=X[e];t||(t=b(e)),n(e)?W[e]=i(t):W[e]=t})),W};var o=new WeexPlus(weex);t.weexPlus=o;var i=n(weex,o,BroadcastChannel);t.default=i},function(e,t,a){"use strict";a.r(t);var n=a(4),o=a.n(n);for(var i in n)"default"!==i&&function(e){a.d(t,e,function(){return n[e]})}(i);t.default=o.a},function(e,t,a){"use strict";(function(e,a){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=weex.requireModule("globalEvent"),o={data:function(){return{}},onLoad:function(){var t=this,o=e.webview.currentWebview().extras||{},i=o.from,r=(o.callback,o.runtime),s=o.data,c=void 0===s?{}:s;this.__from=i,this.__runtime=r,this.__page=e.webview.currentWebview().id,this.data=JSON.parse(JSON.stringify(c)),e.key.addEventListener("backbutton",function(){"function"==typeof t.onClose?t.onClose():e.webview.currentWebview().close("auto")});var l=this,u=this._onPlusMessage=function(e){var t=e.data&&e.data.__message;t&&l.__onMessageCallback&&l.__onMessageCallback(t.data)};"v8-native"===r?a.$on(this.__page,u):n.addEventListener("plusMessage",u)},methods:{postMessage:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i={__message:{__page:this.__page,data:t,keep:o}};if(o||("v8-native"===this.__runtime?a.$off(this.__page,this._onPlusMessage):n.removeEventListener("plusMessage",this._onPlusMessage)),"v8"===this.__runtime)e.webview.postMessageToUniNView(i,this.__from);else if("v8-native"===this.__runtime)a.$emit(this.__from,{data:JSON.parse(JSON.stringify(i))});else{var r=e.webview.getWebviewById(this.__from);r&&r.evalJS("__plusMessage&&__plusMessage(".concat(JSON.stringify({data:i}),")"))}},onMessage:function(e){this.__onMessageCallback=e}}};t.default=o}).call(this,a(2).weexPlus,a(2).default)},function(e,t,a){"use strict";var n=function(){var e=this.$createElement;return(this._self._c||e)("view")},o=[];a.d(t,"a",function(){return n}),a.d(t,"b",function(){return o})},function(e,t,a){Vue.prototype.__$appStyle__={},Vue.prototype.__merge_style&&Vue.prototype.__merge_style(a(7).default,Vue.prototype.__$appStyle__)},function(e,t,a){"use strict";a.r(t);var n=a(0),o=a.n(n);for(var i in n)"default"!==i&&function(e){a.d(t,e,function(){return n[e]})}(i);t.default=o.a},function(e,t,a){"use strict";a.r(t);var n=a(5),o=a(3);for(var i in o)"default"!==i&&function(e){a.d(t,e,function(){return o[e]})}(i);var r=a(1);var s=Object(r.a)(o.default,n.a,n.b,!1,null,null,"690d182e");(function(){this.options.style||(this.options.style={}),Vue.prototype.__merge_style&&Vue.prototype.__$appStyle__&&Vue.prototype.__merge_style(Vue.prototype.__$appStyle__,this.options.style)}).call(s),t.default=s.exports},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),a=0;a1){var i=n.pop();o=n.join("---COMMA---"),0===i.indexOf(" at ")?o+=i:o+="---COMMA---"+i}else o=n[0];return o}},function(e,t,a){"use strict";var n=a(41),o=a(18),i=a(1);var r=Object(i.a)(o.default,n.a,n.b,!1,null,null,"19cc1458");(function(){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(a(45).default,this.options.style):Object.assign(this.options.style,a(45).default)}).call(r),t.default=r.exports},,,,,,,,function(e,t,a){"use strict";var n=a(19),o=a.n(n);t.default=o.a},function(e,t,a){"use strict";(function(e,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,i=(o=a(8))&&o.__esModule?o:{default:o};var r=weex.requireModule("mapSearch"),s={mixins:[i.default],data:function(){return{searchKeyword:"",showLocation:!0,latitude:39.908692,longitude:116.397477,nearList:[],nearSelectedIndex:-1,noNearData:!1,selectedIcon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAaVBMVEUAAAAAef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef84EEEWAAAAInRSTlMA+QQY6izG8NO6TphC3JReWSMoDLOfgXajf29lZEs7Hcep1l5DEAAAAPxJREFUOMuFU9cSgyAQBDSUgCVgSS/8/0cGc8E5FQdeOGaXud0rBB9mzdFYRtKnGDkVkktB+VgkYE27poCw6aheUxpxPqHn6SyaRe66NKsfpqyRll6+Njlfsp/jS1WkRFeXf/QUh6Stg3iCAHndMX6VPxltlaiMNdPXqp1iftviR+qHcN34ZJm6FO4/4XY0FOeuknhpp0jdCamHJA7GhjqQ2n2ctCpofPw8K+22O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Y088YVmvPIJeqVUEy9rkmU31imBZ1x7PNV6RelkeD16Relmfbm81VQTLevs2A74iDWXpXzznwwEj9YCszcbCcOqiSY4jYTh1Jx1B04o+/wH6/wOSPFj1xgAAAABJRU5ErkJggg==",width:26,height:36}],searchList:[],showSearch:!1,noSearchData:!1}},onLoad:function(){var t=this,a=this.data;this.searchKeyword=a.keyword||"",this._searchInputTimer=null,this.onMessage(function(a){if(t.nearSelectedIndex<0)e.nativeUI.alert("您尚未选择位置!");else{var n=t.nearList[t.nearSelectedIndex],o={name:n.name,address:n.address,latitude:n.location.latitude,longitude:n.location.longitude};t.postMessage({event:"selected",detail:o})}}),this._hasUserLocation=!1},onReady:function(){this.mapContext=this.$refs.map1,this.getUserLocation()},onUnload:function(){this.clearSearchTimer()},methods:{getUserLocation:function(){var t=this;e.geolocation.getCurrentPosition(function(e){var a=e.coordsType,n=e.coords;"wgs84"===a.toLowerCase()?t.wgs84togcjo2(n,function(e){t.getUserLocationSuccess(e)}):t.getUserLocationSuccess(n)},function(e){t._hasUserLocation=!0,console.log(n("Gelocation Error: code - "+e.code+"; message - "+e.message," at template/__uniappchooselocation.nvue:140"))},{geocode:!1})},getUserLocationSuccess:function(e){this._hasUserLocation=!0,this.moveToCenter({latitude:e.latitude,longitude:e.longitude})},searchclick:function(t){this.showSearch=t,!1===t&&e.key.hideSoftKeybord()},showSearchView:function(){this.searchList=[],this.showSearch=!0},hideSearchView:function(){this.showSearch=!1,e.key.hideSoftKeybord(),this.noSearchData=!1},onregionchange:function(e){var t=this,a=e.detail,n=a.type||e.type;"drag"===(a.causedBy||e.causedBy)&&"end"===n&&this.mapContext.getCenterLocation(function(e){t.moveToCenter({latitude:e.latitude,longitude:e.longitude})})},onItemClick:function(e,t){t.stopPropagation(),this.nearSelectedIndex!==e&&(this.nearSelectedIndex=e),this.updateMarker(this.nearList[e].location)},moveToCenter:function(e){this.latitude===e.latitude&&this.longitude===e.longitude||(this.latitude=e.latitude,this.longitude=e.longitude,this.updateCenter(e))},updateCenter:function(e){this.nearSelectedIndex=-1,this.nearList=[],this.updateMarker(e),this._hasUserLocation&&(this.reverseGeocode(e),this.searchNearByPoint(e))},searchNearByPoint:function(e){var t=this;this.noNearData=!1,r.poiSearchNearBy({point:{latitude:e.latitude,longitude:e.longitude},key:this.searchKeyword,radius:1e3},function(e){e.poiList&&e.poiList.length?(t.replaceEscape(e.poiList),t.nearList=t.nearList.concat(e.poiList)):(t.nearList=[],t.noNearData=!0)})},updateMarker:function(e){this.mapContext.translateMarker({markerId:"location",destination:{latitude:e.latitude,longitude:e.longitude},duration:0},function(e){})},reverseGeocode:function(e){var t=this;r.reverseGeocode({point:e},function(a){"success"===a.type&&t.nearList.splice(0,0,{code:a.code,location:e,name:"地图位置",address:a.address||""})})},onsearchinput:function(e){var t=this,a=e.detail.value.replace(/^\s+|\s+$/g,"");this.clearSearchTimer(),this._searchInputTimer=setTimeout(function(){clearTimeout(t._searchInputTimer),t.search(a)},300)},clearSearchTimer:function(){this._searchInputTimer&&clearTimeout(this._searchInputTimer)},search:function(e){var t=this;this.noSearchData=!1,r.poiSearchNearBy({point:{latitude:this.latitude,longitude:this.longitude},key:e,radius:5e3},function(e){e.poiList&&e.poiList.length?(t.replaceEscape(e.poiList),t.searchList=e.poiList):(t.searchList=[],t.noSearchData=!0)})},onSearchItemClick:function(e){this.nearSelectedIndex=-1,this.hideSearchView(),this.moveToCenter(e.location)},replaceEscape:function(e){for(var t=0;t