diff --git a/src/assets/images/new/NO-prize-bg.png b/src/assets/images/new/NO-prize-bg.png new file mode 100644 index 0000000..38e18c7 Binary files /dev/null and b/src/assets/images/new/NO-prize-bg.png differ diff --git a/src/assets/images/new/USER_NO.png b/src/assets/images/new/USER_NO.png new file mode 100644 index 0000000..86f4343 Binary files /dev/null and b/src/assets/images/new/USER_NO.png differ diff --git a/src/assets/images/new/back-home.png b/src/assets/images/new/back-home.png new file mode 100644 index 0000000..0a874a4 Binary files /dev/null and b/src/assets/images/new/back-home.png differ diff --git a/src/assets/images/new/home-bg.png b/src/assets/images/new/home-bg.png index d6d1381..0172f8d 100644 Binary files a/src/assets/images/new/home-bg.png and b/src/assets/images/new/home-bg.png differ diff --git a/src/assets/images/new/lihe.png b/src/assets/images/new/lihe.png new file mode 100644 index 0000000..d770219 Binary files /dev/null and b/src/assets/images/new/lihe.png differ diff --git a/src/assets/images/new/ma1.png b/src/assets/images/new/ma1.png new file mode 100644 index 0000000..9482fd8 Binary files /dev/null and b/src/assets/images/new/ma1.png differ diff --git a/src/assets/images/new/ma2.png b/src/assets/images/new/ma2.png new file mode 100644 index 0000000..6d1756b Binary files /dev/null and b/src/assets/images/new/ma2.png differ diff --git a/src/assets/images/new/ma3.png b/src/assets/images/new/ma3.png new file mode 100644 index 0000000..c6ab261 Binary files /dev/null and b/src/assets/images/new/ma3.png differ diff --git a/src/assets/images/new/ma4.png b/src/assets/images/new/ma4.png new file mode 100644 index 0000000..5aa2c9f Binary files /dev/null and b/src/assets/images/new/ma4.png differ diff --git a/src/assets/images/new/music-off.png b/src/assets/images/new/music-off.png new file mode 100644 index 0000000..c070dfd Binary files /dev/null and b/src/assets/images/new/music-off.png differ diff --git a/src/assets/images/new/no-lottery-title.png b/src/assets/images/new/no-lottery-title.png new file mode 100644 index 0000000..8ebea76 Binary files /dev/null and b/src/assets/images/new/no-lottery-title.png differ diff --git a/src/assets/images/new/share-bg.png b/src/assets/images/new/share-bg - 副本.png similarity index 100% rename from src/assets/images/new/share-bg.png rename to src/assets/images/new/share-bg - 副本.png diff --git a/src/assets/images/new/share-bg-1.png b/src/assets/images/new/share-bg-1.png new file mode 100644 index 0000000..f64e2d9 Binary files /dev/null and b/src/assets/images/new/share-bg-1.png differ diff --git a/src/assets/images/new/share-bg-2.png b/src/assets/images/new/share-bg-2.png new file mode 100644 index 0000000..789c2d0 Binary files /dev/null and b/src/assets/images/new/share-bg-2.png differ diff --git a/src/assets/images/new/share-bg-3.png b/src/assets/images/new/share-bg-3.png new file mode 100644 index 0000000..4e22819 Binary files /dev/null and b/src/assets/images/new/share-bg-3.png differ diff --git a/src/assets/images/new/share-bg-4.png b/src/assets/images/new/share-bg-4.png new file mode 100644 index 0000000..ac44f91 Binary files /dev/null and b/src/assets/images/new/share-bg-4.png differ diff --git a/src/assets/images/new/share-bg-5.png b/src/assets/images/new/share-bg-5.png new file mode 100644 index 0000000..ef73240 Binary files /dev/null and b/src/assets/images/new/share-bg-5.png differ diff --git a/src/assets/images/new/todolist-bg.png b/src/assets/images/new/todolist-bg.png new file mode 100644 index 0000000..a821992 Binary files /dev/null and b/src/assets/images/new/todolist-bg.png differ diff --git a/src/assets/images/new/todolist-img.png b/src/assets/images/new/todolist-img.png new file mode 100644 index 0000000..109da24 Binary files /dev/null and b/src/assets/images/new/todolist-img.png differ diff --git a/src/components/HomePage.vue b/src/components/HomePage.vue index 8869990..ba4f812 100644 --- a/src/components/HomePage.vue +++ b/src/components/HomePage.vue @@ -387,8 +387,10 @@ globalToastEvent.on(ToastType.SHOW_TODO, () => { }) const sharePageShow = ref(false) -globalToastEvent.on(ToastType.SHOW_SHAREPAGE, () => { - sharePageShow.value = true +const isFromTodoList = ref(false) +globalToastEvent.on(ToastType.SHOW_SHAREPAGE, (env) => { + sharePageShow.value = true; + isFromTodoList.value = env; }) const popupMoreShow = ref(false) @@ -399,7 +401,6 @@ globalToastEvent.on(ToastType.SHOW_POPUPMORE, () => { const gamePageShow = ref(false) const gameSlideId = ref('') globalToastEvent.on(ToastType.SHOW_GAMEPAGE, (slide) => { - console.log("slide in home page:", slide.id); gameSlideId.value = slide.id; gamePageShow.value = true }) @@ -462,6 +463,22 @@ const handleAddress = (id) => { 奖励 +
+ 马1 +
+ +
+ 马2 +
+ +
+ 马3 +
+ +
+ 马4 +
+
更多金喜
@@ -480,7 +497,7 @@ const handleAddress = (id) => { - + @@ -568,6 +585,76 @@ const handleAddress = (id) => { display: block; } +/* 马的位置 */ +.item-ma1 { + width: 14vw; + top: 47vw; + left: 4.4vw; +} +.item-ma2 { + width: 14vw; + top: 47vw; + right: 4.4vw; +} +.item-ma3 { + width: 21vw; + top: 162vw; + left: 3vw; +} +.item-ma4 { + width: 25vw; + top: 128vw; + right: 6.6vw; +} + +/* 通用“奔跑”动画:轻微上下+前后+缩放 */ +@keyframes horse-gallop { + 0% { + transform: translateY(0) translateX(0) scale(1) rotate(0deg); + } + 20% { + transform: translateY(-2px) translateX(2px) scale(1.01) rotate(-1deg); + } + 40% { + transform: translateY(0) translateX(3px) scale(1.01) rotate(1deg); + } + 60% { + transform: translateY(-3px) translateX(1px) scale(1.02) rotate(-0.5deg); + } + 80% { + transform: translateY(0) translateX(0) scale(1.01) rotate(0.5deg); + } + 100% { + transform: translateY(0) translateX(0) scale(1) rotate(0deg); + } +} + +/* 每匹马用同一个 keyframes,但频率和起始时间不同,让节奏更自然 */ +.scene-item.item-ma1 img { + animation: horse-gallop 1.0s infinite ease-in-out; + animation-delay: 0s; + transform-origin: center bottom; +} + +.scene-item.item-ma2 img { + animation: horse-gallop 1.25s infinite ease-in-out; + /* 负 delay:进场时就已经错位,不会同时起跳 */ + animation-delay: -0.3s; + transform-origin: center bottom; +} + +.scene-item.item-ma3 img { + animation: horse-gallop 1.4s infinite ease-in-out; + animation-delay: -0.6s; + transform-origin: center bottom; +} + +.scene-item.item-ma4 img { + animation: horse-gallop 1.15s infinite ease-in-out; + animation-delay: -0.9s; + transform-origin: center bottom; +} + .item-1 { width: 21vw; bottom: 7vw; @@ -655,6 +742,12 @@ const handleAddress = (id) => { animation-delay: 0s; } +.item-ma1 { + width: 14vw; + top: 47vw; + left: 4.4vw; +} + @keyframes loginloading { 0% { transform: rotate(0deg); diff --git a/src/components/Lottery.vue b/src/components/Lottery.vue index 90a06cb..f17d6d4 100644 --- a/src/components/Lottery.vue +++ b/src/components/Lottery.vue @@ -5,27 +5,35 @@
-
+
-
+
-
--> + +
-
-
+
+ +
@@ -37,16 +45,16 @@