(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/set/address"],{"00cd":function(t,e,s){"use strict";(function(t){s("5935");a(s("66fd"));var e=a(s("23ef"));function a(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=s,t(e.default)}).call(this,s("543d")["createPage"])},"23ef":function(t,e,s){"use strict";s.r(e);var a=s("fc2b"),n=s("df01");for(var d in n)"default"!==d&&function(t){s.d(e,t,(function(){return n[t]}))}(d);s("90d2");var i,r=s("f0c5"),u=Object(r["a"])(n["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],i);e["default"]=u.exports},"7b5f":function(t,e,s){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=s("2681"),n={data:function(){return{source:0,addressList:[]}},onLoad:function(t){this.source=t.source||0,this.loadAddress()},methods:{loadAddress:function(){var t=this;(0,a.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,a.setAddressDefault)({id:t.id}).then((function(t){t.data;s.loadAddress()})).catch((function(t){console.log(t)}))},delAddress:function(t){var e=this;(0,a.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,console.log(this.$api.prePage().addressData,"99999999+++++++++99999999999"),t.navigateBack())},addAddress:function(e,s){t.navigateTo({url:"/pages/set/addressManage?type=".concat(e,"&data=").concat(JSON.stringify(s))})},refreshList:function(){this.loadAddress()},onNavigationBarButtonTap:function(t){"新增"==t.text&&this.addAddress("add")}}};e.default=n}).call(this,s("543d")["default"])},"90d2":function(t,e,s){"use strict";var a=s("b686"),n=s.n(a);n.a},b686:function(t,e,s){},df01:function(t,e,s){"use strict";s.r(e);var a=s("7b5f"),n=s.n(a);for(var d in a)"default"!==d&&function(t){s.d(e,t,(function(){return a[t]}))}(d);e["default"]=n.a},fc2b:function(t,e,s){"use strict";var a;s.d(e,"b",(function(){return n})),s.d(e,"c",(function(){return d})),s.d(e,"a",(function(){return a}));var n=function(){var t=this,e=t.$createElement;t._self._c},d=[]}},[["00cd","common/runtime","common/vendor"]]]);