(global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/address/address" ], { 200: function(e, n, t) { (function(e) { function n(e) { return e && e.__esModule ? e : { default: e }; } t(4), n(t(2)), e(n(t(201)).default); }).call(this, t(1).createPage); }, 201: function(e, n, t) { t.r(n); var d = t(202), r = t(204); for (var s in r) "default" !== s && function(e) { t.d(n, e, function() { return r[e]; }); }(s); t(207); var a = t(13), i = Object(a.default)(r.default, d.render, d.staticRenderFns, !1, null, null, null, !1, d.components, void 0); i.options.__file = "pages/address/address.vue", n.default = i.exports; }, 202: function(e, n, t) { t.r(n); var d = t(203); t.d(n, "render", function() { return d.render; }), t.d(n, "staticRenderFns", function() { return d.staticRenderFns; }), t.d(n, "recyclableRender", function() { return d.recyclableRender; }), t.d(n, "components", function() { return d.components; }); }, 203: function(e, n, t) { t.r(n), t.d(n, "render", function() { return d; }), t.d(n, "staticRenderFns", function() { return s; }), t.d(n, "recyclableRender", function() { return r; }), t.d(n, "components", function() {}); var d = function() { var e = this; e.$createElement; e._self._c; }, r = !1, s = []; d._withStripped = !0; }, 204: function(e, n, t) { t.r(n); var d = t(205), r = t.n(d); for (var s in d) "default" !== s && function(e) { t.d(n, e, function() { return d[e]; }); }(s); n.default = r.a; }, 205: function(e, n, t) { (function(e) { Object.defineProperty(n, "__esModule", { value: !0 }), n.default = void 0; var d = t(206), r = (t(56), { data: function() { return { source: 0, addressList: [], isShow: !1 }; }, onLoad: function(e) { this.source = e.source || 0, this.loadAddress(); }, methods: { loadAddress: function() { var e = this; (0, d.getAddressList)({ page: 1, limit: 100 }).then(function(n) { var t = n.data; e.addressList = t; }); }, defaultUp: function(e, n) { var t = this; this.addressList = this.addressList.map(function(e) { return e.is_default = 0, e; }), this.addressList[n].is_default = 1, (0, d.addressEdit)({ real_name: e.real_name, phone: e.phone, address: { province: e.province, city: e.city, district: e.district }, detail: e.detail, is_default: 1, id: e.id, type: 1 }).then(function(e) { e.data, t.loadAddress(); }).catch(function(e) { console.log(e); }); }, delAddress: function(e) { var n = this; (0, d.addressDel)({ id: e.id }).then(function(e) { e.data, n.$api.msg("删除成功"); }); var t = this.addressList.indexOf(e); this.addressList.splice(t, 1); }, checkAddress: function(n) { 1 == this.source && (this.$api.prePage().addressData = n, e.navigateBack()); }, addAddress: function(n, t) { e.navigateTo({ url: "/pages/address/addressManage?type=".concat(n, "&data=").concat(JSON.stringify(t)) }); }, refreshList: function() { this.loadAddress(); } } }); n.default = r; }).call(this, t(1).default); }, 207: function(e, n, t) { t.r(n); var d = t(208), r = t.n(d); for (var s in d) "default" !== s && function(e) { t.d(n, e, function() { return d[e]; }); }(s); n.default = r.a; }, 208: function(e, n, t) {} }, [ [ 200, "common/runtime", "common/vendor" ] ] ]);