Browse Source

优化动画,解决开始出现视频加载三角号问题

dev_230517
zhangzhiyi 1 year ago
parent
commit
38fb11a253
  1. BIN
      src/assets/imgs/home-screen/approach.mp4
  2. BIN
      src/assets/imgs/home-screen/exit.mp4
  3. BIN
      src/assets/imgs/home-screen/power_on_loop.mp4
  4. BIN
      src/assets/imgs/home-screen/shutdown_loop.mp4
  5. 6
      src/view/tabs/home-screen.vue

BIN
src/assets/imgs/home-screen/approach.mp4

Binary file not shown.

BIN
src/assets/imgs/home-screen/exit.mp4

Binary file not shown.

BIN
src/assets/imgs/home-screen/power_on_loop.mp4

Binary file not shown.

BIN
src/assets/imgs/home-screen/shutdown_loop.mp4

Binary file not shown.

6
src/view/tabs/home-screen.vue

@ -224,7 +224,7 @@ const queryData = (data: any) => {
}; };
onActivated(() => { onActivated(() => {
animationShutdown.value && animationShutdown.value.play(); animationShutdown.value && animationShutdown.value.play();
animationPower.value.animationPower && animationPower.value.play(); animationPower.value && animationPower.value.play();
}); });
onMounted(() => { onMounted(() => {
@ -307,7 +307,7 @@ const changeAnimation = () => {
setTimeout(() => { setTimeout(() => {
currentAnimation.value = 2; currentAnimation.value = 2;
proxy.$eventBusService.emit("openControl", true); proxy.$eventBusService.emit("openControl", true);
}, 11 * 1000); }, 10.8 * 1000);
} else if (currentAnimation.value === 1 || currentAnimation.value === 3) { } else if (currentAnimation.value === 1 || currentAnimation.value === 3) {
} else if (currentAnimation.value === 2) { } else if (currentAnimation.value === 2) {
if (animationExit.value) { if (animationExit.value) {
@ -332,7 +332,7 @@ const changeAnimation = () => {
if (indoorValue.value) { if (indoorValue.value) {
indoorValue.value.style.opacity = "1"; indoorValue.value.style.opacity = "1";
} }
}, 4.4 * 1000); }, 4.7 * 1000);
} }
}; };

Loading…
Cancel
Save