This commit is contained in:
Mr.jiang 2024-07-24 23:54:42 +08:00
parent ee6e827232
commit ec1fa523a7
1 changed files with 5 additions and 3 deletions

View File

@ -2369,14 +2369,16 @@ export default {
goMsg(order) { goMsg(order) {
let data = { let data = {
userId: uni.getStorageSync('userId'), 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 => { 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 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?chatConversationId=' + res.data.chatConversationId +
'&byUserId=' + id '&byUserId=' + res.data.userId
}) })
} }
}) })