main
15004070936 3 weeks ago
parent a04e88a03b
commit dc8f3a905c

@ -89,10 +89,15 @@
// url: `/pages/chatbox/chat` // url: `/pages/chatbox/chat`
// }); // });
// } // }
let chat = {
uni.reLaunch({ type: 'GROUP',
url: `/pages/chatbox/chat` targetId: extras.groupId,
}); showName: '加载中...',
headImage: '/static/image/kf.png',
};
this.$store.dispatch('chatStore/openChat', chat);
let chatIdx = this.$store.getters['chatStore/findChatIdx'](chat)
uni.reLaunch({url: `/pages/chatbox/chat-box?chatIdx=${chatIdx}`});
} }
if(extras && extras.type && extras.type == 'privateMessage') { if(extras && extras.type && extras.type == 'privateMessage') {
// //
@ -108,8 +113,16 @@
// url: `/pages/chatbox/chat` // url: `/pages/chatbox/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.reLaunch({ uni.reLaunch({
url: `/pages/chatbox/chat` url: `/pages/chatbox/chat-box?chatIdx=${chatIdx}`
}); });
} }
}) })

Loading…
Cancel
Save