(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["user/page/award"],{"34f3":function(e,t,n){"use strict";(function(e,t){var o=n("4ea4");n("12d5");o(n("66fd"));var r=o(n("f39b"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(r.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},"601c":function(e,t,n){"use strict";(function(e){var o=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n("2eee")),a=o(n("c973")),i=o(n("9523")),c=n("94b0"),u=n("b7b7"),l=n("26cb");function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}var s={filters:{getMoneyStyle:u.getMoneyStyle},computed:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},(0,l.mapState)("user",["userInfo","orderInfo","hasLogin"])),components:{empty:function(){n.e("uview-ui/components/u-empty/u-empty").then(function(){return resolve(n("e5d5"))}.bind(null,n)).catch(n.oe)},uniLoadMore:function(){n.e("uview-ui/components/u-loadmore/u-loadmore").then(function(){return resolve(n("9a86"))}.bind(null,n)).catch(n.oe)}},onReady:function(t){var n=this;e.getSystemInfo({success:function(t){var o=e.createSelectorQuery();o.select(".swiper-box").boundingClientRect(),o.exec((function(e){n.maxheight=t.windowHeight-e[0].top+"px",console.log("打印页面的剩余高度",n.height)}))},fail:function(e){}})},data:function(){return{maxheight:"",tabCurrentIndex:0,orderStatusSum:0,recharge:0,navList:[{state:0,text:"收入",loadingType:"more",orderList:[],page:1,limit:10,loaded:!1},{state:1,text:"支出",loadingType:"more",orderList:[],page:1,limit:10,loaded:!1}],money:""}},onShow:function(){this.loadData()},methods:{navto:function(t){e.navigateTo({url:t})},loadData:function(t){var n=this;return(0,a.default)(r.default.mark((function o(){var a,i,u,l;return r.default.wrap((function(o){while(1)switch(o.prev=o.next){case 0:if(a=n,i=n.tabCurrentIndex,u=n.navList[i],l=u.state+3,"tabChange"!==t||!0!==u.loaded){o.next=6;break}return o.abrupt("return");case 6:if("loading"!==u.loadingType){o.next=8;break}return o.abrupt("return");case 8:u.loadingType="loading",console.log(l,"123456"),(0,c.spreadCommission)({page:u.page,limit:u.limit},l).then((function(t){var o=t.data;console.log(o,"2211111"),a.recharge=o.income,a.orderStatusSum=o.expend,o.list.length>0?(o.list[0].list.forEach((function(e){console.log(e,"123456"),"市场分红"==e.title&&(e.title="市场分红补贴"),"礼包推荐奖"==e.title&&(e.title="礼包推荐补贴")})),u.orderList=u.orderList.concat(o.list[0].list),console.log(u.orderList),u.page++):u.loadingType="noMore",u.limit!=o.length?(u.loadingType="noMore",e.hideLoading(),n.$set(u,"loaded",!0)):u.loadingType="more"})).catch((function(e){console.log(e)}));case 11:case"end":return o.stop()}}),o)})))()},toBack:function(){e.navigateBack({})},changeTab:function(e){this.tabCurrentIndex=e.target.current,this.loadData("tabChange")},tabClick:function(e){this.tabCurrentIndex=e}}};t.default=s}).call(this,n("543d")["default"])},8202:function(e,t,n){"use strict";var o=n("def9"),r=n.n(o);r.a},c604:function(e,t,n){"use strict";n.r(t);var o=n("601c"),r=n.n(o);for(var a in o)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(a);t["default"]=r.a},def9:function(e,t,n){},f39b:function(e,t,n){"use strict";n.r(t);var o=n("f639"),r=n("c604");for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);n("8202");var i=n("f0c5"),c=Object(i["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);t["default"]=c.exports},f639:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return o}));var o={uniLoadMore:function(){return n.e("components/uni-load-more/uni-load-more").then(n.bind(null,"bfdb"))}},r=function(){var e=this,t=e.$createElement,n=(e._self._c,e.__map(e.navList,(function(t,n){var o=e.__get_orig(t),r=!0===t.loaded&&0===t.orderList.length,a=0==t.orderList.length&&t.loaded;return{$orig:o,g0:r,g1:a}})));e.$mp.data=Object.assign({},{$root:{l0:n}})},a=[]}},[["34f3","common/runtime","common/vendor"]]]);