diff --git a/pages/chat/ChatCardAI.vue b/pages/chat/ChatCardAI.vue index ee3a62e..aad5010 100644 --- a/pages/chat/ChatCardAI.vue +++ b/pages/chat/ChatCardAI.vue @@ -1,14 +1,13 @@ + + \ No newline at end of file diff --git a/pages/chat/ChatMainList.vue b/pages/chat/ChatMainList.vue index b0555ac..837be95 100644 --- a/pages/chat/ChatMainList.vue +++ b/pages/chat/ChatMainList.vue @@ -23,19 +23,20 @@ + @@ -65,6 +66,7 @@ import ChatTopNavBar from './ChatTopNavBar.vue'; import ChatCardAI from './ChatCardAI.vue'; import ChatCardMine from './ChatCardMine.vue'; + import ChatCardOther from './ChatCardOther.vue'; import ChatQuickAccess from './ChatQuickAccess.vue'; import ChatMoreTips from './ChatMoreTips.vue'; import ChatInputArea from './ChatInputArea.vue' @@ -167,10 +169,9 @@ } chatMsgList.value.push(newMsg) - - sendChat('酒店一共有哪些温泉?') - console.log("发送的新消息:",JSON.stringify(newMsg)) + + sendChat(text) } const scrollToBottom = () => { diff --git a/pages/chat/ChatMarkdown.vue b/pages/chat/ChatMarkdown.vue new file mode 100644 index 0000000..8c24c87 --- /dev/null +++ b/pages/chat/ChatMarkdown.vue @@ -0,0 +1,19 @@ + + + + + \ No newline at end of file diff --git a/pages/chat/styles/ChatMainList.scss b/pages/chat/styles/ChatMainList.scss index 39d69f6..b338e98 100644 --- a/pages/chat/styles/ChatMainList.scss +++ b/pages/chat/styles/ChatMainList.scss @@ -54,33 +54,19 @@ } } - .message-item { - display: flex; - } - .message-item-ai { + display: flex; justify-content: flex-start; } .message-item-mine { + display: flex; justify-content: flex-end; } .message-item-other { + display: flex; justify-content: center; - background-color: white; - margin: 6px 12px; - padding: 8px 24px; - border-radius: 4px; - font-size: 14px; - box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); - - text { - font-family: PingFang SC, PingFang SC; - font-weight: 400; - font-size: 14px; - color: #333333; - } } } }