fix(web_view): 改用 wxscene 避免 scene 被微信拦截

微信小程序的 navigateTo 会把 `scene` 参数名当作保留字段
(只由扫码填充),导致 `option.scene` 为空。
改用 wxscene,同时在 web_view onLoad 中兼容检查两者。
This commit is contained in:
2026-07-08 18:29:08 +08:00
parent fa74238186
commit 0e9ce6f7d6
2 changed files with 4 additions and 3 deletions

View File

@@ -638,7 +638,7 @@ export default {
,goWxacodeTest() {
console.log("[user] 太阳码扫码测试");
uni.navigateTo({
url: "/pages/annex/web_view/index?scene=app=pregnancy"
url: "/pages/annex/web_view/index?wxscene=app=pregnancy"
});
}
}