require('../../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/goods/components/areaWindow/index"],{"428c":function(e,t,s){"use strict";s.r(t);var i=s("fa2a"),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},"654c":function(e,t,s){"use strict";s.r(t);var i=s("ddc6"),d=s("428c");for(var n in d)["default"].indexOf(n)<0&&function(e){s.d(t,e,(function(){return d[e]}))}(n);s("879d");var r=s("828b"),o=Object(r["a"])(d["default"],i["b"],i["c"],!1,null,"71c59a0b",null,!1,i["a"],void 0);t["default"]=o.exports},"879d":function(e,t,s){"use strict";var i=s("d861"),d=s.n(i);d.a},d861:function(e,t,s){},ddc6: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=[]},fa2a: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(),c={props:{display:{type:Boolean,default:!0},cityShow:{type:Number,default:3},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&&(1==this.cityShow&&this.addressList.regionType<2||2==this.cityShow&&this.addressList.regionType<3||3==this.cityShow&&this.addressList.regionType<4)}},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:{disabledScroll:function(){},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&&(1==this.cityShow&&this.addressList[0].regionType<2||2==this.cityShow&&this.addressList[0].regionType<3||3==this.cityShow&&this.addressList[0].regionType<4)?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=c}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'pages/goods/components/areaWindow/index-create-component',
    {
        'pages/goods/components/areaWindow/index-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('df3c')['createComponent'](__webpack_require__("654c"))
        })
    },
    [['pages/goods/components/areaWindow/index-create-component']]
]);
