(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/address/components/areaWindow/index"],{"123d":function(e,t,s){"use strict";s.r(t);var i=s("4c18"),d=s.n(i);for(var n in i)["default"].indexOf(n)<0&&function(e){s.d(t,e,(function(){return i[e]}))}(n);t["default"]=d.a},1503:function(e,t,s){"use strict";s.r(t);var i=s("eab4"),d=s("123d");for(var n in d)["default"].indexOf(n)<0&&function(e){s.d(t,e,(function(){return d[e]}))}(n);s("d8a1");var r=s("828b"),o=Object(r["a"])(d["default"],i["b"],i["c"],!1,null,"bea7b488",null,!1,i["a"],void 0);t["default"]=o.exports},"4c18":function(e,t,s){"use strict";var i=s("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var d=i(s("af34")),n=s("3c22"),r={},o=getApp(),a={props:{display:{type:Boolean,default:!0},address:{type:Array,default:[]}},data:function(){return{theme:o.globalData.theme,active:0,addressList:[],selectedArr:[],selectedIndex:-1,is_loading:!1,old:{scrollTop:0},scrollTop:0,addressData:[],province:[],city:[],district:[],street:[]}},computed:{activeId:function(){return-1==this.selectedIndex?0:this.selectedArr[this.selectedIndex].regionId},showMore:function(){return!this.selectedArr.length||this.selectedArr[this.selectedArr.length-1].isChild}},watch:{address:function(e){this.selectedArr=e?(0,d.default)(e):[]},display:function(e){e?this.loadAddress(1,1):(this.addressList=[],this.selectedArr=this.address?(0,d.default)(this.address):[],this.selectedIndex=-1,this.is_loading=!1)}},mounted:function(){this.loadAddress(1,1)},methods:{loadAddress:function(e,t){var s=this;if(r[e])this.addressList=r[e];else{var i={parentId:e,regionType:t};this.is_loading=!0,(0,n.getCity)(i).then((function(t){s.is_loading=!1,r[e]=t.data,s.addressList=t.data})),this.goTop()}},change:function(e,t){this.selectedIndex!=t&&(this.selectedIndex=t,this.loadAddress(e.parentId,e.regionType))},selected:function(e,t){this.is_loading||(this.selectedIndex>-1?(this.selectedArr.splice(this.selectedIndex+1,999),this.selectedArr[this.selectedIndex]=e,this.selectedIndex=-1):1===e.regionType?this.selectedArr=[e]:this.selectedArr.push(e),e.isChild?this.loadAddress(e.regionId,e.regionType+1):(this.$emit("submit",(0,d.default)(this.selectedArr)),this.$emit("changeClose")),this.goTop())},close:function(){this.$emit("changeClose")},scroll:function(e){this.old.scrollTop=e.detail.scrollTop},goTop:function(e){var t=this;this.scrollTop=this.old.scrollTop,this.$nextTick((function(){t.scrollTop=0}))}}};t.default=a},"8ca0":function(e,t,s){},d8a1:function(e,t,s){"use strict";var i=s("8ca0"),d=s.n(i);d.a},eab4:function(e,t,s){"use strict";s.d(t,"b",(function(){return i})),s.d(t,"c",(function(){return d})),s.d(t,"a",(function(){}));var i=function(){var e=this.$createElement;this._self._c},d=[]}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'pages/address/components/areaWindow/index-create-component',
    {
        'pages/address/components/areaWindow/index-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('df3c')['createComponent'](__webpack_require__("1503"))
        })
    },
    [['pages/address/components/areaWindow/index-create-component']]
]);
