123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237 |
- (global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/user/myteam" ], {
- 75: function(n, e, t) {
- (function(n) {
- function e(n) {
- return n && n.__esModule ? n : {
- default: n
- };
- }
- t(4), e(t(2)), n(e(t(76)).default);
- }).call(this, t(1).createPage);
- },
- 76: function(n, e, t) {
- t.r(e);
- var o = t(77), r = t(79);
- for (var a in r) "default" !== a && function(n) {
- t.d(e, n, function() {
- return r[n];
- });
- }(a);
- t(83);
- var i = t(13), u = Object(i.default)(r.default, o.render, o.staticRenderFns, !1, null, null, null, !1, o.components, void 0);
- u.options.__file = "pages/user/myteam.vue", e.default = u.exports;
- },
- 77: function(n, e, t) {
- t.r(e);
- var o = t(78);
- t.d(e, "render", function() {
- return o.render;
- }), t.d(e, "staticRenderFns", function() {
- return o.staticRenderFns;
- }), t.d(e, "recyclableRender", function() {
- return o.recyclableRender;
- }), t.d(e, "components", function() {
- return o.components;
- });
- },
- 78: function(n, e, t) {
- var o;
- t.r(e), t.d(e, "render", function() {
- return r;
- }), t.d(e, "staticRenderFns", function() {
- return i;
- }), t.d(e, "recyclableRender", function() {
- return a;
- }), t.d(e, "components", function() {
- return o;
- });
- try {
- o = {
- uniLoadMore: function() {
- return t.e("components/uni-load-more/uni-load-more").then(t.bind(null, 413));
- }
- };
- } catch (n) {
- if (-1 === n.message.indexOf("Cannot find module") || -1 === n.message.indexOf(".vue")) throw n;
- console.error(n.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 n = this;
- n.$createElement;
- n._self._c;
- }, a = !1, i = [];
- r._withStripped = !0;
- },
- 79: function(n, e, t) {
- t.r(e);
- var o = t(80), r = t.n(o);
- for (var a in o) "default" !== a && function(n) {
- t.d(e, n, function() {
- return o[n];
- });
- }(a);
- e.default = r.a;
- },
- 80: function(n, e, t) {
- (function(n) {
- function o(n, e, t, o, r, a, i) {
- try {
- var u = n[a](i), c = u.value;
- } catch (n) {
- return void t(n);
- }
- u.done ? e(c) : Promise.resolve(c).then(o, r);
- }
- function r(n) {
- return function() {
- var e = this, t = arguments;
- return new Promise(function(r, a) {
- function i(n) {
- o(c, r, a, i, u, "next", n);
- }
- function u(n) {
- o(c, r, a, i, u, "throw", n);
- }
- var c = n.apply(e, t);
- i(void 0);
- });
- };
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- }), e.default = void 0;
- var a = function(n) {
- return n && n.__esModule ? n : {
- default: n
- };
- }(t(23)), i = t(81), u = t(27), c = {
- filters: {
- getMoneyStyle: (t(6), 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 e = this;
- n.createSelectorQuery().select(".content").fields({
- size: !0
- }, function(n) {
- e.maxheight = 940;
- }).exec();
- },
- data: function() {
- return {
- userInfo: {},
- maxheight: "",
- tabCurrentIndex: 0,
- navList: [ {
- state: 0,
- text: "一级团队",
- loadingType: "more",
- num: 0,
- orderList: [],
- page: 1,
- limit: 10
- }, {
- state: 1,
- text: "二级团队",
- num: 0,
- loadingType: "more",
- orderList: [],
- page: 1,
- limit: 10
- } ],
- money: ""
- };
- },
- onLoad: function(n) {},
- onShow: function() {
- this.loadData();
- var n = this;
- (0, u.userinfo)({}).then(function(e) {
- var t = e.data;
- console.log(t), n.userInfo = t;
- }).catch(function(n) {});
- },
- methods: {
- navto: function(e) {
- n.navigateTo({
- url: e
- });
- },
- loadData: function(e) {
- var t = this;
- return r(a.default.mark(function o() {
- var r, u, c, l;
- return a.default.wrap(function(o) {
- for (;;) switch (o.prev = o.next) {
- case 0:
- if (r = t, u = r.tabCurrentIndex, c = r.navList[u], l = c.state, "tabChange" !== e || !0 !== c.loaded) {
- o.next = 6;
- break;
- }
- return o.abrupt("return");
- case 6:
- if ("loading" !== c.loadingType) {
- o.next = 8;
- break;
- }
- return o.abrupt("return");
- case 8:
- c.loadingType = "loading", (0, i.spreadPeople)({
- page: c.page,
- limit: c.limit,
- grade: l,
- keyword: "",
- sort: ""
- }).then(function(e) {
- var t = e.data;
- r.navList[0].num = t.total, r.navList[1].num = t.totalLevel, t.list.length > 0 && (c.orderList = c.orderList.concat(t.list),
- console.log(c.orderList), c.page++), c.limit != t.list.length ? (c.loadingType = "noMore",
- n.hideLoading(), r.$set(c, "loaded", !0)) : c.loadingType = "more";
- }).catch(function(n) {
- console.log(n);
- });
- case 10:
- case "end":
- return o.stop();
- }
- }, o);
- }))();
- },
- changeTab: function(n) {
- this.tabCurrentIndex = n.target.current, this.loadData("tabChange");
- },
- tabClick: function(n) {
- this.tabCurrentIndex = n;
- }
- }
- };
- e.default = c;
- }).call(this, t(1).default);
- },
- 83: function(n, e, t) {
- t.r(e);
- var o = t(84), r = t.n(o);
- for (var a in o) "default" !== a && function(n) {
- t.d(e, n, function() {
- return o[n];
- });
- }(a);
- e.default = r.a;
- },
- 84: function(n, e, t) {}
- }, [ [ 75, "common/runtime", "common/vendor" ] ] ]);
|