test(web_view): 添加 ?app=identifier 参数模式

测试用:navigateTo 传 ?app=pregnancy 直接触发 _resolveAppScene
跳过 scene 参数被微信拦截的问题,验证整个 app 解析链路:
  _resolveAppScene("pregnancy", option)
  → 调 box_app /api/mp/apps
  → 匹配 identifier=pregnancy
  → 拿到 App.url
  → 加载 H5

+ 测试按钮改为 ?app=pregnancy
This commit is contained in:
2026-07-08 18:47:45 +08:00
parent 61caf4eb50
commit 985538d957

View File

@@ -638,7 +638,7 @@ export default {
,goWxacodeTest() {
console.log("[user] 太阳码扫码测试");
uni.navigateTo({
url: "/pages/annex/web_view/index?url=https%3A%2F%2Fmp.yizhezhe.com%2Fapp_03%2Fhome"
url: "/pages/annex/web_view/index?app=pregnancy"
});
}
}