Files
crmeb-mp/pages
Karlcarlo c184108f45 feat(web_view): 太阳码 scene 解析支持 app=identifier
box_app /api/wxacode 新增 app=identifier 模式,scene 编码
"app=<identifier>"。CRMEB 收到后解析 scene,调 box_app
/api/mp/apps 找对应 H5 url,加载应用。

场景示例:
  太阳码 path=pages/annex/web_view/index
  太阳码 scene="app=pregnancy"
  → CRMEB 调 box_app /api/mp/apps
  → 遍历 items 找 identifier=pregnancy 的 App
  → 拿到 App.url
  → 注入到 web-view src
  → 加载孕育无忧 H5

兼容性:
  - 原 ?url=xxx 模式完全保留
  - scene 解析失败/响应异常时降级到 CRMEB 首页
  - 不影响原有分享/复制链接功能

实现细节:
  - 遍历 items 找 identifier(不依赖 items[0] 排序假设)
  - 找不到时回退 items[0](保底)
  - 未来 box_app 支持 ?identifier= 直接过滤时,CRMEB 端无需改动
2026-07-08 16:41:58 +08:00
..