(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/set/address"],{"0d3c":function(t,e,a){"use strict";a.r(e);var s=a("a4f1"),n=a("9ffd");for(var d in n)["default"].indexOf(d)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(d);a("caa9");var i=a("f0c5"),r=Object(i["a"])(n["default"],s["b"],s["c"],!1,null,null,null,!1,s["a"],void 0);e["default"]=r.exports},"4a35":function(t,e,a){},5552:function(t,e,a){"use strict";(function(t,e){var s=a("4ea4");a("d1cd");s(a("66fd"));var n=s(a("0d3c"));t.__webpack_require_UNI_MP_PLUGIN__=a,e(n.default)}).call(this,a("bc2e")["default"],a("543d")["createPage"])},"9ffd":function(t,e,a){"use strict";a.r(e);var s=a("b548"),n=a.n(s);for(var d in s)["default"].indexOf(d)<0&&function(t){a.d(e,t,(function(){return s[t]}))}(d);e["default"]=n.a},a4f1:function(t,e,a){"use strict";a.d(e,"b",(function(){return s})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){}));var s=function(){var t=this.$createElement;this._self._c},n=[]},b548:function(t,e,a){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=a("82ba"),n={data:function(){return{source:0,addressList:[]}},onLoad:function(t){this.source=t.source||0,this.loadAddress()},methods:{loadAddress:function(){var t=this;(0,s.getAddressList)({page:1,limit:100}).then((function(e){var a=e.data;t.addressList=a}))},defaultUp:function(t,e){var a=this;this.addressList=this.addressList.map((function(t){return t.is_default=0,t})),this.addressList[e].is_default=1,(0,s.setAddressDefault)({id:t.id}).then((function(t){t.data;a.loadAddress()})).catch((function(t){console.log(t)}))},delAddress:function(t){var e=this;(0,s.addressDel)({id:t.id}).then((function(t){t.data;e.$api.msg("删除成功")}));var a=this.addressList.indexOf(t);this.addressList.splice(a,1)},checkAddress:function(e){1==this.source&&(this.$api.prePage().addressData=e,t.navigateBack())},addAddress:function(e,a){t.navigateTo({url:"/pages/set/addressManage?type=".concat(e,"&data=").concat(JSON.stringify(a))})},refreshList:function(){this.loadAddress()}}};e.default=n}).call(this,a("543d")["default"])},caa9:function(t,e,a){"use strict";var s=a("4a35"),n=a.n(s);n.a}},[["5552","common/runtime","common/vendor"]]]);