Refactor(云灵AI):换一换动态效果实现

(cherry picked from commit 898c3b74bc)
This commit is contained in:
lifizer
2026-04-28 09:53:37 +08:00
parent afc1c9d519
commit f354c9d3b2
3 changed files with 17 additions and 7 deletions
+3 -1
View File
@@ -416,10 +416,10 @@ export const chatMixinsV2 = {
}
})
if (idx > -1) {
this.$set(this.chatMessageList[idx], 'changeIsRotate', true)
if (this.chatMessageList[idx].changeIsRotate) {
return
}
this.$set(this.chatMessageList[idx], 'changeIsRotate', true)
}
let listKey = ''
// 抽奖和订单查询没有换一换
@@ -457,6 +457,8 @@ export const chatMixinsV2 = {
this.$set(this.chatMessageList[idx], 'changeIsRotate', false)
}, 1000)
}
}).catch(error => {
this.$set(this.chatMessageList[idx], 'changeIsRotate', false)
})
},
productItemClickHandle(item) {
+5 -2
View File
@@ -1,6 +1,9 @@
<template>
<view
:class="scrollTop > 0 ? 'page-scroll' : ''"
:class="{
'page-scroll': scrollTop > 0,
'new-chat': chatMessageListLength === 0
}"
class="fix-tabbar-page"
>
<hx-navbar
@@ -771,7 +774,7 @@ export default {
}
.icon {
display: flex;
width: 40rpx;
width: 32rpx;
height: 32rpx;
margin: 0 8rpx 0 0;
&.rotate {