一、單個(gè)頁面禁用
1.在page.json頁面中找到對應(yīng)頁面配置中添加"popGesture": "none"
"style": {
"navigationBarTitleText": "試聽詳情"
"navigationStyle": "custom",
"disableSwipeBack": "true",
"app-plus": {
"popGesture": "none"
}
}
2.再去對應(yīng)頁面onLoad方法中添加
// ios側(cè)滑返回功能(關(guān)閉)
plus.webview.currentWebview().setStyle({
'popGesture': 'none'
});
即可處理單個(gè)頁面左滑禁用
二、整個(gè)項(xiàng)目禁用
在manifest.json頁面中添加"popGesture": "none"
"app-plus" : {
"popGesture": "none", // 側(cè)滑返回功能
}