(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/app-address-group"],{abf5:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n("5315"),i=function(){Promise.all([n.e("common/vendor"),n.e("components/plugin/simple-address")]).then(function(){return resolve(n("618a"))}.bind(null,n)).catch(n.oe)},r=function(){n.e("components/app-area-sel").then(function(){return resolve(n("62ec"))}.bind(null,n)).catch(n.oe)},s=function(){n.e("components/plugin/list-cell").then(function(){return resolve(n("1861"))}.bind(null,n)).catch(n.oe)},a={name:"AppAddressGroup",components:{AppAreaSel:r,SimpleAddress:i,TuiListCell:s},props:{customId:"",cityTitle:{type:String,default:"所在城市"},detailTitle:{type:String,default:"地址"},isFloor:{type:Boolean,default:!0},getFormObj:{type:Object,default:function(){}}},data:function(){return{regionData:[],cityPickerValueDefault:[0,0],form:{province:"",city:"",address:"",floor:"",longitude:"",latitude:""},showRegion:!1}},mounted:function(){""!=this.customId&&this.initAdress()},methods:{initAdress:function(){var t=this;return(0,o.getUserDet)({id:this.customId}).then((function(e){t.form.province=e.data.province,t.form.city=e.data.city,t.form.address=e.data.address,t.form.latitude=e.data.lat,t.form.longitude=e.data.long,t.$emit("selectAdress",t.form)}))},formatForm:function(){var t=this;Object.keys(this.form).forEach((function(e){t.form[e]=t.getFormObj[e]}))},selRegionFn:function(){if(!this.form.city)return this.$msg("请先选择城市！"),!1;this.showRegion=!0},onCityConfirm:function(t){this.form.province=t.provinceName,this.form.city=t.cityName,this.$emit("selectAdress",this.form)},openAddres:function(){},changeAreaFn:function(t){this.form.address=t.title,this.form.latitude=t.location.lat,this.form.longitude=t.location.lng,this.$emit("selectAdress",this.form)},changeFloor:function(t){this.$emit("selectAdress",this.form)}},watch:{getFormObj:function(){this.$util.isEmpty(this.getFormObj)&&this.formatForm()}}};e.default=a},ac6d:function(t,e,n){"use strict";var o;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return o}));var i=function(){var t=this,e=t.$createElement;t._self._c},r=[]},b26a:function(t,e,n){"use strict";n.r(e);var o=n("abf5"),i=n.n(o);for(var r in o)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e["default"]=i.a},cdfa:function(t,e,n){"use strict";n.r(e);var o=n("ac6d"),i=n("b26a");for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);var s,a=n("41a2"),c=Object(a["a"])(i["default"],o["b"],o["c"],!1,null,"76f336c6",null,!1,o["a"],s);e["default"]=c.exports}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'components/app-address-group-create-component',
    {
        'components/app-address-group-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('1480')['createComponent'](__webpack_require__("cdfa"))
        })
    },
    [['components/app-address-group-create-component']]
]);
