text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-Map-Map"],{"06c5":function(e,t,n){"use strict";n("a630"),n("fb6a"),n("d3b7"),n("25f0"),n("3ca3"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=a(n("6b75"));function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(e){if("string"===typeof e)return(0,i.default)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,i.default)(e,t):void 0}}},1947:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAGEUlEQVR4Xu1aW2xUVRRd+85MO33ODBShtYFqEGma+GPLe0rDo8wQiAGF4gONwaJEE0XRDz8A+fBDUTQxojxifFtQiIEwQwVSOjwKrT8mTUsgWhtsqRZmpi3ttNO529wpJVBrmXPubfngnr82e+219jrvM5dwjzcaq/rbS2dPtylJpQyeB8J0AHkAMm7wdwJoAqORQKeial9lVuXZxrHQNqoGcEFBUjh33LNQ6EUAhYIF1UHlzx2Xr31F9fV9gtiEw0fNgNAS9+NQaPuNnk5Y0DCBTVB5k/No4Cc9Sf4Pa7gBV70zMy2cvBuE1YYKZuyLUW/5eN+5DiPzGmpAcOmcKcRWH4B8I0XekquBqd/rOnLmT6PyG2ZA0DMrj8h2EqDJRokbPg83M0fnu/w1TUbwGGJAsKTEqdjVszywuo96I0ajGlFmu6qqQnrJDDEg5C0+AGCFXjGC+INOX/VKQcx/wnUbcM1b/LQCfKNXiAxeBZ4Z56v+VgY7iNFlQMvyR1NToqkXiShHjwhZLDO39Ni6H8o59Gu3bA5dBgS97tcItEOW3Agcgze6fIGPZHPpMiDsdTcy6GFZciNwBL7g8AWkF19pA8JL3DNYoXN6iqC09Dicr3fpSQNSeabjaOC8TBJpA4Je92YCv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owil+GDHKPiQFDeyTkLd4J4KUh///M6aveINJ7RsSaBhjhomgOcwSYU8BcA8xF0NwFzG3QPAeYByHzJHi7A+ZR2LwLmJch8zZoXodFb5Z64833AL0OyuDN9wDzPeAefg/4Ii/PvmBqdqXDZnPfOn3C0WjgxKXW0uebmoS/9JKZhnftVbiiKH9Xflp6+eQhn8s19/Sg4XrX7rLahvV6ChLFjvkuUFGUfyHNYpmWlZR0m9b2vj50xWIX19Q2TBMtQk/82BtQOH0LiIb/rIZ5a1ldo/TnLjJGjLkBmsh9hfnrmHgDgx7R/ibwb8S0c3Vdw16ZIvRg7ooBegQbjf0X4hE0X/AEDlYAAAAASUVORK5CYII="},"3bed":function(e,t,n){var i=n("24fb");t=i(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场（https://ext.dcloud.net.cn）上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者，建议你使用scss预处理，并在插件代码中直接使用这些变量（无需 import 这个文件），方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者（插件使用者），你可以通过修改这些变量来定制自己的插件主题，实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理，你也可以直接在你的 scss 代码中使用如下变量，同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.map_page[data-v-11c6d6f0]{position:relative;height:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.map_page .addressSearch[data-v-11c6d6f0]{padding:%?26?% %?30?%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.map_page .addressSearch > uni-view[data-v-11c6d6f0]:nth-child(1){-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;width:%?180?%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.map_page .addressSearch .searchPut[data-v-11c6d6f0]{-webkit-box-flex:1;-webkit-flex:1;flex:1;height:%?60?%;background-color:#f5f5f5;-webkit-border-radius:%?40?%;border-radius:%?40?%;padding-left:%?60?%;margin-right:%?30?%}.map_page .map_box[data-v-11c6d6f0]{-webkit-box-flex:1;-webkit-flex:1;flex:1}.map_page .map_box .map[data-v-11c6d6f0]{height:100%}.map_page .map_box .Postion_msg[data-v-11c6d6f0]{height:100%;position:fixed;bottom:0;z-index:9999}.map_page .adderListMsg[data-v-11c6d6f0]{background-color:#f5f5f5}.map_page .adderListMsg .adderListMsg_item[data-v-11c6d6f0]{background-color:#fff;padding:%?24?%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;margin-bottom:%?12?%}.map_page .adderListMsg .adderListMsg_item .test[data-v-11c6d6f0]{margin-left:%?20?%;line-height:%?48?%}.map_page .adderListMsg .adderListMsg_item .test .adder_top[data-v-11c6d6f0]{color:#333}.map_page .adderListMsg .adderListMsg_item .test .adder_dizhi[data-v-11c6d6f0]{color:#999}',""]),e.exports=t},"402c":function(e,t,n){var i=n("3bed");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var a=n("4f06").default;a("439a790f",i,!0,{sourceMap:!1,shadowMode:!1})},4997:function(e,t,n){"use strict";n.r(t);var i=n("f335"),a=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);t["default"]=a.a},"6b75":function(e,t,n){"use strict";function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i},"796e":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAABfElEQVRYR+2VIU/DUBDH79LNFY/AV5B0yesMBL4BAoHBIsCgsHwG1CQkKIJAIlAIHEnDhYkaBEHMzBAcTJQ/ecmWkKYsXfseoeGq7+79+nv/Xpla9nDLeEmBfd+YGlbDBQMaCY2ERsJ3BtSwGp5v4P/sYWPMAREt10lEnueXw+HwqU5vbcPGmE1mviWi7iIHA7gRkS0i+lykb1ZbG9gOSJLkiIhOqh4M4GUymSRZlr1W7SnWNQKeQl8R0U4FgA8AGyLyUKH2x5LGwFEULYVhmBJRNA8EwL6InDaBtb2Nge2QXq+3GgTBPTOHZUAAzkVkrymsM2A7qN/v7wK4KJHwOB6P10ej0fufArYwxpgBMx/OwAC8BUGQpGn67ALWqeHpB9gFcMfMawDs2toWkWtXsM6B7cA4jlc6nY7dBGcicuwS1gvwNBqxiGRElLcC2DXk93lO1ppPQOd/ut+E9ZZhny+hkfBpVyPh264aVsMlBnSt+Y6FGlbDBQOti8QXp+RhLYH84EIAAAAASUVORK5CYII="},"8e51":function(e,t,n){"use strict";var i=n("402c"),a=n.n(i);a.a},b85c:function(e,t,n){"use strict";n("a4d3"),n("e01a"),n("d28b"),n("d3b7"),n("3ca3"),n("ddb0"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=a(n("06c5"));function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=(0,i.default)(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var a=0,o=function(){};return{s:o,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,r=!0,d=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return r=e.done,e},e:function(e){d=!0,s=e},f:function(){try{r||null==n["return"]||n["return"]()}finally{if(d)throw s}}}}},dec5:function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return i}));var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{staticClass:"map_page"},[i("v-uni-view",{staticClass:"addressSearch"},[i("v-uni-view",[i("v-uni-text",[e._v(e._s(e.cityname))]),i("v-uni-image",{staticStyle:{width:"44rpx",height:"44rpx"},attrs:{src:n("796e")}})],1),i("v-uni-input",{staticClass:"searchPut",attrs:{type:"text",placeholder:"请选择其他位置"}}),i("v-uni-view",{staticStyle:{width:"80rpx"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.back.apply(void 0,arguments)}}},[e._v("确定")])],1),i("v-uni-view",{staticClass:"map_box"}),i("v-uni-view",{staticClass:"adderListMsg"},e._l(e.annexCity,(function(t){return i("v-uni-view",{key:t,staticClass:"adderListMsg_item",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.savePostion.apply(void 0,arguments)}}},[i("v-uni-image",{staticStyle:{width:"60rpx",height:"48rpx"},attrs:{src:n("1947")}}),i("v-uni-view",{staticClass:"test"},[i("v-uni-view",{staticClass:"adder_top"},[e._v(e._s(e.position))]),i("v-uni-view",{staticClass:"adder_dizhi"},[e._v(e._s(t))])],1)],1)})),1)],1)},o=[]},f335:function(e,t,n){"use strict";var i=n("4ea4");n("99af"),n("caad"),n("a15b"),n("d81d"),n("26e9"),n("d3b7"),n("25f0"),n("2532"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n("b85c")),o={data:function(){return{cityLevel:"",provincial:"",cityname:"",latitude:0,annexCity:[],longitude:0,userNeedMsg:{leve1id:"",leve2id:"",leve1name:"",leve2name:"",useraddre:""},position:"",add:0,covers:[{latitude:49.10444366870733,longitude:-122.98507690429688,iconPath:"../../static/indeximgs/icon_nail.png",label:{content:"您的位置",bgColor:"#fff",color:"#f60",fontSize:"36rpx"}},{latitude:49.10444366870733,longitude:-122.98507690429688,iconPath:"../../static/indeximgs/icon_nail.png"}]}},methods:{getll:function(){var e=this;uni.getLocation({type:"wgs84",success:function(t){e.longitude=t.longitude,e.latitude=t.latitude,console.log("当前位置的经度："+t.longitude,e.longitude),console.log("当前位置的纬度："+t.latitude)}}),uni.chooseLocation({success:function(e){console.log("位置名称："+e.name),console.log("详细地址："+e.address),console.log("纬度："+e.latitude),console.log("经度："+e.longitude)}})},savePostion:function(){var e=this;e.userNeedMsg.leve2id?uni.showModal({title:"是否保存为收货地址",complete:function(e){e.confirm&&uni.navigateTo({url:"../Wode/wodepages/AddressManagementNew"})}}):uni.showToast({title:"无法配送，请重新选择配送地址"})},getUserLoc:function(){var e=this;uni.getLocation({type:"wgs84",success:function(t){e.latitude=49.10444366870733,e.longitude=-122.98507690429688,e.covers[0].latitude=49.10444366870733,e.covers[0].longitude=-122.98507690429688}})},filterMsg:function(e){var t=this;this.position=e[0].address_components[0].long_name,console.log(e[0].address_components[0].long_name);var n=e[0].address_components.reverse().map((function(e){return e.long_name}));uni.setStorageSync("str",n),this.annexCity.push(n.join(" ")),t.userNeedMsg.useraddre=n.join(" "),console.log("地区字符串拼接",n.toString());var i,o=(0,a.default)(e);try{for(o.s();!(i=o.n()).done;){var s=i.value;s.types.includes("administrative_area_level_1")&&(this.provincial=s,t.userNeedMsg.leve1id=s.place_id,t.userNeedMsg.leve1name=s.address_components[0].long_name,console.log("省级",s),uni.setStorageSync("pname",s.address_components[0].long_name),uni.setStorageSync("pid",s.place_id)),s.types.includes("locality")&&(console.log("市级",s),uni.setStorageSync("cityname",s.address_components[0].long_name),uni.setStorageSync("cityid",s.place_id),t.userNeedMsg.leve2id=s.place_id,this.cityname=s.address_components[0].long_name,t.userNeedMsg.leve2name=s.address_components[0].long_name,this.cityLevel=s,console.log("市级地名",s.formatted_address))}}catch(r){o.e(r)}finally{o.f()}},getPostion:function(e){console.log(e,"23232323"),this.longitude=e.mp.detail.longitude,this.latitude=e.mp.detail.latitude,this.annexCity=[],this.sendGolApi(),1==this.add&&setTimeout((function(){uni.navigateBack({delta:1})}),2e3)},sendGolApi:function(){var e=this;uni.request({url:"https://maps.googleapis.com/maps/api/geocode/json?language=zh-CN&latlng=".concat(this.latitude,",").concat(e.longitude,"&key=AIzaSyBhYuu1H_BcD6hIJiIPZ5Y05K0oY63WHtw"),method:"GET",success:function(t){console.log("谷歌",t.data.results),e.filterMsg(t.data.results)}})},back:function(){uni.navigateBack({delta:1})}},onLoad:function(e){1==e.add&&(this.add=1),this.getll()}};t.default=o},ff75:function(e,t,n){"use strict";n.r(t);var i=n("dec5"),a=n("4997");for(var o in a)"default"!==o&&function(e){n.d(t,e,(function(){return a[e]}))}(o);n("8e51");var s,r=n("f0c5"),d=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,"11c6d6f0",null,!1,i["a"],s);t["default"]=d.exports}}]);