(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user/award"],{"441f":function(t,e,n){"use strict";(function(t){var a=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=a(n("2eee")),r=a(n("c973")),i=(n("26cb"),n("8383")),u=n("d3a1"),c=n("1fb9"),d={filters:{getMoneyStyle:u.getMoneyStyle},components:{empty:function(){n.e("components/empty").then(function(){return resolve(n("f93f"))}.bind(null,n)).catch(n.oe)},uniLoadMore:function(){n.e("components/uni-load-more/uni-load-more").then(function(){return resolve(n("07b4"))}.bind(null,n)).catch(n.oe)}},onReady:function(e){var n=this;t.getSystemInfo({success:function(e){var a=t.createSelectorQuery();a.select(".swiper-box").boundingClientRect(),a.exec((function(t){n.height=e.windowHeight-t[0].top+"px",console.log("打印页面的剩余高度",n.height)}))},fail:function(t){}})},data:function(){return{userInfo:{},yj:"",height:"",maxheight:"",tabCurrentIndex:0,orderStatusSum:0,recharge:0,navList:[{state:4,text:"支出",loadingType:"more",orderList:[],page:1,limit:100},{state:3,text:"收入",loadingType:"more",orderList:[],page:1,limit:100}],money:""}},onLoad:function(t){},onShow:function(){this.extractBank(),this.getUserInfo(),this.loadData()},methods:{getUserInfo:function(){var t=this;(0,i.getUser)({}).then((function(e){var n=e.data;t.userInfo=n}))},extractBank:function(){var t=this;(0,c.extractBank)().then((function(e){console.log(e),t.yj=e.data.brokerage_price}))},toBack:function(){t.switchTab({url:"/pages/user/user"})},navto:function(e){t.navigateTo({url:e})},loadData:function(e){var n=this;return(0,r.default)(o.default.mark((function a(){var r,i,u;return o.default.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(n,r=n.tabCurrentIndex,i=n.navList[r],u=i.state,"tabChange"!==e||!0!==i.loaded){a.next=6;break}return a.abrupt("return");case 6:if("loading"!==i.loadingType){a.next=8;break}return a.abrupt("return");case 8:i.loadingType="loading",(0,c.spreadCommission)({page:i.page,limit:i.limit},u).then((function(e){var a=e.data;a.forEach((function(t){i.orderList=i.orderList.concat(t.list)})),i.page++,i.limit!=a.length?(i.loadingType="noMore",t.hideLoading(),n.$set(i,"loaded",!0)):i.loadingType="more"})).catch((function(t){console.log(t)}));case 10:case"end":return a.stop()}}),a)})))()},changeTab:function(t){this.tabCurrentIndex=t.target.current,this.loadData("tabChange")},tabClick:function(t){this.tabCurrentIndex=t}}};e.default=d}).call(this,n("543d")["default"])},"4b20":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return a}));var a={uniLoadMore:function(){return n.e("components/uni-load-more/uni-load-more").then(n.bind(null,"07b4"))}},o=function(){var t=this,e=t.$createElement,n=(t._self._c,t.__map(t.navList,(function(e,n){var a=t.__get_orig(e),o=!0===e.loaded&&0===e.orderList.length,r=0==e.orderList.length&&e.loaded;return{$orig:a,g0:o,g1:r}})));t.$mp.data=Object.assign({},{$root:{l0:n}})},r=[]},"8d5f":function(t,e,n){"use strict";n.r(e);var a=n("4b20"),o=n("915a");for(var r in o)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(r);n("a9b0");var i=n("f0c5"),u=Object(i["a"])(o["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],void 0);e["default"]=u.exports},"915a":function(t,e,n){"use strict";n.r(e);var a=n("441f"),o=n.n(a);for(var r in a)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(r);e["default"]=o.a},a9b0:function(t,e,n){"use strict";var a=n("eb6b"),o=n.n(a);o.a},d263:function(t,e,n){"use strict";(function(t,e){var a=n("4ea4");n("ab68");a(n("66fd"));var o=a(n("8d5f"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(o.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},eb6b:function(t,e,n){}},[["d263","common/runtime","common/vendor"]]]);