From 4dc3c6880890d6dec0c1f02f949f027fbb83ce45 Mon Sep 17 00:00:00 2001 From: Karlcarlo Date: Wed, 8 Jul 2026 18:48:47 +0800 Subject: [PATCH] =?UTF-8?q?test(web=5Fview):=20=E6=B7=BB=E5=8A=A0=20=3Fapp?= =?UTF-8?q?=3Didentifier=20=E5=8F=82=E6=95=B0=E8=B7=B3=E8=BF=87=20scene=20?= =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E8=A7=A3=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/annex/web_view/index.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pages/annex/web_view/index.vue b/pages/annex/web_view/index.vue index 4ca7fb5..b531276 100644 --- a/pages/annex/web_view/index.vue +++ b/pages/annex/web_view/index.vue @@ -110,6 +110,13 @@ export default { console.log("[web_view] !=== onLoad 完整 option:", JSON.stringify(option)); console.log("[web_view] !=== option keys:", JSON.stringify(Object.keys(option))); console.log("[web_view] !=== option.url:", option.url); + console.log("[web_view] !=== option.app:", option.app); + // app 参数模式(测试用):直接传 identifier 跳过 scene + if (option.app) { + console.log("[web_view] app 参数模式: identifier=" + option.app); + this._resolveAppScene(option.app, option); + return; + } // 太阳码 scene 解析:scene="app=" 时调 box_app 查 url // 例如 box_app /api/wxacode?app=pregnancy → scene="app=pregnancy" // CRMEB 收到后查 box_app /api/mp/apps?isPublished=1 找 url,跳对应 H5