From 9c90600c82d6504c2195b57fb31043e0ac9fd067 Mon Sep 17 00:00:00 2001
From: lifizer <913626195@qq.com>
Date: Wed, 22 Apr 2026 17:42:58 +0800
Subject: [PATCH] =?UTF-8?q?Refactor(=E4=BA=91=E7=81=B5AI):=E5=88=97?=
=?UTF-8?q?=E8=A1=A8=E6=95=B0=E6=8D=AE=E5=AF=B9=E6=8E=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
aiChat/components/bottomSend.vue | 3 +-
aiChat/components/orderItem.vue | 2 +
aiChat/mixins/chatMixinsV2.js | 19 ++-
aiChat/views/history.vue | 183 +++++++++++++++++++++---
aiChat/views/imageRecognitionResult.vue | 8 +-
aiChat/views/index.vue | 121 ++--------------
assets/css/aiChat.less | 109 ++++++++++++++
7 files changed, 306 insertions(+), 139 deletions(-)
diff --git a/aiChat/components/bottomSend.vue b/aiChat/components/bottomSend.vue
index 3c1b233..0b47eba 100644
--- a/aiChat/components/bottomSend.vue
+++ b/aiChat/components/bottomSend.vue
@@ -128,8 +128,9 @@ export default {
* 怎么申请地理标志保护产品?
* 想找个像《去有风的地方》那样的治愈县城
* 云南有哪些小众县城适合旅居?
+ * 查询最近一个月的订单
*/
- prompt: '查询最近一个月的订单',
+ prompt: '',
recordManager: null,
// 录音权限是否开通
recordPermission: false,
diff --git a/aiChat/components/orderItem.vue b/aiChat/components/orderItem.vue
index 9df2b21..b00ae66 100644
--- a/aiChat/components/orderItem.vue
+++ b/aiChat/components/orderItem.vue
@@ -9,6 +9,7 @@
:src="webUrl + '/aiChat/icon-57.png'"
class="icon"
mode="widthFix"
+ lazy-load
/>
{{ item.merName }}
@@ -31,6 +32,7 @@
:src="cartItem.productInfo.image"
class="img"
mode="widthFix"
+ lazy-load
/>
diff --git a/aiChat/mixins/chatMixinsV2.js b/aiChat/mixins/chatMixinsV2.js
index 379ee32..8090cfa 100644
--- a/aiChat/mixins/chatMixinsV2.js
+++ b/aiChat/mixins/chatMixinsV2.js
@@ -251,10 +251,11 @@ export const chatMixinsV2 = {
orderList: [],
type: -2,
showMoreInfo: {},
- currentSwiperIndex: 0
+ currentSwiperIndex: 0,
+ showChangeBtn: true
})
_this.loading = true
- _this.showCursor = false
+ _this.showCursor = false
getSseConfigV1({
'chatNumber': _this.chatNumber,
prompt
@@ -453,12 +454,26 @@ export const chatMixinsV2 = {
}
})
},
+ productItemSupplierClickHandle(item) {
+ if (!item.storeId) {
+ return
+ }
+ this.audioStopHandle()
+ this.$yrouter.push({
+ path: '/pagesInn/inn/innHome',
+ query: {
+ id: item.storeId
+ }
+ })
+ },
productItemBuyNowClickHandle(item) {
+ this.audioStopHandle()
this.showGiftBtn = false
this.cart_num = 1
this.addToCart(item)
},
productItemGiftBuyClickHandle(item) {
+ this.audioStopHandle()
this.showGiftBtn = true
this.cart_num = 1
this.addToCart(item)
diff --git a/aiChat/views/history.vue b/aiChat/views/history.vue
index 70bfb92..ea1e5a4 100644
--- a/aiChat/views/history.vue
+++ b/aiChat/views/history.vue
@@ -45,14 +45,14 @@
-
+
-
+
-
+
+
+ onSwiperChange(index, e)"
+ >
+
+
+
+
+ {{ goodItem.storeName }}
+
+
+ {{ goodItem.name }}
+
+
+ ¥
+ {{ goodItem.price }}
+
+
+ 立即下单
+ 送给朋友
+
+
+
+
+
+
+
@@ -153,9 +213,10 @@
-
+
+
@@ -177,9 +239,10 @@
-
+
+
-
+
+
@@ -216,9 +281,10 @@
-
+
+
-
+
+
+
+
+
+
+
+