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
0e7dadb3
Commit
0e7dadb3
authored
Jul 07, 2023
by
毛线
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
个人中心
parent
337c2955
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
197 additions
and
10 deletions
+197
-10
flag_banner_monthly.gif
assets/images/temp/game/flag_banner_monthly.gif
+0
-0
index.vue
components/dialog/user-dialog/index.vue
+26
-7
info.vue
components/dialog/user-dialog/info.vue
+17
-1
record-item.vue
components/dialog/user-dialog/record-item.vue
+120
-0
record.vue
components/dialog/user-dialog/record.vue
+28
-2
plugins.js
plugins/plugins.js
+6
-0
No files found.
assets/images/temp/game/flag_banner_monthly.gif
0 → 100644
View file @
0e7dadb3
629 KB
components/dialog/user-dialog/index.vue
View file @
0e7dadb3
...
@@ -3,14 +3,14 @@
...
@@ -3,14 +3,14 @@
<div
class=
"mark"
/>
<div
class=
"mark"
/>
<div
class=
"dlalog"
>
<div
class=
"dlalog"
>
<img
class=
"close btn"
src=
"https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/Textures/second/Rectangle%201175%20copy.png"
alt=
""
@
click=
"visible = false"
>
<img
class=
"close btn"
src=
"https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/Textures/second/Rectangle%201175%20copy.png"
alt=
""
@
click=
"visible = false"
>
<div
class=
"
dialog-content
"
>
<div
class=
"
box
"
>
<Tab
@
on-change=
"(index) =>
{ tabIndex = index}"/>
<Tab
@
on-change=
"(index) =>
{ tabIndex = index}"/>
<div
style=
"padding: 2px
;"
>
<div
class=
"dialog-content"
style=
"padding: 2px; flex: 1; overflow: auto
;"
>
<Load>
<Load>
<!-- 个人资料 -->
<!-- 个人资料 -->
<Info
v-show=
"tabIndex === 0"
:level-current=
"levelCurrent"
:latest-achievement=
"latestAchievement"
/>
<Info
v-show=
"tabIndex === 0"
:level-current=
"levelCurrent"
:latest-achievement=
"latestAchievement"
/>
<!-- 游戏记录 -->
<!-- 游戏记录 -->
<Record
v-show=
"tabIndex === 1"
/>
<Record
v-show=
"tabIndex === 1"
:data=
"lastGame"
/>
<!-- 分数转账表 -->
<!-- 分数转账表 -->
<ScoreLog
v-show=
"tabIndex === 2"
/>
<ScoreLog
v-show=
"tabIndex === 2"
/>
</Load>
</Load>
...
@@ -47,9 +47,15 @@ export default {
...
@@ -47,9 +47,15 @@ export default {
visible
:
false
,
visible
:
false
,
tabIndex
:
0
,
tabIndex
:
0
,
levelCurrent
:
{},
levelCurrent
:
{},
latestAchievement
:
{},
latestAchievement
:
{},
// 个人功绩
lastGame
:
[],
// 游戏记录
}
}
},
},
watch
:
{
tabIndex
()
{
this
.
network
().
lastGame
()
},
},
methods
:
{
methods
:
{
show
()
{
show
()
{
this
.
visible
=
true
this
.
visible
=
true
...
@@ -74,6 +80,14 @@ export default {
...
@@ -74,6 +80,14 @@ export default {
this
.
latestAchievement
=
data
this
.
latestAchievement
=
data
})
})
},
},
lastGame
:
()
=>
{
this
.
$request
({
url
:
'/api/player/user/lastGame'
,
method
:
'get'
,
}).
then
(({
rows
})
=>
{
this
.
lastGame
=
rows
})
},
}
}
},
},
},
},
...
@@ -119,11 +133,16 @@ export default {
...
@@ -119,11 +133,16 @@ export default {
border-radius
:
100px
;
border-radius
:
100px
;
border
:
3px
solid
white
;
border
:
3px
solid
white
;
}
}
.
dialog-content
{
.
box
{
margin
:
0
22px
00px
24px
;
margin
:
0
22px
00px
24px
;
height
:
100%
;
height
:
100%
;
display
:
flex
;
flex-direction
:
column
;
.dialog-content
{
background-color
:
#003649
;
background-color
:
#003649
;
background-image
:
linear-gradient
(
#004156
,
#00212e
);
background-image
:
linear-gradient
(
#004156
,
#00212e
);
background-image
:
linear-gradient
(
#00212e
,
#004156
);
}
}
}
}
}
}
}
...
...
components/dialog/user-dialog/info.vue
View file @
0e7dadb3
...
@@ -2,7 +2,11 @@
...
@@ -2,7 +2,11 @@
<div>
<div>
<div
class=
"block-1"
>
<div
class=
"block-1"
>
<div
class=
"avatar-block"
>
<div
class=
"avatar-block"
>
<img
class=
"edit btn"
src=
"https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/Textures/second/edit_button.png"
alt=
""
>
<img
class=
"edit btn"
src=
"https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/Textures/second/edit_button.png"
alt=
""
@
click=
"click().edit()"
>
<img
v-if=
"userInfo.avatar"
:src=
"userInfo.avatar | img"
alt=
""
class=
"avatar"
>
<img
v-if=
"userInfo.avatar"
:src=
"userInfo.avatar | img"
alt=
""
class=
"avatar"
>
<img
v-else
class=
"avatar"
src=
"https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/Textures/head2.png"
alt=
""
>
<img
v-else
class=
"avatar"
src=
"https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/Textures/head2.png"
alt=
""
>
<div
class=
"name"
>
<div
class=
"name"
>
...
@@ -100,6 +104,18 @@ export default {
...
@@ -100,6 +104,18 @@ export default {
'userInfo'
,
'userInfo'
,
]),
]),
},
},
methods
:
{
click
()
{
return
{
edit
:
()
=>
{
this
.
$message
({
message
:
'功能维护中...'
,
type
:
'warning'
})
},
}
},
},
}
}
</
script
>
</
script
>
...
...
components/dialog/user-dialog/record-item.vue
0 → 100644
View file @
0e7dadb3
<
template
>
<div
class=
"record"
>
<div
class=
"info-block"
>
<div
class=
"time"
>
<div
style=
"font-size: 16px;"
>
最后登入机器
</div>
<div>
2023-07-06
</div>
<div>
23:23:23
</div>
</div>
<div
class=
"game-img"
>
<div
class=
"box"
>
<img
:src=
"data.gameImg | img"
alt=
""
>
</div>
</div>
<div
class=
"info"
>
<!-- 空闲 -->
<img
v-show=
"data.deviceStatus === 1"
class=
"state-img"
src=
"https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/Textures/chinese/Available_zh.png"
alt=
""
>
<!-- 异常 -->
<img
v-show=
"data.deviceStatus === 2"
class=
"state-img"
src=
"https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/Textures/second/In%20Service.png"
alt=
""
>
<!-- 游戏中 -->
<img
v-show=
"data.deviceStatus === 3"
class=
"state-img"
src=
"https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/Textures/second/Occupied.png"
alt=
""
>
<div>
游戏名称:
{{
data
.
gameNameEn
}}
</div>
<div>
机台号:
{{
data
.
egmId
}}
</div>
<div>
最高投注额:
{{
data
.
maxBet
}}
</div>
<div>
多选注额:
{{
data
.
multidenom
}}
</div>
</div>
</div>
<div
class=
"data"
>
<div
class=
"column"
>
<div>
下注
</div>
<div>
输/赢
</div>
<div>
游戏
</div>
<div>
彩金记录
</div>
<div>
总游戏时间
</div>
</div>
<div
class=
"row"
>
<div>
0.00
</div>
<div>
0.00
</div>
<div>
{{
data
.
gameNameEn
}}
</div>
<div>
0.00
</div>
<div>
{{
data
.
sessionLengthDisplay
}}
</div>
</div>
</div>
</div>
</
template
>
<
script
>
export
default
{
props
:
{
data
:
{
type
:
Object
,
default
:
()
=>
{
return
{}
},
},
},
}
</
script
>
<
style
lang=
"scss"
scoped
>
.record
{
color
:
#14afbb
;
border-bottom
:
1px
solid
#cccccc
17
;
margin-top
:
6px
;
margin-bottom
:
12px
;
.info-block
{
display
:
flex
;
.time
{
flex
:
1
;
text-align
:
right
;
padding
:
6px
12px
;
font-size
:
14px
;
line-height
:
20px
;
}
.game-img
{
padding
:
6px
12px
;
flex
:
1
;
.box
{
border
:
1px
solid
#006643
;
border-radius
:
10px
;
overflow
:
hidden
;
img
{
height
:
106px
;
display
:
block
;
margin
:
auto
;
}
}
}
.info
{
flex
:
1
;
padding
:
6px
12px
;
font-size
:
14px
;
font-size
:
12px
;
.state-img
{
height
:
30px
;
}
}
}
.data
{
text-align
:
center
;
font-size
:
12px
;
padding
:
10px
;
.column
{
display
:
flex
;
background-image
:
linear-gradient
(
#004156
,
#00212e
);
>
div
{
flex
:
1
;
padding
:
3px
;
color
:
#f8d140
;
}
}
.row
{
display
:
flex
;
>
div
{
flex
:
1
;
padding
:
3px
;
}
}
}
}
</
style
>
components/dialog/user-dialog/record.vue
View file @
0e7dadb3
<
template
>
<
template
>
<div>
<div
class=
"list"
>
<
span
style=
"padding: 8px;"
>
开发中...
</span
>
<
RecordItem
v-for=
"(item, index) in data"
ref=
"item"
:key=
"index"
:data=
"item"
/
>
</div>
</div>
</
template
>
</
template
>
<
script
>
import
RecordItem
from
'./record-item'
export
default
{
components
:
{
RecordItem
,
},
props
:
{
data
:
{
type
:
Array
,
default
:
()
=>
{
return
[]
},
},
},
data
()
{
return
{}
},
}
</
script
>
<
style
lang=
"scss"
scoped
>
.list
{
overflow
:
auto
;
}
</
style
>
plugins/plugins.js
View file @
0e7dadb3
...
@@ -6,6 +6,12 @@ Vue.mixin(indexMixins)
...
@@ -6,6 +6,12 @@ Vue.mixin(indexMixins)
import
VueClipboard
from
'vue-clipboard2'
// 复制组件
import
VueClipboard
from
'vue-clipboard2'
// 复制组件
Vue
.
use
(
VueClipboard
)
// 复制组件
Vue
.
use
(
VueClipboard
)
// 复制组件
import
{
Message
,
}
from
'element-ui'
Vue
.
prototype
.
$message
=
Message
Vue
.
filter
(
'img'
,
function
(
value
)
{
Vue
.
filter
(
'img'
,
function
(
value
)
{
return
`
${
process
.
env
.
img_domain
}${
value
}
`
return
`
${
process
.
env
.
img_domain
}${
value
}
`
})
})
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