YOUFANG1.0.3
This commit is contained in:
@@ -5,6 +5,10 @@
|
|||||||
document.addEventListener("plusready", function() {
|
document.addEventListener("plusready", function() {
|
||||||
// 监听点击消息事件
|
// 监听点击消息事件
|
||||||
plus.push.addEventListener("click", function(msg) {
|
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 payload = msg.payload;
|
||||||
var title = msg.title;
|
var title = msg.title;
|
||||||
@@ -87,6 +91,10 @@ document.addEventListener("plusready", function() {
|
|||||||
|
|
||||||
// 监听在线消息事件, iOS透传消息在线时会进入这里进行处理
|
// 监听在线消息事件, iOS透传消息在线时会进入这里进行处理
|
||||||
plus.push.addEventListener("receive", function(msg) {
|
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 title = msg.title;
|
||||||
var content = msg.content;
|
var content = msg.content;
|
||||||
var payload = msg.payload;
|
var payload = msg.payload;
|
||||||
|
|||||||
Reference in New Issue
Block a user