wallet.js 5.3 KB

12
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/money/wallet"],{261:function(e,t,n){"use strict";(function(e,t){var r=n(4);n(26);r(n(25));var o=r(n(262));e.__webpack_require_UNI_MP_PLUGIN__=n,t(o.default)}).call(this,n(1)["default"],n(2)["createPage"])},262:function(e,t,n){"use strict";n.r(t);var r=n(263),o=n(265);for(var a in o)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(a);n(267);var i,c=n(35),u=Object(c["default"])(o["default"],r["render"],r["staticRenderFns"],!1,null,null,null,!1,r["components"],i);u.options.__file="pages/money/wallet.vue",t["default"]=u.exports},263:function(e,t,n){"use strict";n.r(t);var r=n(264);n.d(t,"render",(function(){return r["render"]})),n.d(t,"staticRenderFns",(function(){return r["staticRenderFns"]})),n.d(t,"recyclableRender",(function(){return r["recyclableRender"]})),n.d(t,"components",(function(){return r["components"]}))},264:function(e,t,n){"use strict";var r;n.r(t),n.d(t,"render",(function(){return o})),n.d(t,"staticRenderFns",(function(){return i})),n.d(t,"recyclableRender",(function(){return a})),n.d(t,"components",(function(){return r}));try{r={uniLoadMore:function(){return n.e("components/uni-load-more/uni-load-more").then(n.bind(null,374))}}}catch(c){if(-1===c.message.indexOf("Cannot find module")||-1===c.message.indexOf(".vue"))throw c;console.error(c.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var o=function(){var e=this,t=e.$createElement,n=(e._self._c,e.__map(e.navList,(function(t,n){var r=e.__get_orig(t),o=!0===t.loaded&&0===t.orderList.length;return{$orig:r,g0:o}})));e.$mp.data=Object.assign({},{$root:{l0:n}})},a=!1,i=[];o._withStripped=!0},265:function(e,t,n){"use strict";n.r(t);var r=n(266),o=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=o.a},266:function(e,t,n){"use strict";(function(e){var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(42)),a=r(n(44)),i=r(n(11)),c=n(250),u=n(28),s=n(161),l=n(49);function d(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 f(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}var p=function(){n.e("components/uni-load-more/uni-load-more").then(function(){return resolve(n(374))}.bind(null,n)).catch(n.oe)},g=function(){n.e("components/empty").then(function(){return resolve(n(381))}.bind(null,n)).catch(n.oe)},m={filters:{getMoneyStyle:s.getMoneyStyle},computed:f({},(0,u.mapState)("user",["userInfo"])),components:{empty:g,uniLoadMore:p},onReady:function(t){var n=this;e.getSystemInfo({success:function(t){var r=e.createSelectorQuery();r.select(".swiper-box").boundingClientRect(),r.exec((function(e){n.maxheight=t.windowHeight-e[0].top+"px",console.log("打印页面的剩余高度",n.maxheight)}))},fail:function(e){}})},data:function(){return{maxheight:"",tabCurrentIndex:0,sr:"",zc:"",navList:[{state:1,text:"收入",loadingType:"more",orderList:[],page:1,limit:10},{state:0,text:"支出",loadingType:"more",orderList:[],page:1,limit:10}],money:""}},onLoad:function(e){},onShow:function(){this.getUserInfo(),this.loadData()},methods:f(f({},(0,u.mapMutations)("user",["setUserInfo"])),{},{navto:function(t){e.navigateTo({url:t})},getUserInfo:function(){var e=this;(0,l.getUserInfo)({}).then((function(t){var n=t.data;e.setUserInfo(n)}))},loadData:function(t){var n=this;return(0,a.default)(o.default.mark((function r(){var a,i,u,s;return o.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(a=n,i=n.tabCurrentIndex,u=n.navList[i],s=u.state,"tabChange"!==t||!0!==u.loaded){r.next=6;break}return r.abrupt("return");case 6:if("loading"!==u.loadingType){r.next=8;break}return r.abrupt("return");case 8:u.loadingType="loading",(0,c.brokerageList)({page:u.page,limit:u.limit,pm:s}).then((function(t){var r=t.data;console.log(r,"123456"),a.sr=r.sr,a.zc=r.zc,r.list.length>0&&(u.orderList=u.orderList.concat(r.list),console.log(u.orderList),u.page++),u.limit!=r.list.length?(u.loadingType="noMore",e.hideLoading(),n.$set(u,"loaded",!0)):u.loadingType="more"})).catch((function(e){console.log(e)}));case 10:case"end":return r.stop()}}),r)})))()},changeTab:function(e){this.tabCurrentIndex=e.target.current,this.loadData("tabChange")},tabClick:function(e){this.tabCurrentIndex=e},toBack:function(){e.navigateBack()}})};t.default=m}).call(this,n(2)["default"])},267:function(e,t,n){"use strict";n.r(t);var r=n(268),o=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=o.a},268:function(e,t,n){}},[[261,"common/runtime","common/vendor"]]]);
  2. //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/money/wallet.js.map