diff --git a/App.vue b/App.vue index 0e94c79..6127a7c 100644 --- a/App.vue +++ b/App.vue @@ -1,31 +1,29 @@ @@ -305,7 +311,7 @@ uni-modal .uni-modal__btn:after { uni-modal .uni-modal__btn_default { background: #e6f6ff; - color: #3CB5FB !important; + color: #3cb5fb !important; margin-right: 20rpx; } @@ -322,7 +328,6 @@ uni-modal .uni-modal__btn_primary { color: #ffffff !important; } - uni-modal .uni-modal { padding: 40rpx; box-sizing: border-box; @@ -357,8 +362,8 @@ uni-page-body { body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", - "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", - "Microsoft Yahei", sans-serif; + "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", + "Microsoft Yahei", sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; // max-width: 1536rpx; diff --git a/common/http.api.js b/common/http.api.js index 3fa268b..b0758b2 100644 --- a/common/http.api.js +++ b/common/http.api.js @@ -93,6 +93,10 @@ const install = (Vue, vm) => { /** 首页ai对话 */ // 发送消息 let SendMessageApi = (params = {}) => vm.$u.post('api/ChatAI/CreateChat', params); + // 获取历史对话列表 + let GetConversationPage = (params = {}) => vm.$u.get('api/ChatAI/GetConversationPage', params); + // 获取对话详情 + let GetConversationDetail = (params = {}) => vm.$u.get('api/ChatAI/GetHistoricalConversations', params); /** 登录 */ // 获取图形验证码 @@ -144,7 +148,9 @@ const install = (Vue, vm) => { SendMessageApi, GetCaptcha, GetStuVerifyCode, - StuLogin + StuLogin, + GetConversationPage, + GetConversationDetail }; } diff --git a/components/ChatHistory.vue b/components/ChatHistory.vue new file mode 100644 index 0000000..c894044 --- /dev/null +++ b/components/ChatHistory.vue @@ -0,0 +1,210 @@ + + + + + diff --git a/pages/home/index/index.vue b/pages/home/index/index.vue index 20164d7..14d7cd1 100644 --- a/pages/home/index/index.vue +++ b/pages/home/index/index.vue @@ -54,7 +54,7 @@ --> -