diff --git a/fangija-zsyf/js/common.js b/fangija-zsyf/js/common.js index 477d376..7418544 100644 --- a/fangija-zsyf/js/common.js +++ b/fangija-zsyf/js/common.js @@ -11,7 +11,16 @@ function plusReady(){ ws=plus.webview.currentWebview(); // Android处理返回键 plus.key.addEventListener('backbutton',function(){ - back(); + if (ws.id == 'yfindex.html') { + plus.nativeUI.confirm("确认退出",function(e) { + if(e.index == 0) { + plus.runtime.quit(); + } + }); + } else { + back(); + } + },false); compatibleAdjust(); }