Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
NEWYEARPARTY
Project
Project
Details
Activity
Releases
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
华国豪
NEWYEARPARTY
Commits
4f1d6a85
Commit
4f1d6a85
authored
Dec 30, 2019
by
华国豪
🙄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
2add1b27
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
32 deletions
+25
-32
GameRanking.css
src/assets/css/GameRanking.css
+23
-30
GameRanking.vue
src/components/playGame/GameRanking.vue
+2
-2
No files found.
src/assets/css/GameRanking.css
View file @
4f1d6a85
.Ranking
{
.Ranking
{
width
:
100%
;
height
:
100%
;
background
:
url(/static/image/gamerank/bg.png)
;
...
...
@@ -9,79 +9,72 @@
top
:
0
;
z-index
:
10009
;
}
.Ranking
.logo
{
.Ranking
.logo
{
position
:
relative
;
left
:
4rem
;
top
:
2rem
;
}
.Ranking
p
.tit
{
.Ranking
p
.tit
{
text-align
:
center
;
font-size
:
4rem
;
color
:
white
;
position
:
relative
;
top
:
-2
8
px
;
top
:
-2
0
px
;
}
.Ranking
.rank-box
{
.Ranking
.rank-box
{
width
:
80%
;
margin
:
0
auto
;
display
:
flex
;
padding-top
:
4rem
;
}
.Ranking
.rank-box
.item
{
width
:
9rem
;
padding
:
6rem
0
;
}
.Ranking
.rank-box
.item
.head
{
.Ranking
.rank-box
.item
.head
{
position
:
relative
;
width
:
5rem
;
height
:
5rem
;
border-radius
:
50%
;
background
:
linear-gradient
(
0deg
,
rgba
(
247
,
213
,
23
,
1
),
rgba
(
255
,
171
,
2
,
1
));
background
:
linear-gradient
(
0deg
,
rgba
(
247
,
213
,
23
,
1
),
rgba
(
255
,
171
,
2
,
1
));
padding
:
.4rem
;
margin
:
0
auto
;
}
.Ranking
.rank-box
.item
.head
.maozi
{
.Ranking
.rank-box
.item
.head
.maozi
{
position
:
absolute
;
left
:
-
23
px
;
top
:
-2
1
px
;
left
:
-
12
px
;
top
:
-2
0
px
;
box-sizing
:
border-box
;
}
.Ranking
.rank-box
.item
.head
.user-img
{
.Ranking
.rank-box
.item
.head
.user-img
{
width
:
5rem
;
height
:
5rem
;
border-radius
:
50%
;
}
.Ranking
.rank-box
.item
.body
{
.Ranking
.rank-box
.item
.body
{
width
:
60px
;
margin
:
2rem
auto
;
margin
:
0
auto
;
height
:
292px
;
position
:
relative
;
margin-bottom
:
3rem
;
}
.Ranking
.rank-box
.item
.body
.color
{
.Ranking
.rank-box
.item
.body
.color
{
position
:
absolute
;
left
:
5%
;
bottom
:
0
;
width
:
89%
;
background
:
linear-gradient
(
90deg
,
rgba
(
186
,
76
,
11
,
1
),
rgba
(
233
,
154
,
53
,
1
),
rgba
(
253
,
244
,
139
,
1
),
rgba
(
209
,
151
,
25
,
1
));
border-radius
:
0px
0px
30px
30px
;
border-radius
:
0px
0px
30px
30px
;
background
:
url(/static/image/gamerank/tiao2.png)
;
background-repeat
:
no-repeat
;
background-size
:
100%
100%
;
}
.Ranking
.rank-box
.item
.name
{
.Ranking
.rank-box
.item
.name
{
text-align
:
center
;
font-family
:
'PingFangR'
;
font-size
:
2.4rem
;
color
:
white
;
font-weight
:
600
;
}
.Ranking
.rank-box
.item
.name
p
:nth-child
(
1
)
{
padding
:
.4rem
;
}
\ No newline at end of file
src/components/playGame/GameRanking.vue
View file @
4f1d6a85
...
...
@@ -4,10 +4,10 @@
<p
class=
"tit"
><span>
排
</span>
<span>
行
</span>
<span>
榜
</span></p>
<div
class=
"rank-box"
>
<div
class=
"item"
v-for=
"(item, index) in rankingList"
>
<div
class=
"head"
>
<
!--
<
div
class=
"head"
>
<img
v-if=
"index
<
3
"
class=
"maozi"
:class=
"`maozi$
{index}`" :src="`/static/image/gamerank/maozi_${index+1}.png`" alt="">
<img
class=
"user-img"
:src=
"item.photo"
alt=
""
>
</div>
</div>
-->
<div
class=
"body"
>
<div
class=
"color"
:style=
"
{'height': item.height + '%'}">
</div>
</div>
...
...
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