freezeList.js 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. (global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/wallet/freezeList" ], {
  2. 283: 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(284)).default);
  10. }).call(this, t(1).createPage);
  11. },
  12. 284: function(n, e, t) {
  13. t.r(e);
  14. var r = t(285), o = t(287);
  15. for (var a in o) "default" !== a && function(n) {
  16. t.d(e, n, function() {
  17. return o[n];
  18. });
  19. }(a);
  20. t(290);
  21. var u = t(13), i = Object(u.default)(o.default, r.render, r.staticRenderFns, !1, null, null, null, !1, r.components, void 0);
  22. i.options.__file = "pages/wallet/freezeList.vue", e.default = i.exports;
  23. },
  24. 285: function(n, e, t) {
  25. t.r(e);
  26. var r = t(286);
  27. t.d(e, "render", function() {
  28. return r.render;
  29. }), t.d(e, "staticRenderFns", function() {
  30. return r.staticRenderFns;
  31. }), t.d(e, "recyclableRender", function() {
  32. return r.recyclableRender;
  33. }), t.d(e, "components", function() {
  34. return r.components;
  35. });
  36. },
  37. 286: function(n, e, t) {
  38. var r;
  39. t.r(e), t.d(e, "render", function() {
  40. return o;
  41. }), t.d(e, "staticRenderFns", function() {
  42. return u;
  43. }), t.d(e, "recyclableRender", function() {
  44. return a;
  45. }), t.d(e, "components", function() {
  46. return r;
  47. });
  48. try {
  49. r = {
  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 o = function() {
  60. var n = this;
  61. n.$createElement;
  62. n._self._c;
  63. }, a = !1, u = [];
  64. o._withStripped = !0;
  65. },
  66. 287: function(n, e, t) {
  67. t.r(e);
  68. var r = t(288), o = t.n(r);
  69. for (var a in r) "default" !== a && function(n) {
  70. t.d(e, n, function() {
  71. return r[n];
  72. });
  73. }(a);
  74. e.default = o.a;
  75. },
  76. 288: function(n, e, t) {
  77. (function(n) {
  78. function r(n, e, t, r, o, a, u) {
  79. try {
  80. var i = n[a](u), c = i.value;
  81. } catch (n) {
  82. return void t(n);
  83. }
  84. i.done ? e(c) : Promise.resolve(c).then(r, o);
  85. }
  86. function o(n) {
  87. return function() {
  88. var e = this, t = arguments;
  89. return new Promise(function(o, a) {
  90. function u(n) {
  91. r(c, o, a, u, i, "next", n);
  92. }
  93. function i(n) {
  94. r(c, o, a, u, i, "throw", n);
  95. }
  96. var c = n.apply(e, t);
  97. u(void 0);
  98. });
  99. };
  100. }
  101. Object.defineProperty(e, "__esModule", {
  102. value: !0
  103. }), e.default = void 0;
  104. var a = function(n) {
  105. return n && n.__esModule ? n : {
  106. default: n
  107. };
  108. }(t(23)), u = t(289), i = {
  109. components: {
  110. empty: function() {
  111. t.e("components/empty").then(function() {
  112. return resolve(t(420));
  113. }.bind(null, t)).catch(t.oe);
  114. },
  115. uniLoadMore: function() {
  116. t.e("components/uni-load-more/uni-load-more").then(function() {
  117. return resolve(t(413));
  118. }.bind(null, t)).catch(t.oe);
  119. }
  120. },
  121. onReady: function() {},
  122. data: function() {
  123. return {
  124. tabCurrentIndex: 0,
  125. navList: [ {
  126. state: 0,
  127. text: "全部",
  128. loadingType: "more",
  129. orderList: [],
  130. page: 1,
  131. limit: 10
  132. } ]
  133. };
  134. },
  135. onShow: function() {
  136. this.loadData();
  137. },
  138. methods: {
  139. navto: function(e) {
  140. n.navigateTo({
  141. url: e
  142. });
  143. },
  144. loadData: function(e) {
  145. var t = this;
  146. return o(a.default.mark(function r() {
  147. var o, i;
  148. return a.default.wrap(function(r) {
  149. for (;;) switch (r.prev = r.next) {
  150. case 0:
  151. if (o = t.tabCurrentIndex, i = t.navList[o], "tabChange" !== e || !0 !== i.loaded) {
  152. r.next = 4;
  153. break;
  154. }
  155. return r.abrupt("return");
  156. case 4:
  157. if ("loading" !== i.loadingType) {
  158. r.next = 6;
  159. break;
  160. }
  161. return r.abrupt("return");
  162. case 6:
  163. i.loadingType = "loading", (0, u.rechList)({
  164. page: i.page,
  165. limit: i.limit
  166. }).then(function(e) {
  167. var r = e.data;
  168. r.length > 0 && (i.orderList = i.orderList.concat(r), i.page++), i.limit != r.length ? (i.loadingType = "noMore",
  169. n.hideLoading(), t.$set(i, "loaded", !0)) : i.loadingType = "more";
  170. }).catch(function(n) {
  171. console.log(n);
  172. });
  173. case 8:
  174. case "end":
  175. return r.stop();
  176. }
  177. }, r);
  178. }))();
  179. },
  180. changeTab: function(n) {
  181. this.tabCurrentIndex = n.target.current, this.loadData("tabChange");
  182. },
  183. tabClick: function(n) {
  184. this.tabCurrentIndex = n;
  185. }
  186. }
  187. };
  188. e.default = i;
  189. }).call(this, t(1).default);
  190. },
  191. 290: function(n, e, t) {
  192. t.r(e);
  193. var r = t(291), o = t.n(r);
  194. for (var a in r) "default" !== a && function(n) {
  195. t.d(e, n, function() {
  196. return r[n];
  197. });
  198. }(a);
  199. e.default = o.a;
  200. },
  201. 291: function(n, e, t) {}
  202. }, [ [ 283, "common/runtime", "common/vendor" ] ] ]);