(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/set/address"],{"1dd58":function(t,e,a){"use strict";(function(t){a("856e");s(a("66fd"));var e=s(a("b07b"));function s(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=a,t(e.default)}).call(this,a("543d")["createPage"])},"374b":function(t,e,a){},"40e7":function(t,e,a){"use strict";var s=a("374b"),n=a.n(s);n.a},"8a28":function(t,e,a){"use strict";a.r(e);var s=a("aad7"),n=a.n(s);for(var d in s)"default"!==d&&function(t){a.d(e,t,(function(){return s[t]}))}(d);e["default"]=n.a},a372:function(t,e,a){"use strict";var s;a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return d})),a.d(e,"a",(function(){return s}));var n=function(){var t=this,e=t.$createElement;t._self._c},d=[]},aad7:function(t,e,a){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=a("7eca"),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"])},b07b:function(t,e,a){"use strict";a.r(e);var s=a("a372"),n=a("8a28");for(var d in n)"default"!==d&&function(t){a.d(e,t,(function(){return n[t]}))}(d);a("40e7");var i,r=a("f0c5"),u=Object(r["a"])(n["default"],s["b"],s["c"],!1,null,null,null,!1,s["a"],i);e["default"]=u.exports}},[["1dd58","common/runtime","common/vendor"]]]);