Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
GeekLearnMathWeapp
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
frontend
GeekLearnMathWeapp
Commits
9e95896f
Commit
9e95896f
authored
Apr 04, 2023
by
hewenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: update
parent
d5d7ee95
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
132 additions
and
48 deletions
+132
-48
game.ts
src/api/game.ts
+1
-1
rocket.png
src/pages/game/complete/assets/rocket.png
+0
-0
complete-achieve.module.scss
...ges/game/complete/components/complete-achieve.module.scss
+61
-1
complete-achieve.tsx
src/pages/game/complete/components/complete-achieve.tsx
+53
-46
complete-head.module.scss
src/pages/game/complete/components/complete-head.module.scss
+17
-0
No files found.
src/api/game.ts
View file @
9e95896f
...
@@ -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
;
...
...
src/pages/game/complete/assets/rocket.png
0 → 100644
View file @
9e95896f
423 Bytes
src/pages/game/complete/components/complete-achieve.module.scss
View file @
9e95896f
...
@@ -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
{
...
...
src/pages/game/complete/components/complete-achieve.tsx
View file @
9e95896f
...
@@ -102,68 +102,75 @@ const GameCompleteAchieve = () => {
...
@@ -102,68 +102,75 @@ const GameCompleteAchieve = () => {
<>
<>
<
View
className=
{
styles
.
wrap
}
>
<
View
className=
{
styles
.
wrap
}
>
<
View
className=
{
styles
.
title
}
>
本关成就获得
</
View
>
<
View
className=
{
styles
.
title
}
>
本关成就获得
</
View
>
<
View
className=
{
styles
.
achieve_item
}
>
<
View
>
<
Image
src=
{
level
}
className=
{
styles
.
achieve_icon
}
></
Image
>
<
View
className=
{
cs
.
flex__item
}
>
<
View
className=
{
styles
.
main_text
}
>
{
gameResult
.
level
}
等级
<
Text
className=
{
classNames
(
styles
.
first_time
,
gameResult
.
levelReward
<=
0
&&
styles
.
is_second
)
}
>
{
gameResult
.
levelReward
>
0
?
'首次达成'
:
'二次达成'
}
</
Text
>
</
View
>
<
View
className=
{
styles
.
tips_text
}
>
全对且用时≤
{
time
.
minutes
}
分
{
time
.
seconds
}
秒
</
View
>
</
View
>
{
gameResult
.
levelReward
>
0
&&
(
<
View
>
<
Image
src=
{
require
(
'../assets/bonus.png'
)
}
className=
{
styles
.
bonus_icon
}
></
Image
>
<
View
className=
{
styles
.
bonus_text
}
>
+
{
gameResult
.
levelReward
}
</
View
>
</
View
>
)
}
</
View
>
{
topIcon
&&
(
<
View
className=
{
styles
.
achieve_item
}
>
<
View
className=
{
styles
.
achieve_item
}
>
<
Image
src=
{
topIcon
}
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
}
>
TOP
{
gameResult
?.
gear
??
0
}
%
{
gameResult
.
level
}
等级
<
Text
className=
{
classNames
(
styles
.
first_time
,
gameResult
.
gear
Reward
<=
0
&&
styles
.
is_second
)
}
>
<
Text
className=
{
classNames
(
styles
.
first_time
,
gameResult
.
level
Reward
<=
0
&&
styles
.
is_second
)
}
>
{
gameResult
.
gear
Reward
>
0
?
'首次达成'
:
'二次达成'
}
{
gameResult
.
level
Reward
>
0
?
'首次达成'
:
'二次达成'
}
</
Text
>
</
Text
>
</
View
>
</
View
>
<
View
className=
{
styles
.
tips_text
}
>
恭喜你成为了最优秀的
{
gameResult
?.
gear
??
0
}
%
</
View
>
<
View
className=
{
styles
.
tips_text
}
>
全对且用时≤
{
time
.
minutes
}
分
{
time
.
seconds
}
秒
</
View
>
</
View
>
</
View
>
{
gameResult
.
gear
Reward
>
0
&&
(
{
gameResult
.
level
Reward
>
0
&&
(
<
View
>
<
View
>
<
Image
src=
{
require
(
'../assets/bonus.png'
)
}
className=
{
styles
.
bonus_icon
}
></
Image
>
<
Image
src=
{
require
(
'../assets/bonus.png'
)
}
className=
{
styles
.
bonus_icon
}
></
Image
>
<
View
className=
{
styles
.
bonus_text
}
>
+
{
gameResult
.
gear
Reward
}
</
View
>
<
View
className=
{
styles
.
bonus_text
}
>
+
{
gameResult
.
level
Reward
}
</
View
>
</
View
>
</
View
>
)
}
)
}
</
View
>
</
View
>
)
}
{
topIcon
&&
(
<
View
className=
{
styles
.
achieve_item
}
>
<
Image
src=
{
topIcon
}
className=
{
styles
.
achieve_icon
}
></
Image
>
<
View
className=
{
cs
.
flex__item
}
>
<
View
className=
{
styles
.
main_text
}
>
TOP
{
gameResult
?.
gear
??
0
}
%
<
Text
className=
{
classNames
(
styles
.
first_time
,
gameResult
.
gearReward
<=
0
&&
styles
.
is_second
)
}
>
{
gameResult
.
gearReward
>
0
?
'首次达成'
:
'二次达成'
}
</
Text
>
</
View
>
<
View
className=
{
styles
.
tips_text
}
>
恭喜你成为了最优秀的
{
gameResult
?.
gear
??
0
}
%
</
View
>
</
View
>
{
gameResult
.
gearReward
>
0
&&
(
<
View
>
<
Image
src=
{
require
(
'../assets/bonus.png'
)
}
className=
{
styles
.
bonus_icon
}
></
Image
>
<
View
className=
{
styles
.
bonus_text
}
>
+
{
gameResult
.
gearReward
}
</
View
>
</
View
>
)
}
</
View
>
)
}
<
View
className=
{
styles
.
achieve_item
}
>
<
Image
src=
{
assets
[
'rank.png'
].
u
}
className=
{
styles
.
achieve_icon
}
></
Image
>
<
View
className=
{
cs
.
flex__item
}
>
<
View
className=
{
styles
.
main_text
}
>
全市排名
</
View
>
<
View
className=
{
styles
.
tips_text
}
>
恭喜你进入了全市前
{
rankNoS
}
名
</
View
>
</
View
>
<
View
className=
{
styles
.
rank_text
}
>
{
rankNo
}
名
</
View
>
</
View
>
{
gameResult
?.
upGear
&&
(
<
View
className=
{
styles
.
achieve_item
}
>
<
View
className=
{
styles
.
achieve_item
}
>
<
Image
src=
{
assets
[
'
upgear
.png'
].
u
}
className=
{
styles
.
achieve_icon
}
></
Image
>
<
Image
src=
{
assets
[
'
rank
.png'
].
u
}
className=
{
styles
.
achieve_icon
}
></
Image
>
<
View
className=
{
cs
.
flex__item
}
>
<
View
className=
{
cs
.
flex__item
}
>
<
View
className=
{
styles
.
main_text
}
>
升档成功
</
View
>
<
View
className=
{
styles
.
main_text
}
>
全市排名
</
View
>
<
View
className=
{
styles
.
tips_text
}
>
提升到
{
gameResult
.
gear
-
10
}
%-
{
gameResult
.
gear
}
%
</
View
>
<
View
className=
{
styles
.
tips_text
}
>
恭喜你进入了全市前
{
rankNoS
}
名
</
View
>
</
View
>
</
View
>
{
gameResult
.
upGearReward
>
0
&&
(
<
View
className=
{
styles
.
rank_text
}
>
{
rankNo
}
名
</
View
>
<
View
>
<
Image
src=
{
require
(
'../assets/bonus.png'
)
}
className=
{
styles
.
bonus_icon
}
></
Image
>
<
View
className=
{
styles
.
bonus_text
}
>
+
{
gameResult
.
upGearReward
}
</
View
>
</
View
>
)
}
</
View
>
</
View
>
)
}
{
gameResult
?.
upGear
&&
(
<
View
className=
{
styles
.
achieve_item
}
>
<
Image
src=
{
assets
[
'upgear.png'
].
u
}
className=
{
styles
.
achieve_icon
}
></
Image
>
<
View
className=
{
cs
.
flex__item
}
>
<
View
className=
{
styles
.
main_text
}
>
升档成功
</
View
>
<
View
className=
{
styles
.
tips_text
}
>
提升到
{
gameResult
.
gear
-
10
}
%-
{
gameResult
.
gear
}
%
</
View
>
</
View
>
{
gameResult
.
upGearReward
>
0
&&
(
<
View
>
<
Image
src=
{
require
(
'../assets/bonus.png'
)
}
className=
{
styles
.
bonus_icon
}
></
Image
>
<
View
className=
{
styles
.
bonus_text
}
>
+
{
gameResult
.
upGearReward
}
</
View
>
</
View
>
)
}
</
View
>
)
}
</
View
>
<
View
className=
{
styles
.
gap
}
></
View
>
<
View
className=
{
styles
.
gap
}
></
View
>
</
View
>
</
View
>
{
renderBtn
()
}
{
renderBtn
()
}
...
...
src/pages/game/complete/components/complete-head.module.scss
View file @
9e95896f
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment