(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/plugin/simple-address"],{"1b16":function(e,t,i){"use strict";i.r(t);var n=i("bd74"),o=i.n(n);for(var a in n)["default"].indexOf(a)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(a);t["default"]=o.a},"618a":function(e,t,i){"use strict";i.r(t);var n=i("d335"),o=i("1b16");for(var a in o)["default"].indexOf(a)<0&&function(e){i.d(t,e,(function(){return o[e]}))}(a);i("9964");var r,c=i("41a2"),u=Object(c["a"])(o["default"],n["b"],n["c"],!1,null,"61e9dfa0",null,!1,n["a"],r);t["default"]=u.exports},9964:function(e,t,i){"use strict";var n=i("dd3b"),o=i.n(n);o.a},bd74:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i("8797"),o={name:"simpleAddress",props:{animation:{type:Boolean,default:!0},type:{type:String,default:"bottom"},maskClick:{type:Boolean,default:!0},show:{type:Boolean,default:!0},maskBgColor:{type:String,default:"rgba(0, 0, 0, 0.4)"},pickerValueDefault:{type:Array,default:function(){return[0,0]}}},data:function(){return{ani:"",showPopup:!1,pickerValue:[0,0],provinceDataList:[],cityDataList:[],areaDataList:[],region:[]}},watch:{show:function(e){e?this.open():this.close()},pickerValueDefault:function(){this.sInit()}},created:function(){this.sInit()},methods:{_regionTree:function(){var e=this;(0,n.regionTree)().then((function(t){e.region=t.data.tree}))},sInit:function(){this._regionTree()},handPickValueDefault:function(){},pickerChange:function(e){this.pickerValue=e.detail.value,this._$emit("onChange")},_$emit:function(e){var t={label:this._getLabel(),value:this.pickerValue,provinceName:this.region[this.pickerValue[0]].name,cityName:this.region[this.pickerValue[0]].children[this.pickerValue[1]].name,provinceCode:this._getProvinceCode(),cityCode:this._getCityCode()};console.log(t),this.$emit(e,t)},_getLabel:function(){var e=this.region[this.pickerValue[0]].name+"-"+this.region[this.pickerValue[0]].children[this.pickerValue[1]].name;return e},_getProvinceCode:function(){return this.region[this.pickerValue[0]].id},_getCityCode:function(){return this.region[this.pickerValue[0]].children[this.pickerValue[1]].id},_getAreaCode:function(){return this.region[this.pickerValue[0]].children[this.pickerValue[1]].children[this.pickerValue[2]].id},clear:function(){},hideMask:function(){this._$emit("onCancel"),this.close()},pickerCancel:function(){this._$emit("onCancel"),this.close()},pickerConfirm:function(){this._$emit("onConfirm"),this.close()},open:function(){var e=this;this.showPopup=!0,this.$nextTick((function(){setTimeout((function(){e.ani="simple-"+e.type}),100)}))},close:function(e){var t=this;!this.maskClick&&e||(this.ani="",this.$nextTick((function(){setTimeout((function(){t.showPopup=!1}),300)})))}}};t.default=o},d335:function(e,t,i){"use strict";var n;i.d(t,"b",(function(){return o})),i.d(t,"c",(function(){return a})),i.d(t,"a",(function(){return n}));var o=function(){var e=this,t=e.$createElement;e._self._c},a=[]},dd3b:function(e,t,i){}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'components/plugin/simple-address-create-component',
    {
        'components/plugin/simple-address-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('1480')['createComponent'](__webpack_require__("618a"))
        })
    },
    [['components/plugin/simple-address-create-component']]
]);
