Commit 9e95896f authored by hewenhao's avatar hewenhao

feat: update

parent d5d7ee95
...@@ -54,7 +54,7 @@ export type StageRank = { ...@@ -54,7 +54,7 @@ export type StageRank = {
bestResultTime: number; bestResultTime: number;
firstResultTime: number; firstResultTime: number;
me: boolean; me: boolean;
nickName: string; nickName: string | null;
no: number; no: number;
secondName: string; secondName: string;
userId: number; userId: number;
......
...@@ -13,6 +13,67 @@ ...@@ -13,6 +13,67 @@
align-items: center; align-items: center;
background: #F7F7F7; background: #F7F7F7;
border-radius: 32px; border-radius: 32px;
animation-name: fadeIn;
animation-duration: .5s;
animation-timing-function: ease-out;
animation-iteration-count: 1;
animation-fill-mode: backwards;
&:nth-child(1) {
animation-delay: 0.5s;
}
&:nth-child(2) {
animation-delay: 1s;
}
&:nth-child(3) {
animation-delay: 1.5s;
}
&:nth-child(4) {
animation-delay: 2s;
}
}
@keyframes fadeIn {
0% {
opacity: 0;
transform: scale3d(1.5, 1.5, 1) translateY(100px);
}
100% {
opacity: 1;
transform: scale3d(1, 1, 1) translateY(0px);
}
}
.icon_wrap {
position: relative;
margin-right: 24px;
}
.rocket {
position: absolute;
width: 34px;
height: 32px;
bottom: 0;
right: -10px;
animation-name: updown;
animation-timing-function: ease-in-out;
animation-duration: 1.3s;
animation-iteration-count: infinite;
animation-delay: 0s;
}
@keyframes updown {
0% {
transform: translateY(-10px);
}
50% {
transform: translateY(0px);
}
100% {
transform: translateY(-10px);
}
} }
.achieve_item_main { .achieve_item_main {
...@@ -67,7 +128,6 @@ ...@@ -67,7 +128,6 @@
.achieve_icon { .achieve_icon {
width: 96px; width: 96px;
height: 96px; height: 96px;
margin-right: 24px;
} }
.bonus_icon { .bonus_icon {
......
...@@ -102,8 +102,14 @@ const GameCompleteAchieve = () => { ...@@ -102,8 +102,14 @@ const GameCompleteAchieve = () => {
<> <>
<View className={styles.wrap}> <View className={styles.wrap}>
<View className={styles.title}>本关成就获得</View> <View className={styles.title}>本关成就获得</View>
<View>
<View className={styles.achieve_item}> <View className={styles.achieve_item}>
<Image src={level} className={styles.achieve_icon}></Image> <View className={styles.icon_wrap}>
<Image src={level} className={styles.achieve_icon} />
{gameResult.levelReward > 0 && (
<Image src={require('../assets/rocket.png')} className={styles.rocket} />
)}
</View>
<View className={cs.flex__item}> <View className={cs.flex__item}>
<View className={styles.main_text}> <View className={styles.main_text}>
{gameResult.level}等级 {gameResult.level}等级
...@@ -164,6 +170,7 @@ const GameCompleteAchieve = () => { ...@@ -164,6 +170,7 @@ const GameCompleteAchieve = () => {
)} )}
</View> </View>
)} )}
</View>
<View className={styles.gap}></View> <View className={styles.gap}></View>
</View> </View>
{renderBtn()} {renderBtn()}
......
...@@ -20,6 +20,23 @@ ...@@ -20,6 +20,23 @@
display: block; display: block;
margin: 0 auto; margin: 0 auto;
height: 536px; height: 536px;
animation-name: fadeIn;
animation-duration: .5s;
animation-timing-function: ease-out;
animation-iteration-count: 1;
animation-fill-mode: backwards;
animation-delay: 0s;
}
@keyframes fadeIn {
0% {
opacity: 0;
transform: scale3d(1.5, 1.5, 1) translateY(100px);
}
100% {
opacity: 1;
transform: scale3d(1, 1, 1) translateY(0px);
}
} }
.tips { .tips {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment