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
f936aefc
Commit
f936aefc
authored
Oct 12, 2023
by
毛线
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save
parent
bb1a6ad9
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
84 additions
and
31 deletions
+84
-31
relation.svg
assets/icons/svg/relation.svg
+1
-0
index.vue
components/common/header/index.vue
+43
-16
device.vue
components/dialog/device.vue
+8
-5
tab.vue
components/dialog/user-dialog/tab.vue
+1
-1
keyboard.vue
pages/index/game/components/keyboard.vue
+10
-4
login.vue
pages/login.vue
+15
-5
plugins.js
plugins/plugins.js
+6
-0
No files found.
assets/icons/svg/relation.svg
0 → 100644
View file @
f936aefc
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg
t=
"1697098334992"
class=
"icon"
viewBox=
"0 0 1024 1024"
version=
"1.1"
xmlns=
"http://www.w3.org/2000/svg"
p-id=
"4175"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
width=
"200"
height=
"200"
><path
d=
"M702.3 364c-41.2 0-79.4 18.8-113.1 41.9-26.3 18.1-52.3 40.6-77.2 63.1-24.9-22.6-50.9-45.1-77.2-63.1-33.7-23.2-71.9-41.9-113.1-41.9-81 0-148 67.1-148 148s67.1 148 148 148c41.2 0 79.4-18.8 113.1-41.9 26.3-18.1 52.3-40.6 77.2-63.1 24.9 22.6 50.9 45.1 77.2 63.1 33.7 23.2 71.9 41.9 113.1 41.9 81 0 148-67.1 148-148s-67-148-148-148zM398.9 565.8c-29.7 20.4-55 30.8-77.2 30.8-45.9 0-84.6-38.7-84.6-84.6s38.7-84.6 84.6-84.6c22.2 0 47.4 10.3 77.2 30.8 21.5 14.8 43.3 33.4 66 53.8-22.7 20.4-44.5 39-66 53.8z m303.4 30.8c-22.2 0-47.4-10.3-77.2-30.8-21.5-14.8-43.3-33.4-66-53.8 22.7-20.4 44.5-39 66-53.8 29.7-20.4 55-30.8 77.2-30.8 45.9 0 84.6 38.7 84.6 84.6s-38.7 84.6-84.6 84.6z"
p-id=
"4176"
></path></svg>
\ No newline at end of file
components/common/header/index.vue
View file @
f936aefc
...
...
@@ -14,7 +14,7 @@
<img
src=
"https://kuawai.s3.ap-east-1.amazonaws.com/temp/header/gold-coin.png"
alt=
""
>
</div>
<div
class=
"value"
>
{{
userInfo
.
goldCredit
}}
{{
userInfo
.
goldCredit
|
filterToFen
}}
</div>
</div>
<div
class=
"input-box"
>
...
...
@@ -22,7 +22,7 @@
<img
src=
"https://kuawai.s3.ap-east-1.amazonaws.com/temp/header/red-coin.png"
alt=
""
>
</div>
<div
class=
"value"
>
{{
userInfo
.
redCredit
}}
{{
userInfo
.
redCredit
|
filterToFen
}}
</div>
</div>
<div
class=
"center-bg"
/>
...
...
@@ -95,6 +95,7 @@ export default {
'userInfo'
,
'device'
,
'hideHeader'
,
'device'
,
]),
},
created
()
{
...
...
@@ -154,23 +155,49 @@ export default {
}
},
quitGame
()
{
const
{
id
}
=
this
.
$route
.
query
const
{
device
}
=
this
console
.
log
(
'当前device'
,
device
)
const
{
id
,
egmId
}
=
device
const
params
=
{
deviceId
:
id
,
}
this
.
$request
({
url
:
'/api/app/device/quitDevice'
,
method
:
'get'
,
params
,
}).
then
(({
data
})
=>
{
console
.
log
(
'退出游戏页面'
)
}).
catch
(()
=>
{
// if (this.$route.query.redirectUrl) { // 如果有回调地址,返回游戏页面
// redirectBDUrl(this.$route.query.redirectUrl)
// } else {
// location.reload()
// }
})
if
(
egmId
===
24
)
{
// 暂时写死,24号机子退出之前要调用清空方法
const
buttonParams
=
{
deviceId
:
id
,
methodName
:
'click'
,
key
:
9
,
}
this
.
$request
({
url
:
'/api/game/button'
,
method
:
'get'
,
params
:
buttonParams
,
toast
:
false
,
}).
then
(({
data
})
=>
{
this
.
$request
({
url
:
'/api/app/device/quitDevice'
,
method
:
'get'
,
params
,
}).
then
(({
data
})
=>
{
console
.
log
(
'退出游戏页面'
)
}).
catch
(()
=>
{
})
}).
catch
(()
=>
{
})
}
else
{
this
.
$request
({
url
:
'/api/app/device/quitDevice'
,
method
:
'get'
,
params
,
}).
then
(({
data
})
=>
{
console
.
log
(
'退出游戏页面'
)
}).
catch
(()
=>
{
// if (this.$route.query.redirectUrl) { // 如果有回调地址,返回游戏页面
// redirectBDUrl(this.$route.query.redirectUrl)
// } else {
// location.reload()
// }
})
}
},
},
}
...
...
components/dialog/device.vue
View file @
f936aefc
...
...
@@ -73,7 +73,7 @@
</div>
<div
class=
"input"
>
<UiInput
:value=
"data.lastCashOut"
:value=
"data.lastCashOut
| filterToFen
"
:bg-height=
"30"
:line-height=
"24"
:margin-left=
"-40"
...
...
@@ -88,7 +88,7 @@
</div>
<div
class=
"input"
>
<UiInput
:value=
"data.maxBet"
:value=
"data.maxBet
| filterToFen
"
:bg-height=
"30"
:line-height=
"24"
:margin-left=
"-40"
...
...
@@ -103,7 +103,7 @@
</div>
<div
class=
"input"
>
<UiInput
:value=
"data.topWinHistory"
:value=
"data.topWinHistory
| filterToFen
"
:bg-height=
"30"
:line-height=
"24"
:margin-left=
"-40"
...
...
@@ -215,10 +215,13 @@ export default {
width
:
263px
;
/* background-color: rgba(255, 0, 0, 0.346); */
margin-left
:
32px
;
display
:
flex
;
flex-direction
:
column
;
justify-content
:
space-evenly
;
.title
{
font-size
:
24px
;
text-shadow
:
0px
0px
5px
#091538
;
padding
:
2
0px
10px
;
padding
:
0px
10px
;
color
:
#f2ea07
;
font-weight
:
bold
;
text-align
:
center
;
...
...
@@ -246,7 +249,7 @@ export default {
font-weight
:
bold
;
color
:
#f2ea07
;
text-align
:
center
;
padding
:
8
px
;
padding
:
0
8px
10
px
;
}
}
.right-box
{
...
...
components/dialog/user-dialog/tab.vue
View file @
f936aefc
...
...
@@ -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-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
v-if=
"index === 0"
class=
"version"
>
{{
`1.0.0
39
`
}}
</div>
<div
v-if=
"index === 0"
class=
"version"
>
{{
`1.0.0
40
`
}}
</div>
</div>
</div>
</div>
...
...
pages/index/game/components/keyboard.vue
View file @
f936aefc
...
...
@@ -48,11 +48,14 @@
<img
v-show=
"isAuto"
src=
"https://kuawai.s3.ap-east-1.amazonaws.com/temp/game/auto-time-button.png"
alt=
""
class=
"auto-btn btn down"
@
click=
"click().cancelAuto()"
>
<div
v-if=
"isAuto"
:style=
"autoTime === -1 ? 'font-size: 40px;' : ''"
class=
"auto-time-text btn"
@
click=
"click().cancelAuto()"
>
<div
class=
"tips"
>
DOUBLE CLICK TO STOP AUTO-SPINNING
</div>
{{
autoTime
|
autoTimeFilter
}}
<span
v-if=
"autoTime !== -1"
>
{{
autoTime
|
autoTimeFilter
}}
</span>
<span
v-else
><svg-icon
icon-class=
"relation"
class=
"relation-icon"
/></span>
</div>
<div
class=
"auto-time-block"
>
<div
:class=
"showTime ? 'show' : ''"
class=
"auto-time"
>
<div
class=
"auto-time-item btn"
style=
"font-size: 24px"
@
click=
"click().setAutoPlay(-1)"
>
∞
</div>
<div
class=
"auto-time-item btn relation"
style=
"font-size: 24px"
@
click=
"click().setAutoPlay(-1)"
>
<svg-icon
icon-class=
"relation"
class=
"relation-icon"
/>
</div>
<div
v-for=
"time in autoTimeList"
:key=
"time"
class=
"auto-time-item btn"
@
click=
"click().setAutoPlay(time)"
>
{{
time
}}
min
</div>
</div>
</div>
...
...
@@ -145,11 +148,14 @@
<img
v-show=
"isAuto"
src=
"https://kuawai.s3.ap-east-1.amazonaws.com/temp/game/auto-time-button.png"
alt=
""
class=
"auto-btn btn down"
@
click=
"click().cancelAuto()"
>
<div
v-if=
"isAuto"
:style=
"autoTime === -1 ? 'font-size: 40px;' : ''"
class=
"auto-time-text btn"
@
click=
"click().cancelAuto()"
>
<div
class=
"tips"
>
DOUBLE CLICK TO STOP AUTO-SPINNING
</div>
{{
autoTime
|
autoTimeFilter
}}
<span
v-if=
"autoTime !== -1"
>
{{
autoTime
|
autoTimeFilter
}}
</span>
<span
v-else
><svg-icon
icon-class=
"relation"
class=
"relation-icon"
/></span>
</div>
<div
class=
"auto-time-block"
>
<div
:class=
"showTime ? 'show' : ''"
class=
"auto-time"
>
<div
class=
"auto-time-item btn"
style=
"font-size: 24px"
@
click=
"click().setAutoPlay(-1)"
>
∞
</div>
<div
class=
"auto-time-item btn relation"
style=
"font-size: 24px"
@
click=
"click().setAutoPlay(-1)"
>
<svg-icon
icon-class=
"relation"
class=
"relation-icon"
/>
</div>
<div
v-for=
"time in autoTimeList"
:key=
"time"
class=
"auto-time-item btn"
@
click=
"click().setAutoPlay(time)"
>
{{
time
}}
min
</div>
</div>
</div>
...
...
pages/login.vue
View file @
f936aefc
...
...
@@ -36,7 +36,7 @@
trigger=
"click"
class=
"carousel"
indicator-position=
"outside"
>
<el-carousel-item
v-for=
"
item in carousel"
:key=
"item
"
>
<el-carousel-item
v-for=
"
(item, index) in carousel"
:key=
"index
"
>
<img
:src=
"item.img"
class=
""
alt=
""
>
<div
class=
"title"
>
{{
item
.
title
}}
</div>
<div
class=
"des"
>
{{
item
.
des
}}
</div>
...
...
@@ -81,11 +81,21 @@ export default {
remember
:
true
,
}
},
created
()
{
this
.
SetVolumeMachine
(
50
)
this
.
SetVolumeBg
(
50
)
this
.
SetVolumeButton
(
50
)
},
methods
:
{
...
mapActions
({
Login
:
'Login'
,
GetBaseInfo
:
'GetBaseInfo'
,
}),
...
mapActions
([
'Login'
,
'GetBaseInfo'
,
]),
...
mapMutations
(
'audio'
,
[
'SetVolumeMachine'
,
'SetVolumeBg'
,
'SetVolumeButton'
,
]),
test
()
{
console
.
log
(
'test'
)
},
...
...
plugins/plugins.js
View file @
f936aefc
...
...
@@ -27,6 +27,9 @@ Vue.filter('img', function(value) {
})
Vue
.
filter
(
'filterToMoney'
,
function
(
num
)
{
if
(
typeof
num
!==
'number'
)
{
return
num
}
num
=
num
.
toFixed
(
2
)
num
=
parseFloat
(
num
)
num
=
num
.
toLocaleString
()
...
...
@@ -34,6 +37,9 @@ Vue.filter('filterToMoney', function(num) {
})
Vue
.
filter
(
'filterToFen'
,
function
(
num
)
{
if
(
typeof
num
!==
'number'
)
{
return
num
}
num
=
num
.
toFixed
(
2
)
const
arr
=
(
num
+
''
).
split
(
'.'
)
num
=
arr
[
0
]
...
...
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