(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user/award"],{1393: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,"cb81"))}},o=function(){var e=this,t=e.$createElement;e._self._c},a=[]},2083:function(e,t,n){"use strict";n.r(t);var r=n("1393"),o=n("419a");for(var a in o)"default"!==a&&function(e){n.d(t,e,(function(){return o[e]}))}(a);n("52e9");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},"3ad8":function(e,t,n){},"419a":function(e,t,n){"use strict";n.r(t);var r=n("ad71"),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},"52e9":function(e,t,n){"use strict";var r=n("3ad8"),o=n.n(r);o.a},"6aff":function(e,t,n){"use strict";(function(e){n("30ba");r(n("66fd"));var t=r(n("2083"));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"])},ad71:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n("a34a")),o=n("26cb"),a=n("f9a9"),i=n("6bbc"),u=n("6e9e");function c(e){return e&&e.__esModule?e:{default:e}}function l(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 s(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){l(a,r,o,i,u,"next",e)}function u(e){l(a,r,o,i,u,"throw",e)}i(void 0)}))}}function f(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 d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=function(){n.e("components/uni-load-more/uni-load-more").then(function(){return resolve(n("cb81"))}.bind(null,n)).catch(n.oe)},g=function(){n.e("components/empty").then(function(){return resolve(n("72be"))}.bind(null,n)).catch(n.oe)},h={filters:{getMoneyStyle:i.getMoneyStyle},components:{empty:g,uniLoadMore:b},computed:d({},(0,o.mapState)("user",["userInfo"])),onReady:function(t){var n=this;console.log(n.userInfo),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{yj:"",height:"",maxheight:"",tabCurrentIndex:0,orderStatusSum:0,recharge:0,navList:[{state:0,text:"支出",loadingType:"more",orderList:[],page:1,limit:10},{state:1,text:"收入",loadingType:"more",orderList:[],page:1,limit:10}],money:""}},onLoad:function(e){},onShow:function(){this.extractBank(),this.loadData()},methods:{extractBank:function(){var e=this;(0,u.extractBank)().then((function(t){console.log(t),e.yj=t.data.commissionCount}))},toBack:function(){e.switchTab({url:"/pages/user/user"})},navto:function(t){e.navigateTo({url:t})},loadData:function(t){var n=this;return s(r.default.mark((function o(){var i,u,c,l;return r.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(i=n,u=n.tabCurrentIndex,c=n.navList[u],l=c.state,"tabChange"!==t||!0!==c.loaded){r.next=6;break}return r.abrupt("return");case 6:if("loading"!==c.loadingType){r.next=8;break}return r.abrupt("return");case 8:c.loadingType="loading",(0,a.getCommissionInfo)({page:c.page,limit:c.limit,pm:l}).then((function(t){var r=t.data;i.recharge=r.sr,i.orderStatusSum=r.zc,c.orderList=c.orderList.concat(r.list),c.page++,c.limit==r.list.length?c.loadingType="more":c.loadingType="noMore",e.hideLoading(),n.$set(c,"loaded",!0)})).catch((function(e){console.log(e)}));case 10: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=h}).call(this,n("543d")["default"])}},[["6aff","common/runtime","common/vendor"]]]);