Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
X
xzf_uniapp-wechat-web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
李智书
xzf_uniapp-wechat-web
Commits
9f80a420
Commit
9f80a420
authored
Nov 22, 2024
by
袁玲利
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'为你推荐游戏排行'
parent
d03faeeb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
36 deletions
+43
-36
src/pages/gameOrder/gameOrder.vue
src/pages/gameOrder/gameOrder.vue
+43
-36
No files found.
src/pages/gameOrder/gameOrder.vue
View file @
9f80a420
...
@@ -5,12 +5,14 @@
...
@@ -5,12 +5,14 @@
<img
:src=
"game.icon"
alt=
"Game Icon"
class=
"game-icon"
/>
<img
:src=
"game.icon"
alt=
"Game Icon"
class=
"game-icon"
/>
<!-- 游戏信息 -->
<!-- 游戏信息 -->
<div
class=
"game-info"
>
<div
class=
"game-info"
>
<div
class=
"game-name"
>
{{
game
.
name
}}
</div>
<div
class=
"line1"
>
<div
class=
"game-score"
>
{{
game
.
score
}}
</div>
<div
class=
"game-name"
>
{{
game
.
name
}}
</div>
<div
class=
"game-score"
>
{{
game
.
score
}}
</div>
</div>
<div
class=
"game-description"
>
{{
game
.
description
}}
</div>
<div
class=
"game-description"
>
{{
game
.
description
}}
</div>
</div>
</div>
<!-- 启动按钮 -->
<!-- 启动按钮 -->
<button
@
click=
"launchGame(game)"
class=
"launch-btn"
>
启动
</button>
<button
@
click=
"launchGame(game)"
class=
"launch-btn"
></button>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -228,7 +230,7 @@ export default {
...
@@ -228,7 +230,7 @@ export default {
},
},
},
},
onHide
()
{
onHide
()
{
console
.
log
(
'
2222
'
)
console
.
log
(
"
2222
"
);
this
.
params
.
behavior
=
"
closePage
"
;
this
.
params
.
behavior
=
"
closePage
"
;
this
.
params
.
data
=
"
gameOrder
"
;
this
.
params
.
data
=
"
gameOrder
"
;
this
.
GameStatistics
();
this
.
GameStatistics
();
...
@@ -244,25 +246,25 @@ export default {
...
@@ -244,25 +246,25 @@ export default {
.rankings
{
.rankings
{
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
padding
:
20
rpx
;
padding
:
20
rpx
50
rpx
;
}
}
.ranking-item
{
.ranking-item
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
margin-bottom
:
30
rpx
;
height
:
184
rpx
;
padding
:
20
rpx
;
border
:
1
rpx
solid
#ddd
;
border-radius
:
16
rpx
;
background-color
:
#f9f9f9
;
}
}
.game-icon
{
.game-icon
{
width
:
100
rpx
;
width
:
126
rpx
;
height
:
100
rpx
;
height
:
126
rpx
;
margin-right
:
30
rpx
;
margin-right
:
23
rpx
;
border-radius
:
50%
;
}
.line1
{
display
:
inline-flex
;
margin-top
:
14
rpx
;
}
}
.game-info
{
.game-info
{
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
...
@@ -270,38 +272,43 @@ export default {
...
@@ -270,38 +272,43 @@ export default {
}
}
.game-name
{
.game-name
{
align-self
:
center
;
font-weight
:
500
;
font-size
:
32
rpx
;
font-size
:
32
rpx
;
font-weight
:
bold
;
color
:
rgba
(
0
,
0
,
0
,
0.85
)
;
line-height
:
4
0
rpx
;
line-height
:
4
5
rpx
;
}
}
.game-score
{
.game-score
{
color
:
#888
;
align-self
:
center
;
margin-top
:
10
rpx
;
width
:
61
rpx
;
line-height
:
40
rpx
;
height
:
32
rpx
;
font-size
:
26
rpx
;
line-height
:
32
rpx
;
text-align
:
center
;
background
:
#f7f7f7
;
border-radius
:
4
rpx
;
font-weight
:
400
;
font-size
:
20
rpx
;
color
:
rgba
(
0
,
0
,
0
,
0.35
);
margin-left
:
12
rpx
;
}
}
.game-description
{
.game-description
{
color
:
#777
;
margin-top
:
16
rpx
;
font-size
:
28
rpx
;
font-weight
:
400
;
margin-top
:
10
rpx
;
font-size
:
22
rpx
;
line-height
:
40
rpx
;
color
:
rgba
(
0
,
0
,
0
,
0.35
);
line-height
:
30
rpx
;
}
}
.launch-btn
{
.launch-btn
{
padding
:
16
rpx
32
rpx
;
width
:
110
rpx
;
margin-left
:
30
rpx
;
height
:
56
rpx
;
font-size
:
26
rpx
;
background-image
:
url("https://xiaopay2020.oss-cn-shenzhen.aliyuncs.com/static/weapp/gameOrder/playgame.png")
;
line-height
:
40
rpx
;
background-repeat
:
no-repeat
;
background-color
:
#4caf50
;
background-size
:
cover
;
color
:
white
;
border
:
none
;
border-radius
:
10
rpx
;
white-space
:
nowrap
;
}
}
.launch-btn
::after
{
.launch-btn
:hover
{
border
:
0
;
background-color
:
#45a049
;
}
}
</
style
>
</
style
>
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