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