diff --git a/api/house-ai-chat.js b/api/house-ai-chat.js
index 133ccde..6bc8a5c 100644
--- a/api/house-ai-chat.js
+++ b/api/house-ai-chat.js
@@ -3,6 +3,14 @@ import http from './index.js';
// AI找房问答
export const sendHouseAiMessage = (data) => http.post('/house/ai-chat/message', data)
+// 清空当前AI找房会话
+export const clearHouseAiSession = (data) => http.post('/house/ai-chat/session/clear', data)
+
+// 无候选时提交找房咨询线索
+export const submitHouseAiLead = (data) => http.post('/house/house-message/ai-agent', data)
+
export default {
- sendHouseAiMessage
+ sendHouseAiMessage,
+ clearHouseAiSession,
+ submitHouseAiLead
}
diff --git a/pages/ai-house/index.vue b/pages/ai-house/index.vue
index 910be8a..b33c8e5 100644
--- a/pages/ai-house/index.vue
+++ b/pages/ai-house/index.vue
@@ -33,43 +33,26 @@
您想要找什么样的房型?
多少平方
-
+
多少楼层
-
+
多少租金
-
+
什么地段
-
+
+
+
+ {{ loading ? '提交中...' : '提交找房需求' }}
@@ -164,13 +147,14 @@
class="house-card"
@click="goHouseDetail(item)"
>
-
+
+
{{ item.houseTitle }}
{{ item.matchReason }}
{{ item.address || item.region || item.city || '位置待补充' }}
{{ item.extent }}m²|{{ item.toward }}
- {{ item.monthlyRent }}元/月
+ {{ item.monthlyRent ? item.monthlyRent + '元/月' : (item.totalPrice || item.salePrice || '价格待确认') }}
@@ -189,6 +173,7 @@
+ {{ progressText || '正在处理中' }}
@@ -196,15 +181,24 @@
-
+
找房
+
+ {{ item.label }}
+