123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238 |
- (global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/wallet/wallet" ], {
- 275: function(e, n, t) {
- (function(e) {
- function n(e) {
- return e && e.__esModule ? e : {
- default: e
- };
- }
- t(4), n(t(2)), e(n(t(276)).default);
- }).call(this, t(1).createPage);
- },
- 276: function(e, n, t) {
- t.r(n);
- var o = t(277), r = t(279);
- for (var a in r) "default" !== a && function(e) {
- t.d(n, e, function() {
- return r[e];
- });
- }(a);
- t(281);
- var i = t(13), c = Object(i.default)(r.default, o.render, o.staticRenderFns, !1, null, null, null, !1, o.components, void 0);
- c.options.__file = "pages/wallet/wallet.vue", n.default = c.exports;
- },
- 277: function(e, n, t) {
- t.r(n);
- var o = t(278);
- t.d(n, "render", function() {
- return o.render;
- }), t.d(n, "staticRenderFns", function() {
- return o.staticRenderFns;
- }), t.d(n, "recyclableRender", function() {
- return o.recyclableRender;
- }), t.d(n, "components", function() {
- return o.components;
- });
- },
- 278: function(e, n, t) {
- var o;
- t.r(n), t.d(n, "render", function() {
- return r;
- }), t.d(n, "staticRenderFns", function() {
- return i;
- }), t.d(n, "recyclableRender", function() {
- return a;
- }), t.d(n, "components", function() {
- return o;
- });
- try {
- o = {
- uniLoadMore: function() {
- return t.e("components/uni-load-more/uni-load-more").then(t.bind(null, 413));
- }
- };
- } catch (e) {
- if (-1 === e.message.indexOf("Cannot find module") || -1 === e.message.indexOf(".vue")) throw e;
- console.error(e.message), console.error("1. 排查组件名称拼写是否正确"), console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),
- console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件");
- }
- var r = function() {
- var e = this, n = (e.$createElement, e._self._c, e._f("getMoneyStyle")(e.money));
- e.$mp.data = Object.assign({}, {
- $root: {
- f0: n
- }
- });
- }, a = !1, i = [];
- r._withStripped = !0;
- },
- 279: function(e, n, t) {
- t.r(n);
- var o = t(280), r = t.n(o);
- for (var a in o) "default" !== a && function(e) {
- t.d(n, e, function() {
- return o[e];
- });
- }(a);
- n.default = r.a;
- },
- 280: function(e, n, t) {
- (function(e) {
- function o(e, n, t, o, r, a, i) {
- try {
- var c = e[a](i), u = c.value;
- } catch (e) {
- return void t(e);
- }
- c.done ? n(u) : Promise.resolve(u).then(o, r);
- }
- function r(e) {
- return function() {
- var n = this, t = arguments;
- return new Promise(function(r, a) {
- function i(e) {
- o(u, r, a, i, c, "next", e);
- }
- function c(e) {
- o(u, r, a, i, c, "throw", e);
- }
- var u = e.apply(n, t);
- i(void 0);
- });
- };
- }
- Object.defineProperty(n, "__esModule", {
- value: !0
- }), n.default = void 0;
- var a = function(e) {
- return e && e.__esModule ? e : {
- default: e
- };
- }(t(23)), i = t(247), c = {
- filters: {
- getMoneyStyle: t(82).getMoneyStyle
- },
- components: {
- empty: function() {
- t.e("components/empty").then(function() {
- return resolve(t(420));
- }.bind(null, t)).catch(t.oe);
- },
- uniLoadMore: function() {
- t.e("components/uni-load-more/uni-load-more").then(function() {
- return resolve(t(413));
- }.bind(null, t)).catch(t.oe);
- }
- },
- onReady: function() {
- var n = this;
- e.createSelectorQuery().select(".content").fields({
- size: !0
- }, function(t) {
- e.createSelectorQuery().select(".content-money").fields({
- size: !0
- }, function(e) {
- n.maxheight = t.height - e.height - 40;
- }).exec();
- }).exec();
- },
- data: function() {
- return {
- maxheight: "",
- tabCurrentIndex: 0,
- navList: [ {
- state: 1,
- text: "支出",
- loadingType: "more",
- orderList: [],
- page: 1,
- limit: 10
- }, {
- state: 2,
- text: "收入",
- loadingType: "more",
- orderList: [],
- page: 1,
- limit: 10
- } ],
- money: ""
- };
- },
- onLoad: function(n) {
- e.getStorageSync("weichatBrowser") && weixindata();
- },
- onShow: function() {
- var e = this;
- this.loadData(), (0, i.userBalance)({}).then(function(n) {
- var t = n.data;
- e.money = t.now_money;
- });
- },
- methods: {
- navto: function(n) {
- e.navigateTo({
- url: n
- });
- },
- loadData: function(n) {
- var t = this;
- return r(a.default.mark(function o() {
- var r, c, u;
- return a.default.wrap(function(o) {
- for (;;) switch (o.prev = o.next) {
- case 0:
- if (r = t.tabCurrentIndex, c = t.navList[r], u = c.state, "tabChange" !== n || !0 !== c.loaded) {
- o.next = 5;
- break;
- }
- return o.abrupt("return");
- case 5:
- if ("loading" !== c.loadingType) {
- o.next = 7;
- break;
- }
- return o.abrupt("return");
- case 7:
- c.loadingType = "loading", (0, i.spreadCommission)({
- page: c.page,
- limit: c.limit
- }, u).then(function(n) {
- var o = n.data;
- o.length > 0 && (c.orderList = c.orderList.concat(o), console.log(c.orderList),
- c.page++), c.limit != o.length ? (c.loadingType = "noMore", e.hideLoading(), t.$set(c, "loaded", !0)) : c.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;
- }
- }
- };
- n.default = c;
- }).call(this, t(1).default);
- },
- 281: function(e, n, t) {
- t.r(n);
- var o = t(282), r = t.n(o);
- for (var a in o) "default" !== a && function(e) {
- t.d(n, e, function() {
- return o[e];
- });
- }(a);
- n.default = r.a;
- },
- 282: function(e, n, t) {}
- }, [ [ 275, "common/runtime", "common/vendor" ] ] ]);
|