|
|
@@ -71,6 +71,8 @@ onMounted(() => {
|
|
|
// 机器人状态改变
|
|
|
// greeting-招呼 idle-静默 talk-说话
|
|
|
window.handleRobot = (state: string) => {
|
|
|
+ console.log('handleRobot!!!', state);
|
|
|
+
|
|
|
animalStat.value = state
|
|
|
isReady.value = true
|
|
|
}
|
|
|
@@ -261,15 +263,16 @@ onMounted(() => {
|
|
|
height: 150px;
|
|
|
background-position-x: 0;
|
|
|
background-repeat: no-repeat;
|
|
|
- animation: mouse-in 3s;
|
|
|
+ animation-name: xuliezhen-animation;
|
|
|
animation-timing-function: steps(60);
|
|
|
- animation-iteration-count: forwards;
|
|
|
+ animation-duration: 3s;
|
|
|
+ animation-iteration-count: infinite;
|
|
|
transition-property: bottom;
|
|
|
transition-duration: 0.4s;
|
|
|
cursor: pointer;
|
|
|
}
|
|
|
|
|
|
- @keyframes mouse-in {
|
|
|
+ @keyframes xuliezhen-animation {
|
|
|
from {
|
|
|
background-position-x: 0;
|
|
|
}
|