"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const common_vendor = require("./common/vendor.js");
const utils_share = require("./utils/share.js");
if (!Math) {
  "./pages/index/index.js";
  "./pages/invest/invest.js";
  "./pages/concept/concept.js";
  "./pages/mine/mine.js";
  "./pages/mine/basicInfo/basicInfo.js";
  "./pages/mine/feedback/feedback.js";
  "./pages/mine/commentReply/commentReply.js";
  "./pages/mine/investPreference/investPreference.js";
  "./pages/index/eventDetails/eventDetails.js";
  "./pages/invest/investDetails/investDetails.js";
  "./pages/index/stockDetails/stockDetails.js";
  "./pages/index/conceptDetails/conceptDetails.js";
  "./pages/mine/followCollect/followCollect.js";
  "./pages/mine/myLike/myLike.js";
  "./pages/login/login.js";
  "./pages/login/codeLogin/codeLogin.js";
  "./pages/mine/web/web.js";
  "./pages/concept/historicalTimeline/historicalTimeline.js";
  "./pages/concept/hotStock/hotStock.js";
  "./pages/concept/conceptNewsDetails/conceptNewsDetails.js";
  "./pagesMine/vip/vip.js";
  "./pagesMine/vipMeal/vipMeal.js";
}
const _sfc_main = {
  onLaunch: function() {
    common_vendor.index.__f__("log", "at App.vue:6", "App Launch");
    let windowInfo = common_vendor.index.getWindowInfo();
    common_vendor.provide("statusHeight", windowInfo.statusBarHeight);
    common_vendor.provide("windowWidth", windowInfo.windowWidth);
    common_vendor.provide("safeAreaTop", windowInfo.safeArea.top);
    var safeAreaBottom = windowInfo.safeAreaInsets.bottom;
    let menuButtonInfo = common_vendor.index.getMenuButtonBoundingClientRect();
    common_vendor.provide("navHeight", menuButtonInfo.bottom + menuButtonInfo.top - windowInfo.statusBarHeight);
    common_vendor.provide("menuTop", menuButtonInfo.top);
    common_vendor.provide("menuHeight", menuButtonInfo.height);
    common_vendor.provide("isiPhoneX", safeAreaBottom == 34 ? true : false);
  },
  onShow: function() {
    common_vendor.index.__f__("log", "at App.vue:20", "App Show");
    this.updateManager();
  },
  onHide: function() {
    common_vendor.index.__f__("log", "at App.vue:24", "App Hide");
  },
  globalData: {
    mobileReg: /^1[3456789][0-9]{9}$/
  },
  methods: {
    updateManager() {
      const updateManager = common_vendor.index.getUpdateManager();
      updateManager.onCheckForUpdate((res) => {
        if (res.hasUpdate) {
          common_vendor.index.showModal({
            title: "更新提示",
            content: "检测到新版本，是否下载新版本并重启小程序？",
            success(res2) {
              if (res2.confirm) {
                updateManager.onUpdateReady(() => {
                  common_vendor.index.showModal({
                    title: "更新提示",
                    content: "新版本已经准备好，即将重启应用",
                    showCancel: false,
                    success(res3) {
                      if (res3.confirm) {
                        updateManager.applyUpdate();
                      }
                    }
                  });
                });
              }
            },
            fail(error) {
            }
          });
        }
        updateManager.onUpdateFailed(() => {
          common_vendor.index.showModal({
            title: "更新提示",
            content: "新版本下载失败",
            showCancel: false
          });
        });
      });
    }
  }
};
function createApp() {
  const app = common_vendor.createSSRApp(_sfc_main);
  app.mixin(utils_share.share);
  return {
    app
  };
}
createApp().app.mount("#app");
exports.createApp = createApp;
//# sourceMappingURL=../.sourcemap/mp-weixin/app.js.map
