From 2725364af0b03d134bfc523a3e96a23f6fdb8207 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B9=E5=90=89=E6=AC=A2?= Date: Tue, 20 Mar 2018 10:45:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=A6=96=E9=A1=B5=E6=9C=89?= =?UTF-8?q?=E6=88=BF=E5=AE=89=E5=8D=93=E9=80=80=E5=87=BA=E7=9B=91=E5=90=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fangija-zsyf/js/common.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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(); }