(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["user/page/award"],{"05fc":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=u(n("a34a")),r=n("b587"),i=n("7201"),a=n("26cb");function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n,o,r,i,a){try{var u=e[i](a),c=u.value}catch(l){return void n(l)}u.done?t(c):Promise.resolve(c).then(o,r)}function l(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){c(i,o,r,a,u,"next",e)}function u(e){c(i,o,r,a,u,"throw",e)}a(void 0)}))}}function s(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}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=function(){n.e("uview-ui/components/u-loadmore/u-loadmore").then(function(){return resolve(n("4191"))}.bind(null,n)).catch(n.oe)},g=function(){n.e("uview-ui/components/u-empty/u-empty").then(function(){return resolve(n("547d"))}.bind(null,n)).catch(n.oe)},b={filters:{getMoneyStyle:i.getMoneyStyle},computed:f({},(0,a.mapState)("user",["userInfo","orderInfo","hasLogin"])),components:{empty:g,uniLoadMore:p},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 l(o.default.mark((function i(){var a,u,c,l;return o.default.wrap((function(o){while(1)switch(o.prev=o.next){case 0:if(a=n,u=n.tabCurrentIndex,c=n.navList[u],l=c.state+3,"tabChange"!==t||!0!==c.loaded){o.next=6;break}return o.abrupt("return");case 6:if("loading"!==c.loadingType){o.next=8;break}return o.abrupt("return");case 8:c.loadingType="loading",console.log(l,"123456"),(0,r.spreadCommission)({page:c.page,limit:c.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="礼包推荐补贴")})),c.orderList=c.orderList.concat(o.list[0].list),console.log(c.orderList),c.page++):c.loadingType="noMore",c.limit!=o.length?(c.loadingType="noMore",e.hideLoading(),n.$set(c,"loaded",!0)):c.loadingType="more"})).catch((function(e){console.log(e)}));case 11:case"end":return o.stop()}}),i)})))()},toBack:function(){e.navigateBack({})},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"])},"2d84":function(e,t,n){"use strict";n.r(t);var o=n("7efc"),r=n("df4d");for(var i in r)"default"!==i&&function(e){n.d(t,e,(function(){return r[e]}))}(i);n("8750");var a,u=n("f0c5"),c=Object(u["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],a);t["default"]=c.exports},4773:function(e,t,n){"use strict";(function(e){n("856e");o(n("66fd"));var t=o(n("2d84"));function o(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=n,e(t.default)}).call(this,n("543d")["createPage"])},6931:function(e,t,n){},"7efc":function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),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,"ef69"))}},r=function(){var e=this,t=e.$createElement;e._self._c},i=[]},8750:function(e,t,n){"use strict";var o=n("6931"),r=n.n(o);r.a},df4d:function(e,t,n){"use strict";n.r(t);var o=n("05fc"),r=n.n(o);for(var i in o)"default"!==i&&function(e){n.d(t,e,(function(){return o[e]}))}(i);t["default"]=r.a}},[["4773","common/runtime","common/vendor"]]]);