factory/.codex/memory/reference_wrapper_apps.md

9 lines
771 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Web 前端的两个套壳 App
`ehs_web` 的 h5x 页面还由两个 WebView 壳工程加载:
- 原生 Android 壳:`C:\Users\caoqi\AndroidStudioProjects\BxErp`,包名 `com.example.bxerp`。核心入口是 `app/src/main/java/com/example/bxerp/MainActivity.kt`,通过 `window.Android` 暴露扫码能力,常用交互为 `Android.openScanner()` 和页面回调 `onScanResult(data)`
- uni-app 壳:`D:\projects\mp_shell`Vue 3/HBuilderX 工程应用名“光芯ERP”。`pages/index/index.vue` 使用 `<web-view>` 加载 h5x并处理返回键与状态栏适配。
修改 h5x 的扫码、返回键或 WebView 消息交互时,应检查这两个壳的约定。工程位置和加载地址可能随部署变化,操作前以当前本地代码为准。