(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["user/page/mygx"],{"0a2f":function(e,t,n){"use strict";n.r(t);var o=n("9a3d"),r=n("0c60");for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);n("e04a");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},"0c60":function(e,t,n){"use strict";n.r(t);var o=n("d372"),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},"8fc6":function(e,t,n){"use strict";(function(e,t){var o=n("4ea4");n("12d5");o(n("66fd"));var r=o(n("0a2f"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(r.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},"9a3d":function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){}));var o=function(){var e=this.$createElement;this._self._c},r=[]},d0cc:function(e,t,n){},d372: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("36af"),d=n("26cb");function f(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?f(Object(n),!0).forEach((function(t){(0,i.default)(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}({},(0,d.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,price:0,my_point: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:""}},onLoad:function(e){},onShow:function(){var e=this;(0,l.share)().then((function(t){var n=t.data;e.price=n.price,e.my_point=n.my_point,console.log(n)})),this.loadData()},methods:{navto:function(t){e.navigateTo({url:t})},toBack:function(){e.navigateBack({})},loadData:function(t){var n=this;return(0,a.default)(r.default.mark((function o(){var a,i,u;return r.default.wrap((function(o){while(1)switch(o.prev=o.next){case 0:if(a=n.tabCurrentIndex,i=n.navList[a],u=i.state+3,"tabChange"!=t||1!=i.loaded){o.next=5;break}return o.abrupt("return");case 5:if("loading"!=i.loadingType&&"noMore"!=i.loadingType){o.next=7;break}return o.abrupt("return");case 7:i.loadingType="loading",(0,c.spreadCommission)({page:i.page,limit:i.limit},u).then((function(t){var o=t.data;o.length>0&&(i.orderList=i.orderList.concat(o[0].list),console.log(i.orderList),i.page++),i.limit!=o.length?(i.loadingType="noMore",e.hideLoading(),n.$set(i,"loaded",!0)):i.loadingType="more"})).catch((function(e){console.log(e)}));case 9:case"end":return o.stop()}}),o)})))()},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"])},e04a:function(e,t,n){"use strict";var o=n("d0cc"),r=n.n(o);r.a}},[["8fc6","common/runtime","common/vendor"]]]);