(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/set/address"],{"39ec":function(t,e,s){},7271:function(t,e,s){"use strict";s.d(e,"b",(function(){return a})),s.d(e,"c",(function(){return n})),s.d(e,"a",(function(){}));var a=function(){var t=this.$createElement;this._self._c},n=[]},b921:function(t,e,s){"use strict";(function(t,e){var a=s("4ea4");s("3e39");a(s("66fd"));var n=a(s("c480"));t.__webpack_require_UNI_MP_PLUGIN__=s,e(n.default)}).call(this,s("bc2e")["default"],s("543d")["createPage"])},bef3:function(t,e,s){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=s("5635"),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,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=n}).call(this,s("543d")["default"])},c480:function(t,e,s){"use strict";s.r(e);var a=s("7271"),n=s("e35f");for(var d in n)["default"].indexOf(d)<0&&function(t){s.d(e,t,(function(){return n[t]}))}(d);s("cac0");var i=s("f0c5"),r=Object(i["a"])(n["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],void 0);e["default"]=r.exports},cac0:function(t,e,s){"use strict";var a=s("39ec"),n=s.n(a);n.a},e35f:function(t,e,s){"use strict";s.r(e);var a=s("bef3"),n=s.n(a);for(var d in a)["default"].indexOf(d)<0&&function(t){s.d(e,t,(function(){return a[t]}))}(d);e["default"]=n.a}},[["b921","common/runtime","common/vendor"]]]);