tjfh.js 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. (global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/app/tjfh" ], {
  2. 405: function(n, e, t) {
  3. (function(n) {
  4. function e(n) {
  5. return n && n.__esModule ? n : {
  6. default: n
  7. };
  8. }
  9. t(4), e(t(2)), n(e(t(406)).default);
  10. }).call(this, t(1).createPage);
  11. },
  12. 406: function(n, e, t) {
  13. t.r(e);
  14. var o = t(407), r = t(409);
  15. for (var a in r) "default" !== a && function(n) {
  16. t.d(e, n, function() {
  17. return r[n];
  18. });
  19. }(a);
  20. t(411);
  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/app/tjfh.vue", e.default = u.exports;
  23. },
  24. 407: function(n, e, t) {
  25. t.r(e);
  26. var o = t(408);
  27. t.d(e, "render", function() {
  28. return o.render;
  29. }), t.d(e, "staticRenderFns", function() {
  30. return o.staticRenderFns;
  31. }), t.d(e, "recyclableRender", function() {
  32. return o.recyclableRender;
  33. }), t.d(e, "components", function() {
  34. return o.components;
  35. });
  36. },
  37. 408: function(n, e, t) {
  38. var o;
  39. t.r(e), t.d(e, "render", function() {
  40. return r;
  41. }), t.d(e, "staticRenderFns", function() {
  42. return i;
  43. }), t.d(e, "recyclableRender", function() {
  44. return a;
  45. }), t.d(e, "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 (n) {
  55. if (-1 === n.message.indexOf("Cannot find module") || -1 === n.message.indexOf(".vue")) throw n;
  56. console.error(n.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 n = this, e = (n.$createElement, n._self._c, n._f("getMoneyStyle")(n.money));
  61. n.$mp.data = Object.assign({}, {
  62. $root: {
  63. f0: e
  64. }
  65. });
  66. }, a = !1, i = [];
  67. r._withStripped = !0;
  68. },
  69. 409: function(n, e, t) {
  70. t.r(e);
  71. var o = t(410), r = t.n(o);
  72. for (var a in o) "default" !== a && function(n) {
  73. t.d(e, n, function() {
  74. return o[n];
  75. });
  76. }(a);
  77. e.default = r.a;
  78. },
  79. 410: function(n, e, t) {
  80. (function(n) {
  81. function o(n, e, t, o, r, a, i) {
  82. try {
  83. var u = n[a](i), c = u.value;
  84. } catch (n) {
  85. return void t(n);
  86. }
  87. u.done ? e(c) : Promise.resolve(c).then(o, r);
  88. }
  89. function r(n) {
  90. return function() {
  91. var e = this, t = arguments;
  92. return new Promise(function(r, a) {
  93. function i(n) {
  94. o(c, r, a, i, u, "next", n);
  95. }
  96. function u(n) {
  97. o(c, r, a, i, u, "throw", n);
  98. }
  99. var c = n.apply(e, t);
  100. i(void 0);
  101. });
  102. };
  103. }
  104. Object.defineProperty(e, "__esModule", {
  105. value: !0
  106. }), e.default = void 0;
  107. var a = function(n) {
  108. return n && n.__esModule ? n : {
  109. default: n
  110. };
  111. }(t(23)), i = t(247), u = t(354), c = {
  112. filters: {
  113. getMoneyStyle: (t(6), t(82)).getMoneyStyle
  114. },
  115. components: {
  116. empty: function() {
  117. t.e("components/empty").then(function() {
  118. return resolve(t(420));
  119. }.bind(null, t)).catch(t.oe);
  120. },
  121. uniLoadMore: function() {
  122. t.e("components/uni-load-more/uni-load-more").then(function() {
  123. return resolve(t(413));
  124. }.bind(null, t)).catch(t.oe);
  125. }
  126. },
  127. onReady: function() {
  128. var e = this;
  129. n.createSelectorQuery().select(".content").fields({
  130. size: !0
  131. }, function(n) {
  132. e.maxheight = n.height - Math.floor(n.width / 750 * 398), console.log(e.maxheight);
  133. }).exec();
  134. },
  135. data: function() {
  136. return {
  137. maxheight: "",
  138. tabCurrentIndex: 0,
  139. navList: [ {
  140. state: 0,
  141. text: "收入",
  142. loadingType: "more",
  143. orderList: [],
  144. page: 1,
  145. limit: 10
  146. } ],
  147. money: "",
  148. freezeMoney: ""
  149. };
  150. },
  151. onLoad: function(n) {},
  152. onShow: function() {
  153. var n = this;
  154. this.loadData(), (0, u.mskList)({}).then(function(e) {
  155. var t = e.data;
  156. n.money = t.user.recommend_stock_right_bonus;
  157. });
  158. },
  159. methods: {
  160. navto: function(e) {
  161. n.navigateTo({
  162. url: e
  163. });
  164. },
  165. loadData: function(e) {
  166. var t = this;
  167. return r(a.default.mark(function o() {
  168. var r, u;
  169. return a.default.wrap(function(o) {
  170. for (;;) switch (o.prev = o.next) {
  171. case 0:
  172. if (r = t.tabCurrentIndex, (u = t.navList[r]).state, "tabChange" !== e || !0 !== u.loaded) {
  173. o.next = 5;
  174. break;
  175. }
  176. return o.abrupt("return");
  177. case 5:
  178. if ("loading" !== u.loadingType) {
  179. o.next = 7;
  180. break;
  181. }
  182. return o.abrupt("return");
  183. case 7:
  184. u.loadingType = "loading", (0, i.spreadCommission)({
  185. page: u.page,
  186. limit: u.limit
  187. }, 8).then(function(e) {
  188. var o = e.data;
  189. o.length > 0 && (u.orderList = u.orderList.concat(o[0].list), console.log(u.orderList),
  190. u.page++), u.limit != o.length ? (u.loadingType = "noMore", n.hideLoading(), t.$set(u, "loaded", !0)) : u.loadingType = "more";
  191. }).catch(function(n) {
  192. console.log(n);
  193. });
  194. case 9:
  195. case "end":
  196. return o.stop();
  197. }
  198. }, o);
  199. }))();
  200. },
  201. changeTab: function(n) {
  202. this.tabCurrentIndex = n.target.current, this.loadData("tabChange");
  203. },
  204. tabClick: function(n) {
  205. this.tabCurrentIndex = n;
  206. }
  207. }
  208. };
  209. e.default = c;
  210. }).call(this, t(1).default);
  211. },
  212. 411: function(n, e, t) {
  213. t.r(e);
  214. var o = t(412), r = t.n(o);
  215. for (var a in o) "default" !== a && function(n) {
  216. t.d(e, n, function() {
  217. return o[n];
  218. });
  219. }(a);
  220. e.default = r.a;
  221. },
  222. 412: function(n, e, t) {}
  223. }, [ [ 405, "common/runtime", "common/vendor" ] ] ]);