From dca866d9002d70ff8ba10b2742052561510f7bf8 Mon Sep 17 00:00:00 2001 From: "Mr.jiang" <714156421@qq.com> Date: Fri, 26 Jul 2024 16:25:07 +0800 Subject: [PATCH] =?UTF-8?q?=E8=81=8A=E5=A4=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/msg/im.vue | 5 +++-- pages/my/index.vue | 10 +++++++--- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/pages/msg/im.vue b/pages/msg/im.vue index c2b5600..f611134 100644 --- a/pages/msg/im.vue +++ b/pages/msg/im.vue @@ -144,8 +144,9 @@ }, onLoad(d) { this.userId = this.$queue.getData('userId'); - this.byUserId = d.byUserId - this.chatConversationId = d.chatConversationId; + let scoket = uni.getStorageSync('wbescokt') + this.byUserId = scoket.byUserId + this.chatConversationId = scoket.chatConversationId; this.connect(); }, computed: { diff --git a/pages/my/index.vue b/pages/my/index.vue index a131e57..59b81db 100644 --- a/pages/my/index.vue +++ b/pages/my/index.vue @@ -262,9 +262,13 @@ if (res.data) { let id = this.ordersId == res.data.userId ? res.data.focusedUserId : this.ordersId uni.navigateTo({ - url: '/pages/msg/im?chatConversationId=' + res.data.chatConversationId + - '&byUserId=' + res.data.userId - }) + url: '/pages/msg/im' + }); + var list={ + chatConversationId:res.data.chatConversationId, + byUserId:res.data.userId + } + uni.setStorageSync('wbescokt',list) } }) },