From 1e26d51d92da53d27e985d3bb3c6dd6dd07646f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=86=8A=E4=B8=BD=E5=90=9B?= <664953382@qq.com> Date: Tue, 17 Aug 2021 17:08:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=BA=E5=B7=A5=E5=AE=A2=E6=9C=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/service.js | 9 +- src/views/customerService.vue | 350 ++++++++++------------------------ 2 files changed, 113 insertions(+), 246 deletions(-) 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 }}