|
|
|
|
@ -75,44 +75,44 @@
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
// 预约课程列表
|
|
|
|
|
uni.reLaunch({
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: `/pages/book/booklist`
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if(extras && extras.type && extras.type == 'groupMessage') {
|
|
|
|
|
// 群聊消息
|
|
|
|
|
// let chat = {
|
|
|
|
|
// type: 'GROUP',
|
|
|
|
|
// targetId: extras.groupId,
|
|
|
|
|
// showName: '加载中...',
|
|
|
|
|
// headImage: '/static/image/kf.png',
|
|
|
|
|
// };
|
|
|
|
|
// this.$store.dispatch('chatStore/openChat', chat);
|
|
|
|
|
// let chatIdx = this.$store.getters['chatStore/findChatIdx'](chat);
|
|
|
|
|
let chat = {
|
|
|
|
|
type: 'GROUP',
|
|
|
|
|
targetId: extras.groupId,
|
|
|
|
|
showName: '加载中...',
|
|
|
|
|
headImage: '/static/image/kf.png',
|
|
|
|
|
};
|
|
|
|
|
this.$store.dispatch('chatStore/openChat', chat);
|
|
|
|
|
let chatIdx = this.$store.getters['chatStore/findChatIdx'](chat);
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: `/pages/chatbox/chat-box?chatIdx=${chatIdx}`
|
|
|
|
|
});
|
|
|
|
|
// uni.reLaunch({
|
|
|
|
|
// url: `/pages/chatbox/chat-box?chatIdx=${chatIdx}`
|
|
|
|
|
// url: `/pages/chatbox/chat`
|
|
|
|
|
// });
|
|
|
|
|
uni.reLaunch({
|
|
|
|
|
url: `/pages/chatbox/chat`
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
if(extras && extras.type && extras.type == 'privateMessage') {
|
|
|
|
|
// 私信消息
|
|
|
|
|
// let chat = {
|
|
|
|
|
// type: 'PRIVATE',
|
|
|
|
|
// targetId: extras.senderId,
|
|
|
|
|
// showName: '加载中...',
|
|
|
|
|
// headImage: '/static/image/kf.png',
|
|
|
|
|
// };
|
|
|
|
|
// this.$store.dispatch('chatStore/openChat', chat);
|
|
|
|
|
// let chatIdx = this.$store.getters['chatStore/findChatIdx'](chat)
|
|
|
|
|
let chat = {
|
|
|
|
|
type: 'PRIVATE',
|
|
|
|
|
targetId: extras.senderId,
|
|
|
|
|
showName: '加载中...',
|
|
|
|
|
headImage: '/static/image/kf.png',
|
|
|
|
|
};
|
|
|
|
|
this.$store.dispatch('chatStore/openChat', chat);
|
|
|
|
|
let chatIdx = this.$store.getters['chatStore/findChatIdx'](chat)
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: `/pages/chatbox/chat-box?chatIdx=${chatIdx}`
|
|
|
|
|
});
|
|
|
|
|
// uni.reLaunch({
|
|
|
|
|
// url: `/pages/chatbox/chat-box?chatIdx=${chatIdx}`
|
|
|
|
|
// url: `/pages/chatbox/chat`
|
|
|
|
|
// });
|
|
|
|
|
uni.reLaunch({
|
|
|
|
|
url: `/pages/chatbox/chat`
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(!extras){
|
|
|
|
|
@ -121,6 +121,12 @@
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 消息推送事件
|
|
|
|
|
if (notificationEventType == 'notificationArrived') {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
jpushModule.getRegistrationID(result => {
|
|
|
|
|
console.log("极光推送--注册ID", result.registerID)
|
|
|
|
|
|