(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/set/point"],{"26c7":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n("2681"),s={data:function(){return{source:0,addressList:[]}},onLoad:function(t){this.source=t.source||0,this.loadAddress()},methods:{loadAddress:function(){var e=this;t.showLoading({title:"加载中...",mask:!0}),(0,a.getPoint)({page:1,limit:100}).then((function(n){var a=n.data;t.hideLoading(),console.log(a.data,"point++++++++++++++++"),e.addressList=a.data})).catch((function(e){t.hideLoading(),console.log(e)}))},defaultUp:function(t,e){var n=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;n.loadAddress()})).catch((function(t){console.log(t)}))},delAddress:function(t){var e=this;(0,a.delPoint)({},t.id).then((function(t){t.data;e.$api.msg("删除成功")}));var n=this.addressList.indexOf(t);this.addressList.splice(n,1)},checkAddress:function(e){1==this.source&&(this.$api.prePage().addressData=e,console.log(this.$api.prePage().addressData,"99999999+++++++++99999999999"),t.navigateBack())},addAddress:function(e,n){t.navigateTo({url:"/pages/set/pointManage?type=".concat(e,"&data=").concat(JSON.stringify(n))})},refreshList:function(){this.loadAddress()}}};e.default=s}).call(this,n("543d")["default"])},7545:function(t,e,n){"use strict";var a=n("8f34"),s=n.n(a);s.a},"88b5":function(t,e,n){"use strict";n.r(e);var a=n("ec22"),s=n("ff5b");for(var i in s)"default"!==i&&function(t){n.d(e,t,(function(){return s[t]}))}(i);n("7545");var d,o=n("f0c5"),r=Object(o["a"])(s["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],d);e["default"]=r.exports},"8f34":function(t,e,n){},db59:function(t,e,n){"use strict";(function(t){n("5935");a(n("66fd"));var e=a(n("88b5"));function a(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=n,t(e.default)}).call(this,n("543d")["createPage"])},ec22:function(t,e,n){"use strict";var a;n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return a}));var s=function(){var t=this,e=t.$createElement;t._self._c},i=[]},ff5b:function(t,e,n){"use strict";n.r(e);var a=n("26c7"),s=n.n(a);for(var i in a)"default"!==i&&function(t){n.d(e,t,(function(){return a[t]}))}(i);e["default"]=s.a}},[["db59","common/runtime","common/vendor"]]]);