(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesPoints/index/details"],{"039e":function(t,e,n){"use strict";n.r(e);var a=n("3169"),i=n.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},3169:function(t,e,n){"use strict";(function(t){var a=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=a(n("af34")),o=a(n("7ca3")),r=n("8f59");function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){(0,o.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var u={data:function(){return{loadEnd:!1,titleBarHeight:0,screenList:[{text:"全部"},{text:"收入",type:1},{text:"支出",type:2}],selectScreen:0,page:1,limit:20,hasMore:!1,dataList:{}}},computed:s({},(0,r.mapState)({themeColor:function(t){return t.app.themeColor}})),mounted:function(){var e=t.getSystemInfoSync().statusBarHeight,n=t.getMenuButtonBoundingClientRect();this.titleBarHeight=e+2*(n.top-e)+n.height},onLoad:function(){var e=this;t.showLoading({title:"加载中"}),this.getDataList((function(){t.hideLoading(),e.loadEnd=!0}))},onPullDownRefresh:function(){this.page=1,this.getDataList((function(){t.stopPullDownRefresh()}))},onReachBottom:function(){this.hasMore&&(this.page++,this.getDataList())},methods:{changeScreen:function(t){this.selectScreen=t,this.page=1,this.getDataList()},getDataList:function(e){var n=this;this.$util.request("points.record",s({page:this.page,limit:this.limit},this.selectScreen?{change:this.selectScreen}:{})).then((function(a){if(e&&e(),1==a.code){var o=a.data.data;n.hasMore=n.page<a.data.total/n.limit,n.dataList=1==n.page?o:[].concat((0,i.default)(n.dataList),(0,i.default)(o))}else t.showToast({title:a.msg,icon:"none"})})).catch((function(t){console.error("获取积分明细列表 ",t)}))}}};e.default=u}).call(this,n("df3c")["default"])},4242:function(t,e,n){"use strict";n.r(e);var a=n("82b4"),i=n("039e");for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("ad0a");var r=n("828b"),c=Object(r["a"])(i["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],void 0);e["default"]=c.exports},"61c2":function(t,e,n){},"82b4":function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var a=function(){var t=this.$createElement,e=(this._self._c,this.loadEnd?this.dataList.length:null);this.$mp.data=Object.assign({},{$root:{g0:e}})},i=[]},a1cf:function(t,e,n){"use strict";(function(t,e){var a=n("47a9");n("aa6c");a(n("3240"));var i=a(n("4242"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(i.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},ad0a:function(t,e,n){"use strict";var a=n("61c2"),i=n.n(a);i.a}},[["a1cf","common/runtime","common/vendor"]]]);