| | |
| | | 'content-type': 'application/x-www-form-urlencoded', |
| | | }, |
| | | data:{ |
| | | //gid: that.recipientId |
| | | gid: "1" |
| | | gid: that.recipientId |
| | | //gid: "1" |
| | | }, |
| | | success:(res)=> { |
| | | // recAvatar: null,//接收者头像 |
| | |
| | | }else{ |
| | | resdata[i].avatar = resdata[i].avatar; |
| | | } |
| | | |
| | | if(resdata[i].sender_id == that.senId){ |
| | | that.senAvatar = resdata[i].avatar; |
| | | } |
| | | |
| | | } |
| | | let msg = res.data.data; |
| | |
| | | } |
| | | nowTime = t |
| | | let sendMsg = { |
| | | senderId: that.senId, |
| | | recipientId: that.recipientId, |
| | | sender_id: that.senId, |
| | | post_message: e.message, |
| | | message_type: 0, |
| | | status: 0, |
| | | post_time: nowTime, |
| | | avatar:that.senAvatar |
| | | } |
| | | |
| | | uni.request({ |
| | |
| | | messageType: 0, |
| | | status: 0, |
| | | postTime: sentTime, |
| | | gid:that.recipientId |
| | | }, |
| | | success:(res)=> { |
| | | |
| | | } |
| | | }); |
| | | |