"use strict"; Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); const common_vendor = require("./common/vendor.js"); const common_api = require("./common/api.js"); const config = require("./config.js"); if (!Math) { "./pages/index/index.js"; "./pages/home/index.js"; "./pages/login/index.js"; "./pagesHome/agree/index.js"; "./pagesHome/city/index.js"; "./pagesHome/team/index.js"; "./pagesHome/team/info.js"; "./pagesHome/match/index.js"; "./pagesHome/match/info.js"; "./pagesHome/activity/info.js"; "./pagesMy/basic/index.js"; } const _sfc_main = { onLaunch: function() { const that = this; that.forceUpdate(); }, onShow: function() { }, onHide: function() { console.log("App Hide"); }, methods: { // 强制更新 forceUpdate() { let system = common_vendor.index.getSystemInfoSync(); if (system.uniPlatform == "mp-weixin") { const updateManager = common_vendor.index.getUpdateManager(); updateManager.onCheckForUpdate(function(res) { console.log(res.hasUpdate); }); updateManager.onUpdateReady(function(res) { common_vendor.index.showModal({ title: "更新提示", content: "新版本已经准备好,是否重启应用?", success(res2) { if (res2.confirm) { common_vendor.index.clearStorage(); updateManager.applyUpdate(); } } }); }); updateManager.onUpdateFailed(function(res) { console.log(res); console.log("更新失败"); }); } } } }; const App = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/project/足球比赛/match_applet/App.vue"]]); function createApp() { const app = common_vendor.createSSRApp(App); app.config.globalProperties.$api = common_api.requestBase; app.config.globalProperties.$app = common_api.requestApp; app.config.globalProperties.$apifile = common_api.requestFile; app.config.globalProperties.$config = config.config; return { app }; } createApp().app.mount("#app"); exports.createApp = createApp;