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
a6f9870c
Commit
a6f9870c
authored
Apr 06, 2023
by
m
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: update
parent
2b8b0a21
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
23 deletions
+17
-23
game.ts
src/api/game.ts
+1
-0
main-header.module.scss
src/pages/prepare/components/main-header.module.scss
+5
-5
tabs.module.scss
src/pages/prepare/components/tabs.module.scss
+0
-1
thead.module.scss
src/pages/prepare/components/thead.module.scss
+2
-2
index.module.scss
src/pages/prepare/index.module.scss
+7
-7
render.tsx
src/pages/prepare/render.tsx
+2
-8
No files found.
src/api/game.ts
View file @
a6f9870c
...
...
@@ -58,6 +58,7 @@ export type StageRank = {
no
:
number
;
secondName
:
string
;
userId
:
number
;
identity
?:
'LEADER'
|
'NORMAL'
;
}
export
type
NextStep
=
{
...
...
src/pages/prepare/components/main-header.module.scss
View file @
a6f9870c
...
...
@@ -10,7 +10,7 @@
.title
{
font-weight
:
bold
;
margin
:
40px
0
20px
;
font-size
:
26
PX
;
font-size
:
52px
;
font-weight
:
600
;
color
:
#FFFFFF
;
}
...
...
@@ -86,9 +86,9 @@
@include
flexLayout
(
row
,
center
);
.badge
{
width
:
42
PX
;
height
:
42
PX
;
margin-right
:
16
PX
;
width
:
84px
;
height
:
84px
;
margin-right
:
32px
;
}
.center
{
...
...
@@ -116,7 +116,7 @@
background
:
#0084FF
;
border-radius
:
14px
;
font-size
:
10
PX
;
width
:
36
PX
;
width
:
72px
;
padding
:
1
PX
6
PX
;
}
}
...
...
src/pages/prepare/components/tabs.module.scss
View file @
a6f9870c
...
...
@@ -57,7 +57,6 @@
background-color
:
#fff
;
position
:
relative
;
top
:
-40
PX
;
margin-bottom
:
-40
PX
;
.tabPane
{
height
:
auto
;
...
...
src/pages/prepare/components/thead.module.scss
View file @
a6f9870c
...
...
@@ -8,7 +8,7 @@
color
:
rgba
(
70
,
81
,
100
,
0
.5
);
&
_index
{
width
:
30
PX
;
width
:
60px
;
padding-left
:
3
PX
;
margin-right
:
23
PX
;
}
...
...
@@ -26,7 +26,7 @@
color
:
rgba
(
70
,
81
,
100
,
0
.7
);
&
_best
{
font-size
:
14
PX
;
font-size
:
32px
;
font-weight
:
600
;
color
:
#FE9B45
;
}
...
...
src/pages/prepare/index.module.scss
View file @
a6f9870c
@import
'@/styles/mixins.scss'
;
.wrapper
{
padding-bottom
:
80
PX
;
padding-bottom
:
105px
;
.inner
{
position
:
relative
;
...
...
@@ -67,14 +67,14 @@
@include
flexLayout
(
row
,
center
);
&
_icon
{
width
:
30
PX
;
height
:
30
PX
;
width
:
60px
;
height
:
60px
;
}
&
_index
{
display
:
block
;
text-align
:
center
;
width
:
30
PX
;
width
:
60px
;
font-size
:
36px
;
font-weight
:
500
;
color
:
rgba
(
70
,
81
,
100
,
0
.5
);
...
...
@@ -108,7 +108,7 @@
gap
:
6
PX
;
color
:
rgba
(
70
,
81
,
100
,
0
.7
);
&
_best
{
font-size
:
16
PX
;
font-size
:
32px
;
font-weight
:
600
;
color
:
#FE9B45
;
}
...
...
@@ -126,9 +126,9 @@
.tribe_share
{
border-radius
:
10
PX
;
margin
:
0
40
PX
;
margin
:
0
80px
;
margin-bottom
:
56px
;
height
:
44
PX
;
height
:
88px
;
border
:
2
PX
solid
#465164
;
gap
:
8
PX
;
@include
flexLayout
(
row
,
center
,
center
);
...
...
src/pages/prepare/render.tsx
View file @
a6f9870c
...
...
@@ -10,12 +10,6 @@ import Thead from './components/thead'
import
styles
from
'./index.module.scss'
export
const
formatTime
=
(
time
:
number
)
=>
{
const
minutes
=
Math
.
floor
(
time
/
60
)
const
seconds
=
time
%
60
return
`
${
minutes
}
分
${
seconds
}
秒`
}
export
const
renderList
=
(
list
:
StageRank
[])
=>
{
const
isEmpty
=
list
.
length
<
1
const
user
=
list
.
find
(
item
=>
item
.
me
)
...
...
@@ -43,7 +37,7 @@ export const renderItem = (item: StageRank) => {
{
item
.
nickName
||
'-'
}
{
item
.
me
&&
<
Text
>
(你)
</
Text
>
}
</
Text
>
<
Image
className=
{
styles
.
item_username_crown
}
src=
{
assetsGroup
[
'crown-small.png'
].
u
}
/>
{
item
.
identity
===
'LEADER'
&&
<
Image
className=
{
styles
.
item_username_crown
}
src=
{
assetsGroup
[
'crown-small.png'
].
u
}
/>
}
</
View
>
<
View
className=
{
styles
.
item_result
}
>
<
Text
className=
{
styles
.
item_result_first
}
>
{
item
.
firstResultTime
}
s
</
Text
>
...
...
@@ -73,7 +67,7 @@ const renderTribeList = (list: StageRank[]) => (
export
const
renderTribePage
=
(
list
:
StageRank
[]
=
[])
=>
{
return
(
<
View
className=
{
styles
.
tribe
}
>
{
[{}]
.
length
>
0
?
renderTribeList
(
list
)
:
renderEmptyTribe
()
}
{
list
.
length
>
0
?
renderTribeList
(
list
)
:
renderEmptyTribe
()
}
</
View
>
)
}
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