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 @@