diff --git a/fangija-zsyf/js/push-common.js b/fangija-zsyf/js/push-common.js index 1c9eb7d..27bb1d2 100644 --- a/fangija-zsyf/js/push-common.js +++ b/fangija-zsyf/js/push-common.js @@ -5,6 +5,10 @@ document.addEventListener("plusready", function() { // 监听点击消息事件 plus.push.addEventListener("click", function(msg) { + //刷新个人中心 + if (plus.webview.getWebviewById('views/user/userInfo.html') != null) { + plus.webview.getWebviewById('views/user/userInfo.html').reload(); + } // 判断是从本地创建还是离线推送的消息 var payload = msg.payload; var title = msg.title; @@ -87,6 +91,10 @@ document.addEventListener("plusready", function() { // 监听在线消息事件, iOS透传消息在线时会进入这里进行处理 plus.push.addEventListener("receive", function(msg) { + //刷新个人中心 + if (plus.webview.getWebviewById('views/user/userInfo.html') != null) { + plus.webview.getWebviewById('views/user/userInfo.html').reload(); + } var title = msg.title; var content = msg.content; var payload = msg.payload; diff --git a/fangija-zsyf/views/house/add.html b/fangija-zsyf/views/house/add.html index f8b350d..d8f8f0e 100644 --- a/fangija-zsyf/views/house/add.html +++ b/fangija-zsyf/views/house/add.html @@ -1922,7 +1922,9 @@ function addEvaluation(){ if(source=="changeHouse"){ back(),plus.nativeUI.closeWaiting(); - + if(plus.webview.getWebviewById('views/user/userInfo.html')!= null){ + plus.webview.getWebviewById('views/user/userInfo.html').reload(); + } }else{ $("#evaluation_btn").removeAttr("disabled");