(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["user/page/scoreAccumulate"],{"20ef":function(e,t,n){"use strict";(function(e){n("5935");r(n("66fd"));var t=r(n("a547"));function r(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=n,e(t.default)}).call(this,n("543d")["createPage"])},"30dc":function(e,t,n){"use strict";var r=n("e21e"),o=n.n(r);o.a},"563b":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n("a34a")),o=n("26cb"),a=n("4d4d");function i(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n,r,o,a,i){try{var u=e[a](i),c=u.value}catch(l){return void n(l)}u.done?t(c):Promise.resolve(c).then(r,o)}function c(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){u(a,r,o,i,c,"next",e)}function c(e){u(a,r,o,i,c,"throw",e)}i(void 0)}))}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=function(){n.e("components/uni-load-more/uni-load-more").then(function(){return resolve(n("20fd"))}.bind(null,n)).catch(n.oe)},p=function(){n.e("components/empty").then(function(){return resolve(n("de8d"))}.bind(null,n)).catch(n.oe)},b={components:{empty:p,uniLoadMore:d},computed:f({},(0,o.mapState)("user",["userInfo","orderInfo","hasLogin"])),onReady:function(t){var n=this;e.getSystemInfo({success:function(t){var r=e.createSelectorQuery();r.select(".swiper-box").boundingClientRect(),r.exec((function(e){n.height=t.windowHeight-e[0].top+"px",console.log("打印页面的剩余高度",n.height)}))},fail:function(e){}})},data:function(){return{height:"",maxheight:0,tabCurrentIndex:0,navList:[{state:1,text:"收入",loadingType:"more",orderList:[],page:1,limit:10},{state:0,text:"支出",loadingType:"more",orderList:[],page:1,limit:10}],score:0}},onShow:function(){this.loadData()},methods:{navto:function(t){e.navigateTo({url:t})},loadData:function(t){var n=this;return c(r.default.mark((function o(){var i,u,c;return r.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(i=n.tabCurrentIndex,u=n.navList[i],c=u.state,"tabChange"!==t||!0!==u.loaded){r.next=5;break}return r.abrupt("return");case 5:if("loading"!==u.loadingType){r.next=7;break}return r.abrupt("return");case 7:u.loadingType="loading",(0,a.integrallist)({page:u.page,limit:u.limit},c).then((function(t){var r=t.data;if(console.log(r),r.length>0){var o=[];r.forEach((function(e){e.pm===c&&o.push(e)})),u.orderList=u.orderList.concat(o),u.page++}u.limit!=r.length?(u.loadingType="noMore",e.hideLoading(),n.$set(u,"loaded",!0)):u.loadingType="more"})).catch((function(e){console.log(e)}));case 9:case"end":return r.stop()}}),o)})))()},changeTab:function(e){this.tabCurrentIndex=e.target.current,this.loadData("tabChange")},tabClick:function(e){this.tabCurrentIndex=e}}};t.default=b}).call(this,n("543d")["default"])},6766:function(e,t,n){"use strict";n.r(t);var r=n("563b"),o=n.n(r);for(var a in r)"default"!==a&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=o.a},a140:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return r}));var r={uniLoadMore:function(){return n.e("components/uni-load-more/uni-load-more").then(n.bind(null,"20fd"))}},o=function(){var e=this,t=e.$createElement;e._self._c},a=[]},a547:function(e,t,n){"use strict";n.r(t);var r=n("a140"),o=n("6766");for(var a in o)"default"!==a&&function(e){n.d(t,e,(function(){return o[e]}))}(a);n("30dc");var i,u=n("f0c5"),c=Object(u["a"])(o["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],i);t["default"]=c.exports},e21e:function(e,t,n){}},[["20ef","common/runtime","common/vendor"]]]);