(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/set/point"],{187:function(t,n,e){"use strict";(function(t){var n=e(3);e(25);n(e(24));var i=n(e(188));wx.__webpack_require_UNI_MP_PLUGIN__=e,t(i.default)}).call(this,e(1)["createPage"])},188:function(t,n,e){"use strict";e.r(n);var i=e(189),s=e(191);for(var r in s)["default"].indexOf(r)<0&&function(t){e.d(n,t,(function(){return s[t]}))}(r);e(193);var a,d=e(39),o=Object(d["default"])(s["default"],i["render"],i["staticRenderFns"],!1,null,null,null,!1,i["components"],a);o.options.__file="pages/set/point.vue",n["default"]=o.exports},189:function(t,n,e){"use strict";e.r(n);var i=e(190);e.d(n,"render",(function(){return i["render"]})),e.d(n,"staticRenderFns",(function(){return i["staticRenderFns"]})),e.d(n,"recyclableRender",(function(){return i["recyclableRender"]})),e.d(n,"components",(function(){return i["components"]}))},190:function(t,n,e){"use strict";var i;e.r(n),e.d(n,"render",(function(){return s})),e.d(n,"staticRenderFns",(function(){return a})),e.d(n,"recyclableRender",(function(){return r})),e.d(n,"components",(function(){return i}));var s=function(){var t=this,n=t.$createElement;t._self._c},r=!1,a=[];s._withStripped=!0},191:function(t,n,e){"use strict";e.r(n);var i=e(192),s=e.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(r);n["default"]=s.a},192:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=e(49),s={data:function(){return{source:0,addressList:[]}},onLoad:function(t){this.source=t.source||0,this.loadAddress()},methods:{loadAddress:function(){var n=this;t.showLoading({title:"加载中...",mask:!0}),(0,i.getPoint)({page:1,limit:100}).then((function(e){var i=e.data;t.hideLoading(),console.log(i.data,"point++++++++++++++++"),n.addressList=i.data})).catch((function(n){t.hideLoading(),console.log(n)}))},defaultUp:function(t,n){var e=this;this.addressList=this.addressList.map((function(t){return t.is_default=0,t})),this.addressList[n].is_default=1,(0,i.setAddressDefault)({id:t.id}).then((function(t){t.data;e.loadAddress()})).catch((function(t){console.log(t)}))},delAddress:function(t){var n=this;(0,i.delPoint)({},t.id).then((function(t){t.data;n.$api.msg("删除成功")}));var e=this.addressList.indexOf(t);this.addressList.splice(e,1)},checkAddress:function(n){1==this.source&&(this.$api.prePage().addressData=n,console.log(this.$api.prePage().addressData,"99999999+++++++++99999999999"),t.navigateBack())},addAddress:function(n,e){t.navigateTo({url:"/pages/set/pointManage?type=".concat(n,"&data=").concat(JSON.stringify(e))})},refreshList:function(){this.loadAddress()}}};n.default=s}).call(this,e(1)["default"])},193:function(t,n,e){"use strict";e.r(n);var i=e(194),s=e.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(r);n["default"]=s.a},194:function(t,n,e){}},[[187,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/set/point.js.map