Browse Source
Merge branch 'milestone-20250722-抽奖' of http://39.101.133.168:8807/hongxilin/activityLink into pangluotong/feature-20250712103401-抽奖
songtongtong/feature-20250717104937-众筹
Merge branch 'milestone-20250722-抽奖' of http://39.101.133.168:8807/hongxilin/activityLink into pangluotong/feature-20250712103401-抽奖
songtongtong/feature-20250717104937-众筹
13 changed files with 284 additions and 120 deletions
-
6src/api/API.js
-
BINsrc/assets/bg@2x.png
-
BINsrc/assets/qilin.webp
-
45src/store/lottery.js
-
28src/views/choujiang/index.vue
-
92src/views/choujiang/lottery/CardItem.vue
-
100src/views/choujiang/lottery/Lottery3D.vue
-
54src/views/choujiang/lottery/Mascot.vue
-
29src/views/choujiang/lottery/PrizePanel.vue
-
4src/views/choujiang/lottery/UserList.vue
-
20src/views/choujiang/lottery/lotteryEngine.js
-
2src/views/homePage.vue
-
2src/views/zhongchou/index.vue
After Width: 3840 | Height: 2160 | Size: 5.6 MiB |
@ -0,0 +1,54 @@ |
|||
<template> |
|||
<div class="mascot-container"> |
|||
<img |
|||
src="../../../assets/qilin.webp" |
|||
alt="可爱的角色" |
|||
class="mascot-image" |
|||
/> |
|||
</div> |
|||
</template> |
|||
|
|||
<script setup> |
|||
// 组件逻辑 |
|||
</script> |
|||
|
|||
<style scoped> |
|||
.mascot-container { |
|||
position: fixed; |
|||
bottom: -10px; |
|||
right: -80px; |
|||
z-index: 1000; |
|||
pointer-events: none; |
|||
} |
|||
|
|||
.mascot-image { |
|||
width: 400px; |
|||
height: 400px; |
|||
animation: bounce 2s ease-in-out infinite; |
|||
} |
|||
|
|||
/* @keyframes bounce { |
|||
0%, 20%, 50%, 80%, 100% { |
|||
transform: translateY(0); |
|||
} |
|||
40% { |
|||
transform: translateY(-10px); |
|||
} |
|||
60% { |
|||
transform: translateY(-5px); |
|||
} |
|||
} */ |
|||
|
|||
/* 响应式设计 */ |
|||
@media (max-width: 768px) { |
|||
.mascot-image { |
|||
width: 180px; |
|||
height: 180px; |
|||
} |
|||
|
|||
.mascot-container { |
|||
bottom: 10px; |
|||
right: 10px; |
|||
} |
|||
} |
|||
</style> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue