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
You need to sign in or sign up before continuing.
Commit
9f80a420
authored
Nov 22, 2024
by
袁玲利
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'为你推荐游戏排行'
parent
d03faeeb
Changes
1
Show 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 @@
<img
:src=
"game.icon"
alt=
"Game Icon"
class=
"game-icon"
/>
<!-- 游戏信息 -->
<div
class=
"game-info"
>
<div
class=
"line1"
>
<div
class=
"game-name"
>
{{
game
.
name
}}
</div>
<div
class=
"game-score"
>
{{
game
.
score
}}
</div>
</div>
<div
class=
"game-description"
>
{{
game
.
description
}}
</div>
</div>
<!-- 启动按钮 -->
<button
@
click=
"launchGame(game)"
class=
"launch-btn"
>
启动
</button>
<button
@
click=
"launchGame(game)"
class=
"launch-btn"
></button>
</div>
</div>
</
template
>
...
...
@@ -228,7 +230,7 @@ export default {
},
},
onHide
()
{
console
.
log
(
'
2222
'
)
console
.
log
(
"
2222
"
);
this
.
params
.
behavior
=
"
closePage
"
;
this
.
params
.
data
=
"
gameOrder
"
;
this
.
GameStatistics
();
...
...
@@ -244,25 +246,25 @@ export default {
.rankings
{
display
:
flex
;
flex-direction
:
column
;
padding
:
20
rpx
;
padding
:
20
rpx
50
rpx
;
}
.ranking-item
{
display
:
flex
;
align-items
:
center
;
margin-bottom
:
30
rpx
;
padding
:
20
rpx
;
border
:
1
rpx
solid
#ddd
;
border-radius
:
16
rpx
;
background-color
:
#f9f9f9
;
height
:
184
rpx
;
}
.game-icon
{
width
:
100
rpx
;
height
:
100
rpx
;
margin-right
:
30
rpx
;
width
:
126
rpx
;
height
:
126
rpx
;
margin-right
:
23
rpx
;
border-radius
:
50%
;
}
.line1
{
display
:
inline-flex
;
margin-top
:
14
rpx
;
}
.game-info
{
display
:
flex
;
flex-direction
:
column
;
...
...
@@ -270,38 +272,43 @@ export default {
}
.game-name
{
align-self
:
center
;
font-weight
:
500
;
font-size
:
32
rpx
;
font-weight
:
bold
;
line-height
:
4
0
rpx
;
color
:
rgba
(
0
,
0
,
0
,
0.85
)
;
line-height
:
4
5
rpx
;
}
.game-score
{
color
:
#888
;
margin-top
:
10
rpx
;
line-height
:
40
rpx
;
font-size
:
26
rpx
;
align-self
:
center
;
width
:
61
rpx
;
height
:
32
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
{
color
:
#777
;
font-size
:
28
rpx
;
margin-top
:
10
rpx
;
line-height
:
40
rpx
;
margin-top
:
16
rpx
;
font-weight
:
400
;
font-size
:
22
rpx
;
color
:
rgba
(
0
,
0
,
0
,
0.35
);
line-height
:
30
rpx
;
}
.launch-btn
{
padding
:
16
rpx
32
rpx
;
margin-left
:
30
rpx
;
font-size
:
26
rpx
;
line-height
:
40
rpx
;
background-color
:
#4caf50
;
color
:
white
;
border
:
none
;
border-radius
:
10
rpx
;
white-space
:
nowrap
;
width
:
110
rpx
;
height
:
56
rpx
;
background-image
:
url("https://xiaopay2020.oss-cn-shenzhen.aliyuncs.com/static/weapp/gameOrder/playgame.png")
;
background-repeat
:
no-repeat
;
background-size
:
cover
;
}
.launch-btn
:hover
{
background-color
:
#45a049
;
.launch-btn
::after
{
border
:
0
;
}
</
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