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
acb381fe
Commit
acb381fe
authored
Aug 12, 2023
by
毛线
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save
parent
50270d7b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
tab.vue
components/dialog/user-dialog/tab.vue
+1
-1
right-player.vue
pages/index/game/components/right-player.vue
+4
-2
jswebrtc.min.js
utils/jswebrtc.min.js
+1
-1
No files found.
components/dialog/user-dialog/tab.vue
View file @
acb381fe
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<img
v-if=
"tabIndex === index"
class=
"tab-img"
src=
"https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/Textures/second/Rounded%20Rectangle%2019.png"
alt=
""
>
<img
v-if=
"tabIndex === index"
class=
"tab-img"
src=
"https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/Textures/second/Rounded%20Rectangle%2019.png"
alt=
""
>
<img
v-else
class=
"tab-img"
src=
"https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/Textures/second/last_game%20%E6%8B%B7%E8%B4%9D%202.png"
alt=
""
>
<img
v-else
class=
"tab-img"
src=
"https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/Textures/second/last_game%20%E6%8B%B7%E8%B4%9D%202.png"
alt=
""
>
<div
class=
"text"
>
{{
text
}}
</div>
<div
class=
"text"
>
{{
text
}}
</div>
<div
v-if=
"index === 0"
class=
"version"
>
{{
`1.0.0
19
`
}}
</div>
<div
v-if=
"index === 0"
class=
"version"
>
{{
`1.0.0
20
`
}}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
pages/index/game/components/right-player.vue
View file @
acb381fe
...
@@ -79,7 +79,8 @@ export default {
...
@@ -79,7 +79,8 @@ export default {
if
(
!
url
||
+
url
===
0
)
{
if
(
!
url
||
+
url
===
0
)
{
return
return
}
}
const
webrtc
=
`webrtc://eslotstreaming.com
${
url
}
`
console
.
log
(
'play1'
,
url
)
const
webrtc
=
url
.
includes
(
'webrtc'
)
?
url
:
`webrtc://eslotstreaming.com
${
url
}
`
this
.
$refs
.
player1
.
initVideo
(
webrtc
)
this
.
$refs
.
player1
.
initVideo
(
webrtc
)
},
},
play2
()
{
play2
()
{
...
@@ -87,7 +88,8 @@ export default {
...
@@ -87,7 +88,8 @@ export default {
if
(
!
url
||
+
url
===
0
)
{
if
(
!
url
||
+
url
===
0
)
{
return
return
}
}
const
webrtc
=
`webrtc://eslotstreaming.com
${
url
}
`
console
.
log
(
'play2'
,
url
)
const
webrtc
=
url
.
includes
(
'webrtc'
)
?
url
:
`webrtc://eslotstreaming.com
${
url
}
`
this
.
$refs
.
player2
.
initVideo
(
webrtc
)
this
.
$refs
.
player2
.
initVideo
(
webrtc
)
},
},
},
},
...
...
utils/jswebrtc.min.js
View file @
acb381fe
...
@@ -275,7 +275,7 @@ JSWebrtc.Player = function() {
...
@@ -275,7 +275,7 @@ JSWebrtc.Player = function() {
if
(
api
.
lastIndexOf
(
"/"
)
!=
api
.
length
-
1
)
{
if
(
api
.
lastIndexOf
(
"/"
)
!=
api
.
length
-
1
)
{
api
+=
"/"
api
+=
"/"
}
}
var
url
=
"https://"
+
_self
.
urlParams
.
server
+
":"
+
port
+
api
;
var
url
=
(
port
===
443
?
"https://"
:
'http://'
)
+
_self
.
urlParams
.
server
+
":"
+
port
+
api
;
for
(
var
key
in
_self
.
urlParams
.
user_query
)
{
for
(
var
key
in
_self
.
urlParams
.
user_query
)
{
if
(
key
!=
"api"
&&
key
!=
"play"
)
{
if
(
key
!=
"api"
&&
key
!=
"play"
)
{
url
+=
"&"
+
key
+
"="
+
_self
.
urlParams
.
user_query
[
key
]
url
+=
"&"
+
key
+
"="
+
_self
.
urlParams
.
user_query
[
key
]
...
...
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