diff --git a/pages/booking/QuickBookingComponent.vue b/pages/booking/QuickBookingComponent.vue
new file mode 100644
index 0000000..f76a1a1
--- /dev/null
+++ b/pages/booking/QuickBookingComponent.vue
@@ -0,0 +1,50 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/booking/QuickBookingContentList.vue b/pages/booking/QuickBookingContentList.vue
new file mode 100644
index 0000000..3ecaa14
--- /dev/null
+++ b/pages/booking/QuickBookingContentList.vue
@@ -0,0 +1,92 @@
+
+
+
+ {{ commodityDTO.title }}
+
+
+
+
+
+ {{ item.commodityName }}
+
+ ·往返观光车票
+ ·营业时间:9:00—22:00
+
+ ¥120/人
+ 下单
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/chat/ChatMainList.vue b/pages/chat/ChatMainList.vue
index 0ba2415..95c6541 100644
--- a/pages/chat/ChatMainList.vue
+++ b/pages/chat/ChatMainList.vue
@@ -26,8 +26,11 @@
-
-
+
+
+
+
+
@@ -78,6 +81,7 @@
import ChatMoreTips from './ChatMoreTips.vue';
import ChatInputArea from './ChatInputArea.vue'
import CommandWrapper from '@/components/CommandWrapper/index.vue'
+ import QuickBookingComponent from '../booking/QuickBookingComponent.vue'
import { MessageRole, MessageType } from '../../model/ChatModel';
@@ -349,12 +353,22 @@
loadingTimer = null;
isTyping = false;
typeWriterTimer = null;
- // 补全:如果消息内容还停留在'加载中.'或为空,则给出友好提示
- const msg = chatMsgList.value[aiMsgIndex].msg;
+
+ // 补全:如果消息内容还停留在'加载中.'或为空,则给出友好提示
+ const msg = chatMsgList.value[aiMsgIndex].msg;
console.log('msg:', msg)
- if (!msg || msg === '加载中.' || msg.startsWith('加载中')) {
- chatMsgList.value[aiMsgIndex].msg = '未获取到内容,请重试';
- }
+ if (!msg || msg === '加载中.' || msg.startsWith('加载中')) {
+ chatMsgList.value[aiMsgIndex].msg = '未获取到内容,请重试';
+ if(chunk.toolCall) {
+ chatMsgList.value[aiMsgIndex].msg = '';
+ }
+ }
+
+ if(chunk.toolCall) {
+ console.log('chunk.toolCall:', chunk.toolCall)
+ chatMsgList.value[aiMsgIndex].toolCall = chunk.toolCall
+ }
+
isSessionActive = false;
scrollToBottom();
}
diff --git a/pages/chat/ChatTopWelcome.vue b/pages/chat/ChatTopWelcome.vue
index f940814..e09dd9a 100644
--- a/pages/chat/ChatTopWelcome.vue
+++ b/pages/chat/ChatTopWelcome.vue
@@ -4,7 +4,7 @@
- {{ currentDate }} 多云 -3~6℃ ff
+ {{ currentDate }} 多云 -3~6℃ ccc
diff --git a/request/api/QuickBookingComponent.js b/request/api/QuickBookingComponent.js
index a649346..84e245b 100644
--- a/request/api/QuickBookingComponent.js
+++ b/request/api/QuickBookingComponent.js
@@ -1,7 +1,8 @@
import request from "../base/request";
-function quickBookingComponent() {
- return request.post('/mainScene/quickBookingComponent');
+function quickBookingComponent(selectedData) {
+ const args = { selectedData: selectedData }
+ return request.post('/hotelBiz/mainScene/quickBookingComponent', args);
}
export { quickBookingComponent }