Compare commits

...

2 Commits

Author SHA1 Message Date
Mr.jiang 2ab61d5296 Merge branch 'master' of http://47.115.223.229:8888/yangjun/sadjv3_user 2024-07-26 16:25:14 +08:00
Mr.jiang dca866d900 聊天 2024-07-26 16:25:07 +08:00
2 changed files with 10 additions and 5 deletions

View File

@ -144,8 +144,9 @@
}, },
onLoad(d) { onLoad(d) {
this.userId = this.$queue.getData('userId'); this.userId = this.$queue.getData('userId');
this.byUserId = d.byUserId let scoket = uni.getStorageSync('wbescokt')
this.chatConversationId = d.chatConversationId; this.byUserId = scoket.byUserId
this.chatConversationId = scoket.chatConversationId;
this.connect(); this.connect();
}, },
computed: { computed: {

View File

@ -261,9 +261,13 @@
if (res.data) { if (res.data) {
let id = this.ordersId == res.data.userId ? res.data.focusedUserId : this.ordersId let id = this.ordersId == res.data.userId ? res.data.focusedUserId : this.ordersId
uni.navigateTo({ uni.navigateTo({
url: '/pages/msg/im?chatConversationId=' + res.data.chatConversationId + url: '/pages/msg/im'
'&byUserId=' + res.data.userId });
}) var list={
chatConversationId:res.data.chatConversationId,
byUserId:res.data.userId
}
uni.setStorageSync('wbescokt',list)
} }
}) })
}, },