app.js 875 B

123456789101112131415161718192021222324252627282930313233
  1. "use strict";
  2. Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
  3. const common_vendor = require("./common/vendor.js");
  4. const utils_request = require("./utils/request.js");
  5. if (!Math) {
  6. "./pages/index/index.js";
  7. "./pages/success/success.js";
  8. "./pages/interview-notice/interview-notice.js";
  9. "./pages/identity-verify/identity-verify.js";
  10. "./pages/face-photo/face-photo.js";
  11. "./pages/camera/camera.js";
  12. "./pages/my/my.js";
  13. }
  14. const _sfc_main = {
  15. onLaunch: function() {
  16. console.log("App Launch");
  17. },
  18. onShow: function() {
  19. console.log("App Show");
  20. },
  21. onHide: function() {
  22. console.log("App Hide");
  23. }
  24. };
  25. function createApp() {
  26. const app = common_vendor.createSSRApp(_sfc_main);
  27. app.config.globalProperties.$http = utils_request.http;
  28. return {
  29. app
  30. };
  31. }
  32. createApp().app.mount("#app");
  33. exports.createApp = createApp;