From 8c1aa6202489e7835aeedf1bb8db1db7eac74690 Mon Sep 17 00:00:00 2001 From: lifizer <913626195@qq.com> Date: Mon, 27 Apr 2026 10:34:07 +0800 Subject: [PATCH 1/4] =?UTF-8?q?Style(=E4=BA=91=E7=81=B5AI):=E6=A0=87?= =?UTF-8?q?=E9=A2=98=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aiChat/views/index.vue | 2 +- pages.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/aiChat/views/index.vue b/aiChat/views/index.vue index 5a3df6a..5338da1 100644 --- a/aiChat/views/index.vue +++ b/aiChat/views/index.vue @@ -12,7 +12,7 @@ color="#333" transparent="auto" barPlaceholder="hidden" - title="云灵AI助手" + title="云灵" @click-left="clickBackHandle" /> Date: Mon, 27 Apr 2026 10:34:49 +0800 Subject: [PATCH 2/4] =?UTF-8?q?Refactor(=E9=A6=96=E9=A1=B5):=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E9=A1=B5=E9=9D=A2=E5=8A=A0=E8=BD=BD=EF=BC=8C=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E4=BD=BF=E7=94=A8=E6=87=92=E5=8A=A0=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/xdd-product-item/index.vue | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/components/xdd-product-item/index.vue b/components/xdd-product-item/index.vue index 81c8cc8..99c4562 100644 --- a/components/xdd-product-item/index.vue +++ b/components/xdd-product-item/index.vue @@ -5,13 +5,15 @@ v-if="!item.isFarmerShop" :src="item[imageKey]" class="img" + lazy-load /> - + mode="heightFix|widthFix" + lazy-load + /> - + :poster="item.farmerShopCover + '?vframe/jpg/offset/1'" + lazy-load + /> {{ item.farmerShopContent }} @@ -83,12 +91,14 @@ - {{ item[priceKey] }} + {{ item[priceKey] }} + @@ -97,7 +107,7 @@ v-if="item.isFarmerShop" class="v12-justify-start v12-align-center v12-pt-2 v12-px-2 v12-pb-2"> - + {{ item.farmerShopName }}/{{ item.farmerShopCityName || '-' }} From 0d1dfae3bd741df2c2dc7fa5ddfa90d7ae6b928d Mon Sep 17 00:00:00 2001 From: lifizer <913626195@qq.com> Date: Mon, 27 Apr 2026 14:21:12 +0800 Subject: [PATCH 3/4] =?UTF-8?q?Chore(=E5=85=A5=E9=A9=BB):=E8=A7=A3?= =?UTF-8?q?=E5=86=B3=E5=90=88=E5=B9=B6=E5=86=B2=E7=AA=81=E6=9C=AA=E5=AE=8C?= =?UTF-8?q?=E5=85=A8=E8=A7=A3=E5=86=B3=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg_join/views/index.vue | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkg_join/views/index.vue b/pkg_join/views/index.vue index 87a998b..cc3e6c0 100644 --- a/pkg_join/views/index.vue +++ b/pkg_join/views/index.vue @@ -39,10 +39,6 @@ @click="toTravelResidence" /> >>>>>> 320bda6ed8582fd2c81f73c272076e2b218418ab :src="images.experienceStoreImage" class="img-item" mode="widthFix" From 3b935811e3db4e5ccb3d4a5e548c86b519ec58d2 Mon Sep 17 00:00:00 2001 From: lifizer <913626195@qq.com> Date: Mon, 27 Apr 2026 15:42:01 +0800 Subject: [PATCH 4/4] =?UTF-8?q?Refactor(=E4=BA=91=E7=81=B5AI):=E6=8D=A2?= =?UTF-8?q?=E4=B8=80=E6=8D=A2=E5=8A=A8=E6=80=81=E6=95=88=E6=9E=9C=E5=AE=9E?= =?UTF-8?q?=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aiChat/mixins/chatMixinsV2.js | 24 ++++++++++++++---- aiChat/views/history.vue | 20 +++++++++------ aiChat/views/index.vue | 46 ++++++++++++++++++++++++++--------- assets/css/aiChat.less | 31 ++++++++++++++++++----- 4 files changed, 92 insertions(+), 29 deletions(-) diff --git a/aiChat/mixins/chatMixinsV2.js b/aiChat/mixins/chatMixinsV2.js index aad31c9..58a1555 100644 --- a/aiChat/mixins/chatMixinsV2.js +++ b/aiChat/mixins/chatMixinsV2.js @@ -252,7 +252,8 @@ export const chatMixinsV2 = { type: -2, showMoreInfo: {}, currentSwiperIndex: 0, - showChangeBtn: true + showChangeBtn: true, + changeIsRotate: false }) _this.loading = true _this.showCursor = false @@ -408,6 +409,18 @@ export const chatMixinsV2 = { this.chatMessageList[index].currentSwiperIndex = e.detail.current }, analyzeKeywordsChangeHandle(conversationId, item) { + let idx = -1 + this.chatMessageList.map((item, index) => { + if (item.conversationId === conversationId) { + idx = index + } + }) + if (idx > -1) { + this.$set(this.chatMessageList[idx], 'changeIsRotate', true) + if (this.chatMessageList[idx].changeIsRotate) { + return + } + } let listKey = '' // 抽奖和订单查询没有换一换 if (item.goodsList.length > 0) { @@ -431,17 +444,18 @@ export const chatMixinsV2 = { const { success, data } = res if (success) { let changeList = [] - let idx = -1 - this.chatMessageList.map((item, index) => { + this.chatMessageList.map((item) => { if (item.conversationId === conversationId) { changeList = data.list || [] - idx = index } }) if (idx > -1 && listKey) { - this.$set(this.chatMessageList[idx], 'listKey', changeList) + this.$set(this.chatMessageList[idx], listKey, changeList) this.$forceUpdate() } + setTimeout(() => { + this.$set(this.chatMessageList[idx], 'changeIsRotate', false) + }, 1000) } }) }, diff --git a/aiChat/views/history.vue b/aiChat/views/history.vue index ea1e5a4..2b15855 100644 --- a/aiChat/views/history.vue +++ b/aiChat/views/history.vue @@ -320,12 +320,17 @@ " class="change-btn" > - + + + 换一换 + @@ -489,7 +494,8 @@ export default { type: -2, showMoreInfo: {}, currentSwiperIndex: 0, - showChangeBtn: false + showChangeBtn: false, + changeIsRotate: false } if (item.cardData) { const { contentType, finish, items = [] } = item.cardData diff --git a/aiChat/views/index.vue b/aiChat/views/index.vue index 5338da1..dc68db0 100644 --- a/aiChat/views/index.vue +++ b/aiChat/views/index.vue @@ -99,9 +99,12 @@ 大家都在问 - + @@ -433,12 +436,17 @@ " class="change-btn" > - + + + 换一换 + @@ -573,7 +581,8 @@ export default { animationStr: '', settingInfo: {}, topicList: [], - onlyOneToAddCart: false + onlyOneToAddCart: false, + topicIsRotate: false } }, onLoad(options) { @@ -603,7 +612,11 @@ export default { this.loadData() }) }, - loadData() { + loadData(type = '') { + if (this.topicIsRotate) return + if (type === 'click') { + this.topicIsRotate = true + } getAiSystemInfoTopic().then(res => { const { success, data } = res if (success) { @@ -619,6 +632,9 @@ export default { } list.sort(() => Math.random() - 0.5) this.topicList = list.slice(0, 3) + setTimeout(() => { + this.topicIsRotate = false + }, 1000) } }) }, @@ -731,7 +747,7 @@ export default { font-size: 34rpx; } .content { - padding: 30rpx 0 0 0; + padding: 30rpx 24rpx 0 24rpx; color: #3D4CF0; } } @@ -757,6 +773,10 @@ export default { display: flex; width: 40rpx; height: 32rpx; + margin: 0 8rpx 0 0; + &.rotate { + animation: spin-icon 1s linear; + } } } .list-wrap { @@ -766,15 +786,19 @@ export default { .list-cont { padding: 0 24rpx; box-sizing: border-box; + display: flex; + flex-direction: column; + align-items: flex-start; .list-item { display: flex; align-items: center; - padding: 12rpx 18rpx; + padding: 6rpx 12rpx; margin: 0 0 24rpx 0; border-radius: 12rpx; border: 1rpx solid #ddd; font-size: 28rpx; color: #666; + background-color: #fff; .icon { display: block; width: 24rpx; diff --git a/assets/css/aiChat.less b/assets/css/aiChat.less index cf1d15f..079cfbf 100644 --- a/assets/css/aiChat.less +++ b/assets/css/aiChat.less @@ -12,9 +12,9 @@ page { min-height: 100vh; background: linear-gradient(155deg, rgba(61, 76, 241, 0.15) 0%, rgba(255,255,255,1) 25%, rgba(255,255,255,1) 75%, rgba(61, 76, 241, 0.15) 100%); // background-color: #fff; - // background-size: 100% 100vh; + background-size: 100% calc(100vh - 160rpx); // background-image: url(https://wxapp.xdd618.com/api/file/pic/aiChat/bg.png); - // background-repeat: no-repeat; + background-repeat: no-repeat; // background-attachment: fixed; .fix-tabbar-header { position: fixed; @@ -1081,10 +1081,20 @@ page { align-items: center; justify-content: center; padding: 0 0 20rpx 0; - .icon { - display: block; - width: 124rpx; - height: 38rpx; + .change-btn-content { + display: flex; + align-items: center; + justify-content: center; + color: #3D4CF0; + .icon { + display: block; + width: 40rpx; + height: 32rpx; + margin: 0 8rpx 0 0; + &.rotate { + animation: spin-icon 1s linear; + } + } } } } @@ -1335,3 +1345,12 @@ page { margin: 24rpx 0 0 0; } } + +@keyframes spin-icon { + 0% { + transform: rotate(0deg); + } + 100% { + transform: rotate(360deg); + } +}