productAll.js 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. (global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/app/productAll" ], {
  2. 348: function(e, n, t) {
  3. (function(e) {
  4. function n(e) {
  5. return e && e.__esModule ? e : {
  6. default: e
  7. };
  8. }
  9. t(4), n(t(2)), e(n(t(349)).default);
  10. }).call(this, t(1).createPage);
  11. },
  12. 349: function(e, n, t) {
  13. t.r(n);
  14. var r = t(350), o = t(352);
  15. for (var a in o) "default" !== a && function(e) {
  16. t.d(n, e, function() {
  17. return o[e];
  18. });
  19. }(a);
  20. t(355);
  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/app/productAll.vue", n.default = i.exports;
  23. },
  24. 350: function(e, n, t) {
  25. t.r(n);
  26. var r = t(351);
  27. t.d(n, "render", function() {
  28. return r.render;
  29. }), t.d(n, "staticRenderFns", function() {
  30. return r.staticRenderFns;
  31. }), t.d(n, "recyclableRender", function() {
  32. return r.recyclableRender;
  33. }), t.d(n, "components", function() {
  34. return r.components;
  35. });
  36. },
  37. 351: function(e, n, t) {
  38. var r;
  39. t.r(n), t.d(n, "render", function() {
  40. return o;
  41. }), t.d(n, "staticRenderFns", function() {
  42. return u;
  43. }), t.d(n, "recyclableRender", function() {
  44. return a;
  45. }), t.d(n, "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 (e) {
  55. if (-1 === e.message.indexOf("Cannot find module") || -1 === e.message.indexOf(".vue")) throw e;
  56. console.error(e.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 e = this;
  61. e.$createElement;
  62. e._self._c;
  63. }, a = !1, u = [];
  64. o._withStripped = !0;
  65. },
  66. 352: function(e, n, t) {
  67. t.r(n);
  68. var r = t(353), o = t.n(r);
  69. for (var a in r) "default" !== a && function(e) {
  70. t.d(n, e, function() {
  71. return r[e];
  72. });
  73. }(a);
  74. n.default = o.a;
  75. },
  76. 353: function(e, n, t) {
  77. (function(e) {
  78. function r(e, n, t, r, o, a, u) {
  79. try {
  80. var i = e[a](u), c = i.value;
  81. } catch (e) {
  82. return void t(e);
  83. }
  84. i.done ? n(c) : Promise.resolve(c).then(r, o);
  85. }
  86. function o(e) {
  87. return function() {
  88. var n = this, t = arguments;
  89. return new Promise(function(o, a) {
  90. function u(e) {
  91. r(c, o, a, u, i, "next", e);
  92. }
  93. function i(e) {
  94. r(c, o, a, u, i, "throw", e);
  95. }
  96. var c = e.apply(n, t);
  97. u(void 0);
  98. });
  99. };
  100. }
  101. function a(e, n) {
  102. var t = Object.keys(e);
  103. if (Object.getOwnPropertySymbols) {
  104. var r = Object.getOwnPropertySymbols(e);
  105. n && (r = r.filter(function(n) {
  106. return Object.getOwnPropertyDescriptor(e, n).enumerable;
  107. })), t.push.apply(t, r);
  108. }
  109. return t;
  110. }
  111. function u(e, n, t) {
  112. return n in e ? Object.defineProperty(e, n, {
  113. value: t,
  114. enumerable: !0,
  115. configurable: !0,
  116. writable: !0
  117. }) : e[n] = t, e;
  118. }
  119. Object.defineProperty(n, "__esModule", {
  120. value: !0
  121. }), n.default = void 0;
  122. var i = function(e) {
  123. return e && e.__esModule ? e : {
  124. default: e
  125. };
  126. }(t(23)), c = t(354), l = (t(27), t(6)), s = {
  127. filters: {
  128. getMoneyStyle: t(82).getMoneyStyle
  129. },
  130. components: {
  131. empty: function() {
  132. t.e("components/empty").then(function() {
  133. return resolve(t(420));
  134. }.bind(null, t)).catch(t.oe);
  135. },
  136. uniLoadMore: function() {
  137. t.e("components/uni-load-more/uni-load-more").then(function() {
  138. return resolve(t(413));
  139. }.bind(null, t)).catch(t.oe);
  140. }
  141. },
  142. computed: function(e) {
  143. for (var n = 1; n < arguments.length; n++) {
  144. var t = null != arguments[n] ? arguments[n] : {};
  145. n % 2 ? a(Object(t), !0).forEach(function(n) {
  146. u(e, n, t[n]);
  147. }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : a(Object(t)).forEach(function(n) {
  148. Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
  149. });
  150. }
  151. return e;
  152. }({}, (0, l.mapState)("user", [ "userInfo" ])),
  153. onReady: function() {},
  154. data: function() {
  155. return {
  156. maxheight: "",
  157. tabCurrentIndex: 0,
  158. userData: {},
  159. userCode: {},
  160. navList: [ {
  161. state: 0,
  162. loadingType: "more",
  163. num: 0,
  164. orderList: [],
  165. page: 1,
  166. limit: 10
  167. } ]
  168. };
  169. },
  170. onLoad: function(e) {
  171. this.loadData(), this.mskList();
  172. },
  173. methods: {
  174. navto: function(n) {
  175. e.navigateTo({
  176. url: n
  177. });
  178. },
  179. mskList: function() {
  180. var e = this;
  181. (0, c.mskList)().then(function(n) {
  182. var t = n.data;
  183. e.userData = t.user, e.userCode = t.user_code;
  184. }).catch(function(e) {
  185. console.log(e);
  186. });
  187. },
  188. loadData: function(n) {
  189. var t = this;
  190. return o(i.default.mark(function r() {
  191. var o, a, u, l;
  192. return i.default.wrap(function(r) {
  193. for (;;) switch (r.prev = r.next) {
  194. case 0:
  195. if (o = t, a = o.tabCurrentIndex, u = o.navList[a], l = u.state, "tabChange" !== n || !0 !== u.loaded) {
  196. r.next = 6;
  197. break;
  198. }
  199. return r.abrupt("return");
  200. case 6:
  201. if ("loading" !== u.loadingType) {
  202. r.next = 8;
  203. break;
  204. }
  205. return r.abrupt("return");
  206. case 8:
  207. u.loadingType = "loading", (0, c.goodsList)({
  208. page: u.page,
  209. limit: u.limit,
  210. grade: l,
  211. keyword: "",
  212. sort: ""
  213. }).then(function(n) {
  214. var t = n.data;
  215. t.length > 0 && (u.orderList = u.orderList.concat(t), console.log(u.orderList),
  216. u.page++), u.limit != t.length ? (u.loadingType = "noMore", e.hideLoading(), o.$set(u, "loaded", !0)) : u.loadingType = "more";
  217. }).catch(function(e) {
  218. console.log(e);
  219. });
  220. case 10:
  221. case "end":
  222. return r.stop();
  223. }
  224. }, r);
  225. }))();
  226. },
  227. changeTab: function(e) {
  228. this.tabCurrentIndex = e.target.current, this.loadData("tabChange");
  229. },
  230. tabClick: function(e) {
  231. this.tabCurrentIndex = e;
  232. }
  233. }
  234. };
  235. n.default = s;
  236. }).call(this, t(1).default);
  237. },
  238. 355: function(e, n, t) {
  239. t.r(n);
  240. var r = t(356), o = t.n(r);
  241. for (var a in r) "default" !== a && function(e) {
  242. t.d(n, e, function() {
  243. return r[e];
  244. });
  245. }(a);
  246. n.default = o.a;
  247. },
  248. 356: function(e, n, t) {}
  249. }, [ [ 348, "common/runtime", "common/vendor" ] ] ]);