Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
eslotsys-game-nuxt
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
毛线
eslotsys-game-nuxt
Commits
4a3e4daa
Commit
4a3e4daa
authored
Jul 19, 2023
by
毛线
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
样式优化
parent
e69e7700
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
10 deletions
+33
-10
goToGame.vue
pages/goToGame.vue
+30
-10
index.vue
pages/index/game/index.vue
+3
-0
No files found.
pages/goToGame.vue
View file @
4a3e4daa
...
...
@@ -33,7 +33,19 @@ export default {
redirectUrl
,
deviceId
,
}
console
.
log
(
'query'
,
query
)
this
.
network
().
isGaming
(
query
)
})
},
isGaming
:
(
query
)
=>
{
// 判断当前是否有在其他设备
const
url
=
'/api/gaming/isGaming'
this
.
$request
({
url
,
method
:
'get'
,
}).
then
(({
data
})
=>
{
if
(
!
data
)
{
// 没有在其他设备
const
{
deviceId
}
=
query
// 加入设备
this
.
$request
({
url
:
'/api/gaming'
,
method
:
'post'
,
...
...
@@ -43,6 +55,14 @@ export default {
}).
then
(({
data
})
=>
{
this
.
$router
.
replace
({
path
:
'/loading'
,
query
,
})
})
return
}
const
{
id
}
=
data
if
(
id
)
{
if
(
this
.
$route
.
name
!==
'index-game'
)
{
this
.
$router
.
replace
(
`/game?id=
${
id
}
`
)
}
}
})
},
}
...
...
pages/index/game/index.vue
View file @
4a3e4daa
...
...
@@ -203,6 +203,7 @@ export default {
color
:
#dbd5d0
;
font-size
:
18px
;
font-weight
:
bold
;
z-index
:
22
;
}
.bg
{
width
:
100%
;
...
...
@@ -210,12 +211,14 @@ export default {
position
:
absolute
;
left
:
0
;
top
:
0
;
z-index
:
20
;
}
.top-icon
{
top
:
1px
;
right
:
5px
;
width
:
70px
;
position
:
absolute
;
z-index
:
21
;
}
@keyframes
twinkle
{
from
{
...
...
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