Merge branch 'YOUFANGAPP1.1.1' of 192.168.0.27:dev0/youfang-app into YOUFANGAPP1.1.1

This commit is contained in:
raoyanhui
2018-05-08 15:34:28 +08:00
2 changed files with 11 additions and 1 deletions
+8
View File
@@ -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;
+3 -1
View File
@@ -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");