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) } }) },