diff --git a/src/api/service.js b/src/api/service.js index a030268..3144fcc 100644 --- a/src/api/service.js +++ b/src/api/service.js @@ -1,7 +1,14 @@ import request from '@/utils/request'; +// 获取和某个好友的聊天记录 +export function getChatRecords(params) { + return request({ + url: '/chat/getChatRecords', + params + }); +} // 给某人发送信息 -export function send(data) { +export function sendMsg(data) { return request({ url: '/chat/send', method: 'post', diff --git a/src/views/customerService.vue b/src/views/customerService.vue index 52e875c..df40816 100644 --- a/src/views/customerService.vue +++ b/src/views/customerService.vue @@ -9,7 +9,7 @@
{{ item.send_con }}
+ +{{ item.sendText }}
- {{ item_msg.msgInfo }} -
-{{ item.send_con }}
-{{ item.sendText }}