award.js 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. (global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/award/award" ], {
  2. 241: function(e, n, t) {
  3. (function(e) {
  4. function n(e) {
  5. return e && e.__esModule ? e : {
  6. default: e
  7. };
  8. }
  9. t(4), n(t(2)), e(n(t(242)).default);
  10. }).call(this, t(1).createPage);
  11. },
  12. 242: function(e, n, t) {
  13. t.r(n);
  14. var o = t(243), r = t(245);
  15. for (var a in r) "default" !== a && function(e) {
  16. t.d(n, e, function() {
  17. return r[e];
  18. });
  19. }(a);
  20. t(248);
  21. var i = t(13), u = Object(i.default)(r.default, o.render, o.staticRenderFns, !1, null, null, null, !1, o.components, void 0);
  22. u.options.__file = "pages/award/award.vue", n.default = u.exports;
  23. },
  24. 243: function(e, n, t) {
  25. t.r(n);
  26. var o = t(244);
  27. t.d(n, "render", function() {
  28. return o.render;
  29. }), t.d(n, "staticRenderFns", function() {
  30. return o.staticRenderFns;
  31. }), t.d(n, "recyclableRender", function() {
  32. return o.recyclableRender;
  33. }), t.d(n, "components", function() {
  34. return o.components;
  35. });
  36. },
  37. 244: function(e, n, t) {
  38. var o;
  39. t.r(n), t.d(n, "render", function() {
  40. return r;
  41. }), t.d(n, "staticRenderFns", function() {
  42. return i;
  43. }), t.d(n, "recyclableRender", function() {
  44. return a;
  45. }), t.d(n, "components", function() {
  46. return o;
  47. });
  48. try {
  49. o = {
  50. uniLoadMore: function() {
  51. return t.e("components/uni-load-more/uni-load-more").then(t.bind(null, 413));
  52. }
  53. };
  54. } catch (e) {
  55. if (-1 === e.message.indexOf("Cannot find module") || -1 === e.message.indexOf(".vue")) throw e;
  56. console.error(e.message), console.error("1. 排查组件名称拼写是否正确"), console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),
  57. console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件");
  58. }
  59. var r = function() {
  60. var e = this, n = (e.$createElement, e._self._c, e._f("getMoneyStyle")(e.money)), t = e._f("getMoneyStyle")(e.freezeMoney);
  61. e.$mp.data = Object.assign({}, {
  62. $root: {
  63. f0: n,
  64. f1: t
  65. }
  66. });
  67. }, a = !1, i = [];
  68. r._withStripped = !0;
  69. },
  70. 245: function(e, n, t) {
  71. t.r(n);
  72. var o = t(246), r = t.n(o);
  73. for (var a in o) "default" !== a && function(e) {
  74. t.d(n, e, function() {
  75. return o[e];
  76. });
  77. }(a);
  78. n.default = r.a;
  79. },
  80. 246: function(e, n, t) {
  81. (function(e) {
  82. function o(e, n, t, o, r, a, i) {
  83. try {
  84. var u = e[a](i), c = u.value;
  85. } catch (e) {
  86. return void t(e);
  87. }
  88. u.done ? n(c) : Promise.resolve(c).then(o, r);
  89. }
  90. function r(e) {
  91. return function() {
  92. var n = this, t = arguments;
  93. return new Promise(function(r, a) {
  94. function i(e) {
  95. o(c, r, a, i, u, "next", e);
  96. }
  97. function u(e) {
  98. o(c, r, a, i, u, "throw", e);
  99. }
  100. var c = e.apply(n, t);
  101. i(void 0);
  102. });
  103. };
  104. }
  105. Object.defineProperty(n, "__esModule", {
  106. value: !0
  107. }), n.default = void 0;
  108. var a = function(e) {
  109. return e && e.__esModule ? e : {
  110. default: e
  111. };
  112. }(t(23)), i = t(247), u = {
  113. filters: {
  114. getMoneyStyle: (t(6), t(82)).getMoneyStyle
  115. },
  116. components: {
  117. empty: function() {
  118. t.e("components/empty").then(function() {
  119. return resolve(t(420));
  120. }.bind(null, t)).catch(t.oe);
  121. },
  122. uniLoadMore: function() {
  123. t.e("components/uni-load-more/uni-load-more").then(function() {
  124. return resolve(t(413));
  125. }.bind(null, t)).catch(t.oe);
  126. }
  127. },
  128. onReady: function() {
  129. var n = this;
  130. e.createSelectorQuery().select(".content").fields({
  131. size: !0
  132. }, function(e) {
  133. n.maxheight = e.height - Math.floor(e.width / 750 * 570), console.log(n.maxheight);
  134. }).exec();
  135. },
  136. data: function() {
  137. return {
  138. maxheight: "",
  139. tabCurrentIndex: 0,
  140. navList: [ {
  141. state: 0,
  142. text: "收入",
  143. loadingType: "more",
  144. orderList: [],
  145. page: 1,
  146. limit: 10
  147. }, {
  148. state: 1,
  149. text: "支出",
  150. loadingType: "more",
  151. orderList: [],
  152. page: 1,
  153. limit: 10
  154. } ],
  155. money: "",
  156. freezeMoney: ""
  157. };
  158. },
  159. onLoad: function(e) {},
  160. onShow: function() {
  161. var e = this;
  162. this.loadData(), (0, i.extractBank)({}).then(function(n) {
  163. var t = n.data;
  164. e.money = t.commissionCount, e.freezeMoney = t.freezePrice;
  165. });
  166. },
  167. methods: {
  168. navto: function(n) {
  169. e.navigateTo({
  170. url: n
  171. });
  172. },
  173. loadData: function(n) {
  174. var t = this;
  175. return r(a.default.mark(function o() {
  176. var r, u, c;
  177. return a.default.wrap(function(o) {
  178. for (;;) switch (o.prev = o.next) {
  179. case 0:
  180. if (r = t.tabCurrentIndex, u = t.navList[r], c = u.state + 3, "tabChange" !== n || !0 !== u.loaded) {
  181. o.next = 5;
  182. break;
  183. }
  184. return o.abrupt("return");
  185. case 5:
  186. if ("loading" !== u.loadingType) {
  187. o.next = 7;
  188. break;
  189. }
  190. return o.abrupt("return");
  191. case 7:
  192. u.loadingType = "loading", (0, i.spreadCommission)({
  193. page: u.page,
  194. limit: u.limit
  195. }, c).then(function(n) {
  196. var o = n.data;
  197. o.length > 0 && (u.orderList = u.orderList.concat(o[0].list), console.log(u.orderList),
  198. u.page++), u.limit != o.length ? (u.loadingType = "noMore", e.hideLoading(), t.$set(u, "loaded", !0)) : u.loadingType = "more";
  199. }).catch(function(e) {
  200. console.log(e);
  201. });
  202. case 9:
  203. case "end":
  204. return o.stop();
  205. }
  206. }, o);
  207. }))();
  208. },
  209. changeTab: function(e) {
  210. this.tabCurrentIndex = e.target.current, this.loadData("tabChange");
  211. },
  212. tabClick: function(e) {
  213. this.tabCurrentIndex = e;
  214. }
  215. }
  216. };
  217. n.default = u;
  218. }).call(this, t(1).default);
  219. },
  220. 248: function(e, n, t) {
  221. t.r(n);
  222. var o = t(249), r = t.n(o);
  223. for (var a in o) "default" !== a && function(e) {
  224. t.d(n, e, function() {
  225. return o[e];
  226. });
  227. }(a);
  228. n.default = r.a;
  229. },
  230. 249: function(e, n, t) {}
  231. }, [ [ 241, "common/runtime", "common/vendor" ] ] ]);