JohnnyHy
JohnnyHy
  • 发布:2019-11-06 16:31
  • 更新:2019-11-06 16:31
  • 阅读:1083

5+app在ios上禁止侧滑返回

分类:HTML5+

在5+项目中,在ios平台上用户登陆之后进入主页index,但仍可侧滑返回登陆注册页,设置popGesture未生效。
尝试过在登录之后的首页index中设置,设置如下:

mui.plusReady(function() {  
            var wv=plus.webview.currentWebview();  
            // 关闭侧滑返回功能  
            wv.setStyle({'popGesture':'none'});  
             mui.init({  
               .......  
             })  
}

尝试过在登陆注册也跳转时候设置popGesture,也无效果,设置如下:

if(/iphone/gi.test(navigator.userAgent) && ((screen.height == 812 && screen.width == 375) ||(screen.height == 896 && screen.width == 414 ))){  
            var sub = plus.webview.create(subpages[i], subpages[i], {  
                        top: "0px",  
                        bottom: "85px",  
                        popGesture:"none",  

                    });  
                }

以上两种设置popGesture均未生效,请问是我设置的代码有问题还是因为ios更新了13的问题

2019-11-06 16:31 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复