(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/set/address"],{"1adc":function(t,e,s){},"29be":function(t,e,s){"use strict";(function(t,e){var a=s("4ea4");s("ab68");a(s("66fd"));var n=a(s("7471"));t.__webpack_require_UNI_MP_PLUGIN__=s,e(n.default)}).call(this,s("bc2e")["default"],s("543d")["createPage"])},7295:function(t,e,s){"use strict";var a=s("1adc"),n=s.n(a);n.a},7471:function(t,e,s){"use strict";s.r(e);var a=s("c9fd"),n=s("f627");for(var d in n)["default"].indexOf(d)<0&&function(t){s.d(e,t,(function(){return n[t]}))}(d);s("7295");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},c2aa:function(t,e,s){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=s("8383"),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"])},c9fd: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=[]},f627:function(t,e,s){"use strict";s.r(e);var a=s("c2aa"),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}},[["29be","common/runtime","common/vendor"]]]);