require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_user/user/address"],{462:function(e,n,t){"use strict";(function(e,n){var s=t(4);t(26);s(t(25));var r=s(t(463));e.__webpack_require_UNI_MP_PLUGIN__=t,n(r.default)}).call(this,t(1)["default"],t(2)["createPage"])},463:function(e,n,t){"use strict";t.r(n);var s=t(464),r=t(466);for(var d in r)["default"].indexOf(d)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(d);t(468);var o,i=t(34),c=Object(i["default"])(r["default"],s["render"],s["staticRenderFns"],!1,null,null,null,!1,s["components"],o);c.options.__file="pages_user/user/address.vue",n["default"]=c.exports},464:function(e,n,t){"use strict";t.r(n);var s=t(465);t.d(n,"render",(function(){return s["render"]})),t.d(n,"staticRenderFns",(function(){return s["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return s["recyclableRender"]})),t.d(n,"components",(function(){return s["components"]}))},465:function(e,n,t){"use strict";var s;t.r(n),t.d(n,"render",(function(){return r})),t.d(n,"staticRenderFns",(function(){return o})),t.d(n,"recyclableRender",(function(){return d})),t.d(n,"components",(function(){return s}));var r=function(){var e=this,n=e.$createElement,t=(e._self._c,e.__map(e.address,(function(n,t){var s=e.__get_orig(n),r=e.utils.parsePhone(n.phone);return{$orig:s,g0:r}}))),s=e.address.length;e.$mp.data=Object.assign({},{$root:{l0:t,g1:s}})},d=!1,o=[];r._withStripped=!0},466:function(e,n,t){"use strict";t.r(n);var s=t(467),r=t.n(s);for(var d in s)["default"].indexOf(d)<0&&function(e){t.d(n,e,(function(){return s[e]}))}(d);n["default"]=r.a},467:function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var s=t(459),r={data:function(){return{address:[]}},onLoad:function(){var n=this;this.getAddressList(),e.$on("refreshAddress",(function(){n.getAddressList()}))},methods:{selectAddress:function(n){e.$emit("updateAddress",n),e.navigateBack({delta:1})},editAddress:function(n){e.navigateTo({url:"./addAddress?type=edit&id="+n.id})},delAllAddress:function(n){var t=this;e.showModal({title:"提示",content:"确认删除所有地址吗?",showCancel:!0,cancelText:"取消",confirmText:"确定",success:function(n){if(n.confirm){var r={};(0,s.delAllAddress)(r).then((function(n){200==n.code?(e.showToast({icon:"success",title:"操作成功"}),t.getAddressList()):e.showToast({icon:"none",title:"请求失败"})}),(function(e){}))}}})},delAddress:function(n){var t=this;e.showModal({title:"提示",content:"确认删除此地址吗?",showCancel:!0,cancelText:"取消",confirmText:"确定",success:function(r){if(r.confirm){var d={id:n.id};(0,s.delAddress)(d).then((function(n){200==n.code?(e.showToast({icon:"success",title:"操作成功"}),t.getAddressList()):e.showToast({icon:"none",title:"请求失败"})}),(function(e){}))}}})},getAddressList:function(){var n=this;e.showLoading({title:"正在加载中"}),(0,s.getAddressList)().then((function(t){e.hideLoading(),200==t.code?n.address=t.data:e.showToast({icon:"none",title:"请求失败"})}),(function(e){}))},addAdress:function(){e.navigateTo({url:"./addAddress?type=add"})}}};n.default=r}).call(this,t(2)["default"])},468:function(e,n,t){"use strict";t.r(n);var s=t(469),r=t.n(s);for(var d in s)["default"].indexOf(d)<0&&function(e){t.d(n,e,(function(){return s[e]}))}(d);n["default"]=r.a},469:function(e,n,t){}},[[462,"common/runtime","common/vendor","pages_user/common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages_user/user/address.js.map