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
818fda9c
Commit
818fda9c
authored
Jul 12, 2023
by
毛线
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
弹窗封装
parent
ea71c849
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
5 deletions
+3
-5
keyboard.vue
pages/index/game/components/keyboard.vue
+1
-1
index.vue
pages/index/game/index.vue
+2
-3
axios.js
plugins/axios.js
+0
-1
No files found.
pages/index/game/components/keyboard.vue
View file @
818fda9c
...
@@ -349,7 +349,7 @@ export default {
...
@@ -349,7 +349,7 @@ export default {
}
}
}
}
.right-option
{
.right-option
{
width
:
6
06
px
;
width
:
6
40
px
;
margin-left
:
20px
;
margin-left
:
20px
;
margin-bottom
:
4px
;
margin-bottom
:
4px
;
background-image
:
url(https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/Textures/second/ic_bottom_01.png)
;
background-image
:
url(https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/Textures/second/ic_bottom_01.png)
;
...
...
pages/index/game/index.vue
View file @
818fda9c
...
@@ -71,7 +71,7 @@ export default {
...
@@ -71,7 +71,7 @@ export default {
},
},
watch
:
{
watch
:
{
device
()
{
device
()
{
console
.
log
(
'watch device'
,
this
.
device
)
console
.
log
(
'watch device'
,
{
...
this
.
device
}
)
this
.
init
().
play
()
this
.
init
().
play
()
},
},
},
},
...
@@ -92,7 +92,6 @@ export default {
...
@@ -92,7 +92,6 @@ export default {
play
:
()
=>
{
play
:
()
=>
{
const
url
=
this
.
device
?.
videoMainNumber
const
url
=
this
.
device
?.
videoMainNumber
const
webrtc
=
`webrtc://eslotstreaming.com
${
url
}
`
const
webrtc
=
`webrtc://eslotstreaming.com
${
url
}
`
console
.
log
(
'device'
,
{
...
this
.
device
})
this
.
$refs
.
webrtc
.
initVideo
(
webrtc
)
this
.
$refs
.
webrtc
.
initVideo
(
webrtc
)
this
.
isPlay
=
true
this
.
isPlay
=
true
},
},
...
@@ -114,7 +113,7 @@ export default {
...
@@ -114,7 +113,7 @@ export default {
data
.
keyMapping
=
JSON
.
parse
(
data
.
keyMapping
)
data
.
keyMapping
=
JSON
.
parse
(
data
.
keyMapping
)
this
.
deviceButtonPanel
=
data
this
.
deviceButtonPanel
=
data
const
{
keyMapping
}
=
data
const
{
keyMapping
}
=
data
console
.
log
(
'
keyMapping
'
,
keyMapping
)
console
.
log
(
'
键盘数据
'
,
keyMapping
)
})
})
},
},
isSave
:
()
=>
{
isSave
:
()
=>
{
...
...
plugins/axios.js
View file @
818fda9c
...
@@ -4,7 +4,6 @@ import { getToken } from '@/utils/auth' // 验权
...
@@ -4,7 +4,6 @@ import { getToken } from '@/utils/auth' // 验权
const
service
=
({
$axios
,
app
},
inject
)
=>
{
const
service
=
({
$axios
,
app
},
inject
)
=>
{
$axios
.
interceptors
.
request
.
use
(
$axios
.
interceptors
.
request
.
use
(
(
config
)
=>
{
(
config
)
=>
{
console
.
log
(
'config'
,
config
)
if
(
!
config
.
url
.
includes
(
'/api/player/login'
))
{
if
(
!
config
.
url
.
includes
(
'/api/player/login'
))
{
config
.
headers
[
'Authorization'
]
=
getToken
()
config
.
headers
[
'Authorization'
]
=
getToken
()
}
}
...
...
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