增加首页有房安卓退出监听

This commit is contained in:
尹吉欢
2018-03-20 10:45:56 +08:00
parent 9e9ca114cc
commit 2725364af0
+10 -1
View File
@@ -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();
}