app.js 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. "use strict";
  2. Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
  3. const common_vendor = require("./common/vendor.js");
  4. const sheep_index = require("./sheep/index.js");
  5. const sheep_hooks_useModal = require("./sheep/hooks/useModal.js");
  6. const sheep_store_index = require("./sheep/store/index.js");
  7. require("./sheep/api/index.js");
  8. require("./sheep/api/distri/score.js");
  9. require("./sheep/request/index.js");
  10. require("./sheep/config/index.js");
  11. require("./sheep/platform/index.js");
  12. require("./sheep/platform/provider/wechat/index.js");
  13. require("./sheep/platform/provider/wechat/miniProgram.js");
  14. require("./sheep/api/member/auth.js");
  15. require("./sheep/api/member/social.js");
  16. require("./sheep/api/member/user.js");
  17. require("./sheep/platform/provider/apple/index.js");
  18. require("./sheep/platform/share.js");
  19. require("./sheep/router/index.js");
  20. require("./sheep/helper/throttle.js");
  21. require("./sheep/url/index.js");
  22. require("./sheep/platform/pay.js");
  23. require("./sheep/helper/index.js");
  24. require("./sheep/helper/test.js");
  25. require("./sheep/helper/digit.js");
  26. require("./sheep/api/pay/order.js");
  27. require("./sheep/api/distri/share.js");
  28. require("./sheep/api/distri/team.js");
  29. require("./sheep/api/infra/file.js");
  30. require("./sheep/api/member/address.js");
  31. require("./sheep/api/member/point.js");
  32. require("./sheep/api/member/signin.js");
  33. require("./sheep/api/migration/app.js");
  34. require("./sheep/api/migration/chat.js");
  35. require("./sheep/api/migration/index.js");
  36. require("./sheep/api/migration/third.js");
  37. require("./sheep/api/pay/channel.js");
  38. require("./sheep/api/pay/wallet.js");
  39. require("./sheep/api/product/category.js");
  40. require("./sheep/api/product/comment.js");
  41. require("./sheep/api/product/favorite.js");
  42. require("./sheep/api/product/history.js");
  43. require("./sheep/api/product/spu.js");
  44. require("./sheep/api/promotion/activity.js");
  45. require("./sheep/api/promotion/article.js");
  46. require("./sheep/api/promotion/bargain.js");
  47. require("./sheep/api/promotion/combination.js");
  48. require("./sheep/api/promotion/coupon.js");
  49. require("./sheep/api/promotion/diy.js");
  50. require("./sheep/api/promotion/rewardActivity.js");
  51. require("./sheep/api/promotion/seckill.js");
  52. require("./sheep/api/system/area.js");
  53. require("./sheep/api/system/voice.js");
  54. require("./sheep/api/trade/afterSale.js");
  55. require("./sheep/api/trade/brokerage.js");
  56. require("./sheep/api/trade/cart.js");
  57. require("./sheep/api/trade/config.js");
  58. require("./sheep/api/trade/delivery.js");
  59. require("./sheep/api/trade/order.js");
  60. require("./sheep/config/zIndex.js");
  61. require("./sheep/store/app.js");
  62. require("./sheep/store/user.js");
  63. require("./sheep/store/cart.js");
  64. require("./sheep/store/sys.js");
  65. require("./sheep/store/modal.js");
  66. if (!Math) {
  67. "./pages/index/index.js";
  68. "./pages/index/user.js";
  69. "./pages/index/category.js";
  70. "./pages/index/cart.js";
  71. "./pages/index/login.js";
  72. "./pages/index/search.js";
  73. "./pages/index/page.js";
  74. "./pages/goods/index.js";
  75. "./pages/goods/groupon.js";
  76. "./pages/goods/seckill.js";
  77. "./pages/goods/list.js";
  78. "./pages/goods/comment/add.js";
  79. "./pages/goods/comment/list.js";
  80. "./pages/order/detail.js";
  81. "./pages/order/confirm.js";
  82. "./pages/order/list.js";
  83. "./pages/order/aftersale/apply.js";
  84. "./pages/order/aftersale/return-delivery.js";
  85. "./pages/order/aftersale/list.js";
  86. "./pages/order/aftersale/detail.js";
  87. "./pages/order/aftersale/log.js";
  88. "./pages/order/express/log.js";
  89. "./pages/order/otherlist.js";
  90. "./pages/user/info.js";
  91. "./pages/user/setting.js";
  92. "./pages/user/qrcode-share.js";
  93. "./pages/user/goods-collect.js";
  94. "./pages/user/goods-log.js";
  95. "./pages/user/address/list.js";
  96. "./pages/user/dummyAddress/list.js";
  97. "./pages/user/invoice/edit.js";
  98. "./pages/user/invoice/list.js";
  99. "./pages/user/address/edit.js";
  100. "./pages/user/dummyAddress/edit.js";
  101. "./pages/user/wallet/money.js";
  102. "./pages/user/wallet/score.js";
  103. "./pages/user/wallet/scoreToMoney.js";
  104. "./pages/user/wallet/ScoreLog.js";
  105. "./pages/user/wallet/maxScoreLog.js";
  106. "./pages/user/wallet/team.js";
  107. "./pages/commission/index.js";
  108. "./pages/commission/wallet.js";
  109. "./pages/commission/goods.js";
  110. "./pages/commission/order.js";
  111. "./pages/commission/team.js";
  112. "./pages/commission/promoter.js";
  113. "./pages/commission/commission-ranking.js";
  114. "./pages/commission/withdraw.js";
  115. "./pages/app/sign.js";
  116. "./pages/shop/index.js";
  117. "./pages/public/setting.js";
  118. "./pages/public/richtext.js";
  119. "./pages/public/faq.js";
  120. "./pages/public/error.js";
  121. "./pages/public/webview.js";
  122. "./pages/coupon/list.js";
  123. "./pages/coupon/detail.js";
  124. "./pages/chat/index.js";
  125. "./pages/chat/speechtotext.js";
  126. "./pages/pay/index.js";
  127. "./pages/pay/result.js";
  128. "./pages/pay/recharge.js";
  129. "./pages/pay/recharge-log.js";
  130. "./pages/activity/groupon/detail.js";
  131. "./pages/activity/groupon/order.js";
  132. "./pages/activity/index.js";
  133. "./pages/activity/groupon/list.js";
  134. "./pages/activity/seckill/list.js";
  135. "./pages/activity/bargain/list.js";
  136. "./pages/activity/bargain/detail.js";
  137. }
  138. const _sfc_main = {
  139. __name: "App",
  140. setup(__props) {
  141. common_vendor.onShow((options) => {
  142. sheep_hooks_useModal.autoSign();
  143. });
  144. common_vendor.onHide(() => {
  145. sheep_hooks_useModal.cancelAutoSign();
  146. });
  147. common_vendor.onLaunch(() => {
  148. common_vendor.index.hideTabBar();
  149. sheep_index.ShoproInit();
  150. sheep_hooks_useModal.resetSignStatusIfNeeded();
  151. });
  152. common_vendor.onError((err) => {
  153. console.log("AppOnError:", err);
  154. });
  155. return () => {
  156. };
  157. }
  158. };
  159. const App = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/zx/mall-front-app/App.vue"]]);
  160. function clearLinkId() {
  161. common_vendor.index.removeStorageSync("linkId");
  162. console.log("五分钟,清了linkId");
  163. }
  164. setInterval(clearLinkId, 3e5);
  165. function createApp() {
  166. const app = common_vendor.createSSRApp(App);
  167. sheep_store_index.setupPinia(app);
  168. return {
  169. app
  170. };
  171. }
  172. createApp().app.mount("#app");
  173. exports.createApp = createApp;