myteam.js 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  1. (global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/user/myteam" ], {
  2. 75: 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(76)).default);
  10. }).call(this, t(1).createPage);
  11. },
  12. 76: function(n, e, t) {
  13. t.r(e);
  14. var o = t(77), r = t(79);
  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(83);
  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/user/myteam.vue", e.default = u.exports;
  23. },
  24. 77: function(n, e, t) {
  25. t.r(e);
  26. var o = t(78);
  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. 78: 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;
  61. n.$createElement;
  62. n._self._c;
  63. }, a = !1, i = [];
  64. r._withStripped = !0;
  65. },
  66. 79: function(n, e, t) {
  67. t.r(e);
  68. var o = t(80), r = t.n(o);
  69. for (var a in o) "default" !== a && function(n) {
  70. t.d(e, n, function() {
  71. return o[n];
  72. });
  73. }(a);
  74. e.default = r.a;
  75. },
  76. 80: function(n, e, t) {
  77. (function(n) {
  78. function o(n, e, t, o, r, a, i) {
  79. try {
  80. var u = n[a](i), c = u.value;
  81. } catch (n) {
  82. return void t(n);
  83. }
  84. u.done ? e(c) : Promise.resolve(c).then(o, r);
  85. }
  86. function r(n) {
  87. return function() {
  88. var e = this, t = arguments;
  89. return new Promise(function(r, a) {
  90. function i(n) {
  91. o(c, r, a, i, u, "next", n);
  92. }
  93. function u(n) {
  94. o(c, r, a, i, u, "throw", n);
  95. }
  96. var c = n.apply(e, t);
  97. i(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)), i = t(81), u = t(27), c = {
  109. filters: {
  110. getMoneyStyle: (t(6), t(82)).getMoneyStyle
  111. },
  112. components: {
  113. empty: function() {
  114. t.e("components/empty").then(function() {
  115. return resolve(t(420));
  116. }.bind(null, t)).catch(t.oe);
  117. },
  118. uniLoadMore: function() {
  119. t.e("components/uni-load-more/uni-load-more").then(function() {
  120. return resolve(t(413));
  121. }.bind(null, t)).catch(t.oe);
  122. }
  123. },
  124. onReady: function() {
  125. var e = this;
  126. n.createSelectorQuery().select(".content").fields({
  127. size: !0
  128. }, function(n) {
  129. e.maxheight = 940;
  130. }).exec();
  131. },
  132. data: function() {
  133. return {
  134. userInfo: {},
  135. maxheight: "",
  136. tabCurrentIndex: 0,
  137. navList: [ {
  138. state: 0,
  139. text: "一级团队",
  140. loadingType: "more",
  141. num: 0,
  142. orderList: [],
  143. page: 1,
  144. limit: 10
  145. }, {
  146. state: 1,
  147. text: "二级团队",
  148. num: 0,
  149. loadingType: "more",
  150. orderList: [],
  151. page: 1,
  152. limit: 10
  153. } ],
  154. money: ""
  155. };
  156. },
  157. onLoad: function(n) {},
  158. onShow: function() {
  159. this.loadData();
  160. var n = this;
  161. (0, u.userinfo)({}).then(function(e) {
  162. var t = e.data;
  163. console.log(t), n.userInfo = t;
  164. }).catch(function(n) {});
  165. },
  166. methods: {
  167. navto: function(e) {
  168. n.navigateTo({
  169. url: e
  170. });
  171. },
  172. loadData: function(e) {
  173. var t = this;
  174. return r(a.default.mark(function o() {
  175. var r, u, c, l;
  176. return a.default.wrap(function(o) {
  177. for (;;) switch (o.prev = o.next) {
  178. case 0:
  179. if (r = t, u = r.tabCurrentIndex, c = r.navList[u], l = c.state, "tabChange" !== e || !0 !== c.loaded) {
  180. o.next = 6;
  181. break;
  182. }
  183. return o.abrupt("return");
  184. case 6:
  185. if ("loading" !== c.loadingType) {
  186. o.next = 8;
  187. break;
  188. }
  189. return o.abrupt("return");
  190. case 8:
  191. c.loadingType = "loading", (0, i.spreadPeople)({
  192. page: c.page,
  193. limit: c.limit,
  194. grade: l,
  195. keyword: "",
  196. sort: ""
  197. }).then(function(e) {
  198. var t = e.data;
  199. r.navList[0].num = t.total, r.navList[1].num = t.totalLevel, t.list.length > 0 && (c.orderList = c.orderList.concat(t.list),
  200. console.log(c.orderList), c.page++), c.limit != t.list.length ? (c.loadingType = "noMore",
  201. n.hideLoading(), r.$set(c, "loaded", !0)) : c.loadingType = "more";
  202. }).catch(function(n) {
  203. console.log(n);
  204. });
  205. case 10:
  206. case "end":
  207. return o.stop();
  208. }
  209. }, o);
  210. }))();
  211. },
  212. changeTab: function(n) {
  213. this.tabCurrentIndex = n.target.current, this.loadData("tabChange");
  214. },
  215. tabClick: function(n) {
  216. this.tabCurrentIndex = n;
  217. }
  218. }
  219. };
  220. e.default = c;
  221. }).call(this, t(1).default);
  222. },
  223. 83: function(n, e, t) {
  224. t.r(e);
  225. var o = t(84), r = t.n(o);
  226. for (var a in o) "default" !== a && function(n) {
  227. t.d(e, n, function() {
  228. return o[n];
  229. });
  230. }(a);
  231. e.default = r.a;
  232. },
  233. 84: function(n, e, t) {}
  234. }, [ [ 75, "common/runtime", "common/vendor" ] ] ]);