123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252 |
- (global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/app/productAll" ], {
- 348: function(e, n, t) {
- (function(e) {
- function n(e) {
- return e && e.__esModule ? e : {
- default: e
- };
- }
- t(4), n(t(2)), e(n(t(349)).default);
- }).call(this, t(1).createPage);
- },
- 349: function(e, n, t) {
- t.r(n);
- var r = t(350), o = t(352);
- for (var a in o) "default" !== a && function(e) {
- t.d(n, e, function() {
- return o[e];
- });
- }(a);
- t(355);
- var u = t(13), i = Object(u.default)(o.default, r.render, r.staticRenderFns, !1, null, null, null, !1, r.components, void 0);
- i.options.__file = "pages/app/productAll.vue", n.default = i.exports;
- },
- 350: function(e, n, t) {
- t.r(n);
- var r = t(351);
- t.d(n, "render", function() {
- return r.render;
- }), t.d(n, "staticRenderFns", function() {
- return r.staticRenderFns;
- }), t.d(n, "recyclableRender", function() {
- return r.recyclableRender;
- }), t.d(n, "components", function() {
- return r.components;
- });
- },
- 351: function(e, n, t) {
- var r;
- t.r(n), t.d(n, "render", function() {
- return o;
- }), t.d(n, "staticRenderFns", function() {
- return u;
- }), t.d(n, "recyclableRender", function() {
- return a;
- }), t.d(n, "components", function() {
- return r;
- });
- try {
- r = {
- uniLoadMore: function() {
- return t.e("components/uni-load-more/uni-load-more").then(t.bind(null, 413));
- }
- };
- } catch (e) {
- if (-1 === e.message.indexOf("Cannot find module") || -1 === e.message.indexOf(".vue")) throw e;
- console.error(e.message), console.error("1. 排查组件名称拼写是否正确"), console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),
- console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件");
- }
- var o = function() {
- var e = this;
- e.$createElement;
- e._self._c;
- }, a = !1, u = [];
- o._withStripped = !0;
- },
- 352: function(e, n, t) {
- t.r(n);
- var r = t(353), o = t.n(r);
- for (var a in r) "default" !== a && function(e) {
- t.d(n, e, function() {
- return r[e];
- });
- }(a);
- n.default = o.a;
- },
- 353: function(e, n, t) {
- (function(e) {
- function r(e, n, t, r, o, a, u) {
- try {
- var i = e[a](u), c = i.value;
- } catch (e) {
- return void t(e);
- }
- i.done ? n(c) : Promise.resolve(c).then(r, o);
- }
- function o(e) {
- return function() {
- var n = this, t = arguments;
- return new Promise(function(o, a) {
- function u(e) {
- r(c, o, a, u, i, "next", e);
- }
- function i(e) {
- r(c, o, a, u, i, "throw", e);
- }
- var c = e.apply(n, t);
- u(void 0);
- });
- };
- }
- function a(e, n) {
- var t = Object.keys(e);
- if (Object.getOwnPropertySymbols) {
- var r = Object.getOwnPropertySymbols(e);
- n && (r = r.filter(function(n) {
- return Object.getOwnPropertyDescriptor(e, n).enumerable;
- })), t.push.apply(t, r);
- }
- return t;
- }
- function u(e, n, t) {
- return n in e ? Object.defineProperty(e, n, {
- value: t,
- enumerable: !0,
- configurable: !0,
- writable: !0
- }) : e[n] = t, e;
- }
- Object.defineProperty(n, "__esModule", {
- value: !0
- }), n.default = void 0;
- var i = function(e) {
- return e && e.__esModule ? e : {
- default: e
- };
- }(t(23)), c = t(354), l = (t(27), t(6)), s = {
- filters: {
- getMoneyStyle: 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);
- }
- },
- computed: function(e) {
- for (var n = 1; n < arguments.length; n++) {
- var t = null != arguments[n] ? arguments[n] : {};
- n % 2 ? a(Object(t), !0).forEach(function(n) {
- u(e, n, t[n]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : a(Object(t)).forEach(function(n) {
- Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
- });
- }
- return e;
- }({}, (0, l.mapState)("user", [ "userInfo" ])),
- onReady: function() {},
- data: function() {
- return {
- maxheight: "",
- tabCurrentIndex: 0,
- userData: {},
- userCode: {},
- navList: [ {
- state: 0,
- loadingType: "more",
- num: 0,
- orderList: [],
- page: 1,
- limit: 10
- } ]
- };
- },
- onLoad: function(e) {
- this.loadData(), this.mskList();
- },
- methods: {
- navto: function(n) {
- e.navigateTo({
- url: n
- });
- },
- mskList: function() {
- var e = this;
- (0, c.mskList)().then(function(n) {
- var t = n.data;
- e.userData = t.user, e.userCode = t.user_code;
- }).catch(function(e) {
- console.log(e);
- });
- },
- loadData: function(n) {
- var t = this;
- return o(i.default.mark(function r() {
- var o, a, u, l;
- return i.default.wrap(function(r) {
- for (;;) switch (r.prev = r.next) {
- case 0:
- if (o = t, a = o.tabCurrentIndex, u = o.navList[a], l = u.state, "tabChange" !== n || !0 !== u.loaded) {
- r.next = 6;
- break;
- }
- return r.abrupt("return");
- case 6:
- if ("loading" !== u.loadingType) {
- r.next = 8;
- break;
- }
- return r.abrupt("return");
- case 8:
- u.loadingType = "loading", (0, c.goodsList)({
- page: u.page,
- limit: u.limit,
- grade: l,
- keyword: "",
- sort: ""
- }).then(function(n) {
- var t = n.data;
- t.length > 0 && (u.orderList = u.orderList.concat(t), console.log(u.orderList),
- u.page++), u.limit != t.length ? (u.loadingType = "noMore", e.hideLoading(), o.$set(u, "loaded", !0)) : u.loadingType = "more";
- }).catch(function(e) {
- console.log(e);
- });
- case 10:
- case "end":
- return r.stop();
- }
- }, r);
- }))();
- },
- changeTab: function(e) {
- this.tabCurrentIndex = e.target.current, this.loadData("tabChange");
- },
- tabClick: function(e) {
- this.tabCurrentIndex = e;
- }
- }
- };
- n.default = s;
- }).call(this, t(1).default);
- },
- 355: function(e, n, t) {
- t.r(n);
- var r = t(356), o = t.n(r);
- for (var a in r) "default" !== a && function(e) {
- t.d(n, e, function() {
- return r[e];
- });
- }(a);
- n.default = o.a;
- },
- 356: function(e, n, t) {}
- }, [ [ 348, "common/runtime", "common/vendor" ] ] ]);
|