小程序中使用了自定义顶部栏 跳转外部页面时(web-view) 点击顶部导航栏中的返回按钮无法返回

小程序 文章 2022-03-04 19:20 471 0 全屏看文

AI助手支持GPT4.0

小程序中使用了自定义顶部栏 跳转外部页面时(web-view) 点击顶部导航栏中的返回按钮无法返回A custom top bar is used in the applet. When jumping to an external page (web-view), you cannot return by clicking the back button in the top navigation bar

小程序中使用了自定义顶部栏 跳转外部页面时(web-view) 点击顶部导航栏中的返回按钮无法返回
框架类型 问题类型 操作系统 操作系统版本 手机型号 微信版本
小程序 Bug Android HarmonyOs 2.0.0, Android 11 华为P40, 小米8 8.0.19
  1. 点击跳转外部页
  2. 点击播放
  3. 点击返回按钮

无法返回上一页

期望: 可以正常返回上一页

Frame type problem type operating system operating system version mobile phone model wechat version applet bug Android harmony OS 2.0.0, Android 11 Huawei P40, Xiaomi 8.0.19 Click to jump to the external page, click play and click the return button to return to the previous page. Expectation: you can return to the previous page normally

回答:

我觉得我的狗头真是无处安放:

什么情况下 web-view中嵌入的页面会让小程序本身的返回按钮失效呢

岁月静好:我在家里吗
Charlie:

不用自定义导航栏会这样吗

我觉得我的狗头真是无处安放:刚刚试了下  也会返回不了额
Charlie:我也用的鸿蒙,没问题啊,你贴代码吧
我觉得我的狗头真是无处安放:可能是嵌入的b站网页版的问题  我这边跳转普通的视频播放页点击播放再返回是没问题的

-EOF-

AI助手支持GPT4.0