增加首页有房安卓退出监听
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user