From 71593c5df8cf8664c6a57d75eaad0b02dd63e1b8 Mon Sep 17 00:00:00 2001 From: lynn Date: Wed, 2 Jul 2025 18:09:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E4=BE=9B=E9=9C=80=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E5=AF=B9=E8=AF=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/http.api.js | 9 ++ packages/chat/chatWindow.vue | 282 ++++++++++++++++++++++++++++++----- packages/chat/index.vue | 135 +++++++++++------ packages/supply/index.vue | 6 +- 4 files changed, 344 insertions(+), 88 deletions(-) diff --git a/common/http.api.js b/common/http.api.js index ef64fc3..04505ff 100644 --- a/common/http.api.js +++ b/common/http.api.js @@ -42,6 +42,9 @@ let apiApp = { supplyDemandSave: '/api/mobile/supply-demand/save', supplyDemandList: '/api/mobile/supply-demand/index', supplyDemandDetail: '/api/mobile/supply-demand/detail', + supplyDemandMessageList: '/api/mobile/supply-demand/message-list', + supplyDemandSendMessage: '/api/mobile/supply-demand/send-message', + supplyDemandDialogues: '/api/mobile/supply-demand/dialogues', // 图书 bookIndex: '/api/mobile/book/index', @@ -99,6 +102,9 @@ const install = (Vue, vm) => { let supplyDemandSave = (params = {}) => vm.$u.post(apiApp.supplyDemandSave, params); let supplyDemandList = (params = {}) => vm.$u.get(apiApp.supplyDemandList, params); let supplyDemandDetail = (params = {}) => vm.$u.get(apiApp.supplyDemandDetail, params); + let supplyDemandMessageList = (params = {}) => vm.$u.get(apiApp.supplyDemandMessageList, params); + let supplyDemandSendMessage = (params = {}) => vm.$u.post(apiApp.supplyDemandSendMessage, params); + let supplyDemandDialogues = (params = {}) => vm.$u.get(apiApp.supplyDemandDialogues, params); // 图书 let bookIndex = (params = {}) => vm.$u.get(apiApp.bookIndex, params); @@ -148,6 +154,9 @@ const install = (Vue, vm) => { supplyDemandSave, supplyDemandList, supplyDemandDetail, + supplyDemandMessageList, + supplyDemandSendMessage, + supplyDemandDialogues, // 图书 bookIndex, diff --git a/packages/chat/chatWindow.vue b/packages/chat/chatWindow.vue index 9cb0b26..b6b2c99 100644 --- a/packages/chat/chatWindow.vue +++ b/packages/chat/chatWindow.vue @@ -1,13 +1,32 @@