Files
yuto-water-h5/index.html
Ubuntu 88d1c41cb9 feat: MapLibre integration + app init + deploy
- Map pages wired to real MapLibre engine (MapManager/Factory/composables)
- mapMonitoring page with device markers and popups
- App.vue with keep-alive + route transitions
- main.ts with global error handlers + MapLibre CSS
- index.html with WeChat/WxJSBridge detection
- Deployed to ygcxy.top (nginx-static via Traefik)
2026-06-15 21:39:37 +08:00

31 lines
1.1 KiB
HTML

<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>舆图智慧水务</title>
</head>
<body>
<div id="app"></div>
<!-- WeixinJSBridge 检测 — 判断是否在微信环境中运行 -->
<script>
(function () {
var ua = navigator.userAgent.toLowerCase()
var isWechat = ua.indexOf('micromessenger') !== -1
// 标记微信环境,供应用内业务逻辑判断(如微信 JSSDK 授权)
window.__IS_WEIXIN__ = isWechat
// 如果是微信环境,监听 WeixinJSBridge 就绪事件
if (isWechat) {
document.addEventListener('WeixinJSBridgeReady', function () {
window.__WEIXIN_BRIDGE_READY__ = true
}, false)
}
})()
</script>
<!-- 运行时全局配置 — 开发环境 -->
<script src="/config/globalConfig.dev.js"></script>
<script type="module" src="/src/main.ts"></script>
</body>
</html>