在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的问题
0 个回复