12345678910 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/MapSelect"],{"07c0":function(t,e,n){},5060:function(t,e,n){"use strict";n.r(e);var i=n("a0df"),o=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);e["default"]=o.a},8236:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){}));var i=function(){var t=this.$createElement;this._self._c},o=[]},a0df:function(t,e,n){"use strict";(function(t){var i=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(n("9523")),r=n("193e"),s=n("26cb");function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){(0,o.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var u={name:"MapSelect",data:function(){return{keyword:"",address_list:[],bmap:!1,myMarker:!1,cityCode:0,style:!1}},props:{longitude:{},latitude:{},ifShowCurrent:{type:Boolean,default:!1}},watch:{longitude:function(t,e){t&&this.creatMap()}},computed:a({},(0,s.mapState)({member_point:function(t){return t.member.point}})),mounted:function(){},created:function(){this.longitude&&this.creatMap()},methods:a(a({},(0,s.mapMutations)({memberPoint:"memberPoint"})),{},{getPosition:function(){var e=this;t.showLoading({title:"加载中"}),(0,r.getPosition)((function(n){t.hideLoading(),1e4===n.code?e.getAddressByPoint(n.result.lat,n.result.lng):t.showToast({icon:"none",title:n.message})}),!0)},getAddressByPoint:function(e,n){var i=this;(0,r.getAddressByPoint)(e+","+n).then((function(t){i.cityCode=t.result.cityCode,i.memberPoint({point:{lng:n,lat:e,address:t.result.sematic_description,cityCode:t.result.cityCode}})})).catch((function(e){t.showToast({icon:"none",title:e.message})}))},creatMap:function(){var e=this;this.getAddressByPoint(this.latitude,this.longitude),(0,r.getPointNearby)(this.latitude+","+this.longitude).then((function(t){e.address_list=t.results,e.style=!0})).catch((function(e){t.showToast({icon:"none",title:e.message})}))},searchAddress:function(){var e=this;(0,r.getAddressByKeyword)(this.keyword,this.cityCode).then((function(t){e.address_list=t.result,e.style=!1})).catch((function(e){t.showToast({icon:"none",title:e.message})}))},setPosition:function(t,e,n){this.$emit("setPosition",t,e,n,this.cityCode)}})};e.default=u}).call(this,n("543d")["default"])},a2c3c:function(t,e,n){"use strict";var i=n("07c0"),o=n.n(i);o.a},f0f6:function(t,e,n){"use strict";n.r(e);var i=n("8236"),o=n("5060");for(var r in o)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(r);n("a2c3c");var s=n("f0c5"),c=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,"bf94038a",null,!1,i["a"],void 0);e["default"]=c.exports}}]);
- ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
- 'pages/MapSelect-create-component',
- {
- 'pages/MapSelect-create-component':(function(module, exports, __webpack_require__){
- __webpack_require__('543d')['createComponent'](__webpack_require__("f0f6"))
- })
- },
- [['pages/MapSelect-create-component']]
- ]);
|