This commit is contained in:
Mr.jiang 2024-07-26 16:25:07 +08:00
parent 23b83afc8f
commit dca866d900
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

@ -262,9 +262,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)
} }
}) })
}, },