(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/set/address"],{179:function(t,e,n){"use strict";(function(t){var e=n(3);n(25);e(n(24));var s=e(n(180));wx.__webpack_require_UNI_MP_PLUGIN__=n,t(s.default)}).call(this,n(1)["createPage"])},180:function(t,e,n){"use strict";n.r(e);var s=n(181),r=n(183);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);n(185);var d,i=n(39),u=Object(i["default"])(r["default"],s["render"],s["staticRenderFns"],!1,null,null,null,!1,s["components"],d);u.options.__file="pages/set/address.vue",e["default"]=u.exports},181:function(t,e,n){"use strict";n.r(e);var s=n(182);n.d(e,"render",(function(){return s["render"]})),n.d(e,"staticRenderFns",(function(){return s["staticRenderFns"]})),n.d(e,"recyclableRender",(function(){return s["recyclableRender"]})),n.d(e,"components",(function(){return s["components"]}))},182:function(t,e,n){"use strict";var s;n.r(e),n.d(e,"render",(function(){return r})),n.d(e,"staticRenderFns",(function(){return d})),n.d(e,"recyclableRender",(function(){return a})),n.d(e,"components",(function(){return s}));var r=function(){var t=this,e=t.$createElement;t._self._c},a=!1,d=[];r._withStripped=!0},183:function(t,e,n){"use strict";n.r(e);var s=n(184),r=n.n(s);for(var a in s)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return s[t]}))}(a);e["default"]=r.a},184:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=n(49),r={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 n=e.data;t.addressList=n}))},defaultUp:function(t,e){var n=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;n.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 n=this.addressList.indexOf(t);this.addressList.splice(n,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,n){t.navigateTo({url:"/pages/set/addressManage?type=".concat(e,"&data=").concat(JSON.stringify(n))})},refreshList:function(){this.loadAddress()},onNavigationBarButtonTap:function(t){"新增"==t.text&&this.addAddress("add")}}};e.default=r}).call(this,n(1)["default"])},185:function(t,e,n){"use strict";n.r(e);var s=n(186),r=n.n(s);for(var a in s)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return s[t]}))}(a);e["default"]=r.a},186:function(t,e,n){}},[[179,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/set/address.js.map