- 使用 uni-app + Vue 3 + Composition API 重写 H5 用户端 - 6 个页面:登录、首页、设备列表、设备详情、仓体详情、个人中心 - Pinia 状态管理 + API 层封装 - TabBar 导航(首页/设备/我的) - 已构建并部署到服务器 /data/pms/h5/ - 登录页渲染正常,布局完整
24 lines
650 B
HTML
24 lines
650 B
HTML
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
|
<title>安知充</title>
|
|
<script>
|
|
// 扫码入口:提取 abstract_id 并重写路由
|
|
;(function () {
|
|
var path = window.location.pathname;
|
|
var match = path.match(/\/h5\/(\d{2}-\d{8})/);
|
|
if (match) {
|
|
window.__SCAN_ABSTRACT_ID__ = match[1];
|
|
window.history.replaceState({}, '', '/h5/');
|
|
}
|
|
})();
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div id="app"></div>
|
|
<script type="module" src="/src/main.ts"></script>
|
|
</body>
|
|
</html>
|