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
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
87 additions
and
3 deletions
+87
-3
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
+8
-1
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 = {
bestResultTime
:
number
;
firstResultTime
:
number
;
me
:
boolean
;
nickName
:
string
;
nickName
:
string
|
null
;
no
:
number
;
secondName
:
string
;
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 @@
align-items
:
center
;
background
:
#F7F7F7
;
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
{
...
...
@@ -67,7 +128,6 @@
.achieve_icon
{
width
:
96px
;
height
:
96px
;
margin-right
:
24px
;
}
.bonus_icon
{
...
...
src/pages/game/complete/components/complete-achieve.tsx
View file @
9e95896f
...
...
@@ -102,8 +102,14 @@ const GameCompleteAchieve = () => {
<>
<
View
className=
{
styles
.
wrap
}
>
<
View
className=
{
styles
.
title
}
>
本关成就获得
</
View
>
<
View
>
<
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=
{
styles
.
main_text
}
>
{
gameResult
.
level
}
等级
...
...
@@ -164,6 +170,7 @@ const GameCompleteAchieve = () => {
)
}
</
View
>
)
}
</
View
>
<
View
className=
{
styles
.
gap
}
></
View
>
</
View
>
{
renderBtn
()
}
...
...
src/pages/game/complete/components/complete-head.module.scss
View file @
9e95896f
...
...
@@ -20,6 +20,23 @@
display
:
block
;
margin
:
0
auto
;
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
{
...
...
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