main.js 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. (global.webpackJsonp = global.webpackJsonp || []).push([ [ "common/main" ], [ function(e, t, n) {
  2. (function(e, t) {
  3. function r(e) {
  4. return e && e.__esModule ? e : {
  5. default: e
  6. };
  7. }
  8. function o(e, t) {
  9. var n = Object.keys(e);
  10. if (Object.getOwnPropertySymbols) {
  11. var r = Object.getOwnPropertySymbols(e);
  12. t && (r = r.filter(function(t) {
  13. return Object.getOwnPropertyDescriptor(e, t).enumerable;
  14. })), n.push.apply(n, r);
  15. }
  16. return n;
  17. }
  18. function u(e, t, n) {
  19. return t in e ? Object.defineProperty(e, t, {
  20. value: n,
  21. enumerable: !0,
  22. configurable: !0,
  23. writable: !0
  24. }) : e[t] = n, e;
  25. }
  26. n(4);
  27. var i = r(n(2)), c = r(n(5)), a = r(n(8));
  28. i.default.config.productionTip = !1, i.default.prototype.$fire = new i.default(),
  29. i.default.prototype.$store = c.default, i.default.prototype.$api = {
  30. msg: function(t) {
  31. var n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 1500, r = arguments.length > 2 && void 0 !== arguments[2] && arguments[2], o = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : "none";
  32. !1 !== Boolean(t) && e.showToast({
  33. title: t,
  34. duration: n,
  35. mask: r,
  36. icon: o
  37. });
  38. },
  39. prePage: function() {
  40. console.log("请求")
  41. var e = getCurrentPages();
  42. return e[e.length - 2].$vm;
  43. }
  44. }, a.default.mpType = "app";
  45. var f = new i.default(function(e) {
  46. for (var t = 1; t < arguments.length; t++) {
  47. var n = null != arguments[t] ? arguments[t] : {};
  48. t % 2 ? o(Object(n), !0).forEach(function(t) {
  49. u(e, t, n[t]);
  50. }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : o(Object(n)).forEach(function(t) {
  51. Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
  52. });
  53. }
  54. return e;
  55. }({}, a.default));
  56. t(f).$mount();
  57. }).call(this, n(1).default, n(1).createApp);
  58. }, , , , , , , , function(e, t, n) {
  59. n.r(t);
  60. var r = n(9);
  61. for (var o in r) "default" !== o && function(e) {
  62. n.d(t, e, function() {
  63. return r[e];
  64. });
  65. }(o);
  66. n(11);
  67. var u = n(13), i = Object(u.default)(r.default, void 0, void 0, !1, null, null, null, !1, void 0, void 0);
  68. i.options.__file = "App.vue", t.default = i.exports;
  69. }, function(e, t, n) {
  70. n.r(t);
  71. var r = n(10), o = n.n(r);
  72. for (var u in r) "default" !== u && function(e) {
  73. n.d(t, e, function() {
  74. return r[e];
  75. });
  76. }(u);
  77. t.default = o.a;
  78. }, function(e, t, n) {
  79. (function(e) {
  80. function r(e, t) {
  81. var n = Object.keys(e);
  82. if (Object.getOwnPropertySymbols) {
  83. var r = Object.getOwnPropertySymbols(e);
  84. t && (r = r.filter(function(t) {
  85. return Object.getOwnPropertyDescriptor(e, t).enumerable;
  86. })), n.push.apply(n, r);
  87. }
  88. return n;
  89. }
  90. function o(e, t, n) {
  91. return t in e ? Object.defineProperty(e, t, {
  92. value: n,
  93. enumerable: !0,
  94. configurable: !0,
  95. writable: !0
  96. }) : e[t] = n, e;
  97. }
  98. Object.defineProperty(t, "__esModule", {
  99. value: !0
  100. }), t.default = void 0;
  101. var u = {
  102. data: function() {
  103. return {};
  104. },
  105. onLaunch: function(t) {
  106. var n = this;
  107. (e.getStorageSync("userInfo") || "").uid && (n.login(), e.getStorage({
  108. key: "userInfo",
  109. success: function(e) {
  110. n.setUserInfo(e.data);
  111. }
  112. }));
  113. },
  114. onShow: function() {},
  115. onHide: function() {},
  116. methods: function(e) {
  117. for (var t = 1; t < arguments.length; t++) {
  118. var n = null != arguments[t] ? arguments[t] : {};
  119. t % 2 ? r(Object(n), !0).forEach(function(t) {
  120. o(e, t, n[t]);
  121. }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : r(Object(n)).forEach(function(t) {
  122. Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
  123. });
  124. }
  125. return e;
  126. }({}, (0, n(6).mapMutations)("user", [ "setUserInfo", "login", "hasLogin" ]))
  127. };
  128. t.default = u;
  129. }).call(this, n(1).default);
  130. }, function(e, t, n) {
  131. n.r(t);
  132. var r = n(12), o = n.n(r);
  133. for (var u in r) "default" !== u && function(e) {
  134. n.d(t, e, function() {
  135. return r[e];
  136. });
  137. }(u);
  138. t.default = o.a;
  139. }, function(e, t, n) {} ], [ [ 0, "common/runtime", "common/vendor" ] ] ]);