app消息接收发送
This commit is contained in:
@@ -343,7 +343,6 @@ export default {
|
|||||||
*/
|
*/
|
||||||
const _userId = uni.getStorageSync("userId")
|
const _userId = uni.getStorageSync("userId")
|
||||||
|
|
||||||
debugger
|
|
||||||
|
|
||||||
this.pushInMsg({
|
this.pushInMsg({
|
||||||
type: resbody.msgContent.msgType == 'ALERT' ? 3 : 1, //显示类型 1左侧 2右侧 3中间
|
type: resbody.msgContent.msgType == 'ALERT' ? 3 : 1, //显示类型 1左侧 2右侧 3中间
|
||||||
@@ -456,12 +455,10 @@ export default {
|
|||||||
msgTypeLabel = '[视频通话]'
|
msgTypeLabel = '[视频通话]'
|
||||||
}
|
}
|
||||||
console.log(userId)
|
console.log(userId)
|
||||||
debugger
|
|
||||||
store.dispatch('createChatObj', {
|
store.dispatch('createChatObj', {
|
||||||
userId: userId,
|
userId: userId,
|
||||||
windowType: windowType,
|
windowType: windowType,
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
debugger
|
|
||||||
var localData = res.data
|
var localData = res.data
|
||||||
store.dispatch('getchatDatalist');
|
store.dispatch('getchatDatalist');
|
||||||
store.dispatch('getChatList');
|
store.dispatch('getChatList');
|
||||||
|
|||||||
@@ -52,7 +52,6 @@ export default {
|
|||||||
e.data.groupInfo={};
|
e.data.groupInfo={};
|
||||||
e.data.msgId=e.data.messageId;
|
e.data.msgId=e.data.messageId;
|
||||||
|
|
||||||
debugger
|
|
||||||
uni.$emit('onP2PMessage', e.data);
|
uni.$emit('onP2PMessage', e.data);
|
||||||
store.dispatch('onP2PMessage',e.data)
|
store.dispatch('onP2PMessage',e.data)
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -146,7 +146,6 @@ import { createStore } from 'vuex'
|
|||||||
console.log("data.userId:",data.userId)
|
console.log("data.userId:",data.userId)
|
||||||
var userId=data.userId
|
var userId=data.userId
|
||||||
var windowType=data.windowType
|
var windowType=data.windowType
|
||||||
debugger
|
|
||||||
//初始化聊天记录
|
//初始化聊天记录
|
||||||
var data2=publicFc.getKeyObjectStorage(context.state.userInfo.userId+'_'+'chatlistData')
|
var data2=publicFc.getKeyObjectStorage(context.state.userInfo.userId+'_'+'chatlistData')
|
||||||
if(!data2[userId]){
|
if(!data2[userId]){
|
||||||
|
|||||||
Reference in New Issue
Block a user