diff --git a/my/order/pay.vue b/my/order/pay.vue index f179279..de618c5 100644 --- a/my/order/pay.vue +++ b/my/order/pay.vue @@ -2369,14 +2369,16 @@ export default { goMsg(order) { let data = { userId: uni.getStorageSync('userId'), - focusedUserId: this.ordersId + focusedUserId: '0', + // userName:this.order.userName } + // app/chat/insertChatConversation this.$Request.postJson('/app/chat/insertChatConversation', data).then(res => { - if (res.code == 0) { + 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=' + id + '&byUserId=' + res.data.userId }) } })