"use strict"; Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); const common_vendor = require("./common/vendor.js"); const utils_homeApi = require("./utils/homeApi.js"); const common_assets = require("./common/assets.js"); if (!Math) { "./pages/index/index.js"; "./pages/webview/index.js"; "./pages/riskWarn/index.js"; "./pages/mine/index.js"; "./pages/news/index.js"; "./pages/news/detail.js"; "./pages/quesNaire/index.js"; "./pages/concern/concern.js"; "./pages/snapshot/snapshot.js"; "./pages/instructions/instructions.js"; "./pages/forum/index.js"; "./pages/projectHM/project.js"; "./pages/projectHM/detail.js"; "./pages/projectHM/projectAll.js"; } const _sfc_main = { onLaunch: () => { common_vendor.index.login({ provider: "weixin", success: (res) => { console.log("微信小程序登录code--", res); utils_homeApi.wechartLogin({ jsCode: res.code }).then((res2) => { if (res2.code == 200 && res2.data.openId) { common_vendor.index.setStorageSync("openidXGWXMN", res2.data.openId); utils_homeApi.getWechartMiniuserByOpenId({ openId: res2.data.openId }).then((res3) => { if (res3.code == 200) { common_vendor.index.setStorageSync("userIdXGWXMN", res3.data.id); common_vendor.index.setStorageSync("nickNameXGWXMN", res3.data.nickName || "微信昵称"); common_vendor.index.setStorageSync("headImgXGWXMN", res3.data.coverPhotosFileList.length > 0 ? res3.data.coverPhotosFileList[0].url : common_assets.defaultHeadImg); common_vendor.index.setStorageSync("authStatusXGWXMN", res3.data.authStatus); } }); } else { console.log("登录失败", res.msg); } }); } }); }, onShow: () => { }, onHide: () => { } }; const App = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "E:/项目/孝感海绵城市/XiaoGanWXMini/App.vue"]]); function createApp() { const app = common_vendor.createSSRApp(App); return { app }; } createApp().app.mount("#app"); exports.createApp = createApp;