From b53ad6ca73e7e2d2071085eb574b0c1eced9f716 Mon Sep 17 00:00:00 2001 From: zongzhimin Date: Tue, 8 May 2018 10:43:36 +0800 Subject: [PATCH 1/2] YOUFANG1.0.3 --- fangija-zsyf/js/push-common.js | 8 ++++++++ 1 file changed, 8 insertions(+) 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; From c3d4f2535f11804b0b8751ec1af1d23f726efdd3 Mon Sep 17 00:00:00 2001 From: gaojuan Date: Tue, 8 May 2018 15:25:54 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E7=BD=AE=E6=8D=A2=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=88=BF=E4=BA=A7=E5=90=8E=E5=88=B7=E6=96=B0=E6=88=91=E7=9A=84?= =?UTF-8?q?=E6=88=BF=E4=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fangija-zsyf/views/house/add.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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");