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
d1f86742
Commit
d1f86742
authored
Jul 12, 2023
by
毛线
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
02f2fdc9
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
11 deletions
+15
-11
index.vue
components/common/header/index.vue
+5
-1
index.vue
pages/index.vue
+5
-1
WebRTCPlayer.vue
pages/index/game/components/WebRTCPlayer.vue
+1
-1
keyboard.vue
pages/index/game/components/keyboard.vue
+3
-6
images.json
pages/loading/data/images.json
+1
-2
No files found.
components/common/header/index.vue
View file @
d1f86742
...
@@ -163,7 +163,11 @@ export default {
...
@@ -163,7 +163,11 @@ export default {
}).
then
(({
data
})
=>
{
}).
then
(({
data
})
=>
{
console
.
log
(
'退出游戏页面'
)
console
.
log
(
'退出游戏页面'
)
}).
catch
(()
=>
{
}).
catch
(()
=>
{
location
.
reload
()
if
(
this
.
$route
.
query
.
redirectUrl
)
{
// 如果有回调地址,返回游戏页面
location
.
replace
(
this
.
$route
.
query
.
redirectUrl
)
}
else
{
location
.
reload
()
}
})
})
},
},
},
},
...
...
pages/index.vue
View file @
d1f86742
...
@@ -39,7 +39,11 @@ export default {
...
@@ -39,7 +39,11 @@ export default {
},
},
watch
:
{
watch
:
{
relist
()
{
relist
()
{
this
.
$router
.
replace
(
`/login`
)
if
(
this
.
$route
.
query
.
redirectUrl
)
{
// 如果有回调地址,返回游戏页面
location
.
replace
(
this
.
$route
.
query
.
redirectUrl
)
}
else
{
this
.
$router
.
replace
(
'/login'
)
}
},
},
userInfo
()
{
userInfo
()
{
if
(
!
this
.
imLoginStatus
)
{
if
(
!
this
.
imLoginStatus
)
{
...
...
pages/index/game/components/WebRTCPlayer.vue
View file @
d1f86742
<
template
>
<
template
>
<video
ref=
"jswebrtc"
style=
"width: 100%;height: 100%;object-fit: fill"
webkit-
playsinline
@
click=
"(e) => handler().click(e)"
/>
<video
ref=
"jswebrtc"
style=
"width: 100%;height: 100%;object-fit: fill"
playsinline
@
click=
"(e) => handler().click(e)"
/>
</
template
>
</
template
>
<
script
>
<
script
>
...
...
pages/index/game/components/keyboard.vue
View file @
d1f86742
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
<!-- play -->
<!-- play -->
<div
class=
"play-btn btn"
@
click=
"click().play()"
>
<div
class=
"play-btn btn"
@
click=
"click().play()"
>
<img
v-audio
src=
"https://kuawai.s3.ap-east-1.amazonaws.com/
temp/game/play-button
.png"
alt=
""
>
<img
v-audio
src=
"https://kuawai.s3.ap-east-1.amazonaws.com/
resource/assets/Textures/gameMore/play_button1
.png"
alt=
""
>
</div>
</div>
<!-- 自动下注 -->
<!-- 自动下注 -->
<div
v-audio
class=
"auto"
>
<div
v-audio
class=
"auto"
>
...
@@ -379,16 +379,13 @@ export default {
...
@@ -379,16 +379,13 @@ export default {
.play-btn
{
.play-btn
{
position
:
absolute
;
position
:
absolute
;
right
:
10
0
px
;
right
:
10
8
px
;
bottom
:
26px
;
bottom
:
26px
;
overflow
:
visible
;
overflow
:
visible
;
width
:
90px
;
width
:
90px
;
height
:
90px
;
height
:
90px
;
img
{
img
{
width
:
186px
;
width
:
100%
;
position
:
absolute
;
left
:
-48px
;
bottom
:
-5px
;
user-select
:
none
;
user-select
:
none
;
pointer-events
:
none
;
pointer-events
:
none
;
}
}
...
...
pages/loading/data/images.json
View file @
d1f86742
...
@@ -27,7 +27,6 @@
...
@@ -27,7 +27,6 @@
"https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/Textures/-s-eye_glow_l02.png"
,
"https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/Textures/-s-eye_glow_l02.png"
,
"https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/Textures/-s-eye_glow_r01.png"
,
"https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/Textures/-s-eye_glow_r01.png"
,
"https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/Textures/-s-eye_glow_r02.png"
,
"https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/Textures/-s-eye_glow_r02.png"
,
"https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/Textures/1.png"
,
"https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/Textures/7.png"
,
"https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/Textures/7.png"
,
"https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/Textures/tip/tip_bg_b.png"
,
"https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/Textures/tip/tip_bg_b.png"
,
...
@@ -75,8 +74,8 @@
...
@@ -75,8 +74,8 @@
"https://kuawai.s3.ap-east-1.amazonaws.com/temp/header/gold-coin.png"
,
"https://kuawai.s3.ap-east-1.amazonaws.com/temp/header/gold-coin.png"
,
"https://kuawai.s3.ap-east-1.amazonaws.com/temp/header/red-coin.png"
,
"https://kuawai.s3.ap-east-1.amazonaws.com/temp/header/red-coin.png"
,
"https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/Textures/mobileKeyboard/creditIn.png"
,
"https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/Textures/mobileKeyboard/creditIn.png"
,
"https://kuawai.s3.ap-east-1.amazonaws.com/temp/game/play-button.png"
,
"https://kuawai.s3.ap-east-1.amazonaws.com/temp/game/auto-time-button.png"
,
"https://kuawai.s3.ap-east-1.amazonaws.com/temp/game/auto-time-button.png"
,
"https://kuawai.s3.ap-east-1.amazonaws.com/temp/game/player1.png"
,
"https://kuawai.s3.ap-east-1.amazonaws.com/temp/game/player1.png"
,
"https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/Textures/gameMore/play_button1.png"
,
"https://kuawai.s3.ap-east-1.amazonaws.com/temp/game/player2.png"
"https://kuawai.s3.ap-east-1.amazonaws.com/temp/game/player2.png"
]
]
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