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
e69e7700
Commit
e69e7700
authored
Jul 19, 2023
by
毛线
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
个人中心
parent
c8e9f872
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
200 additions
and
34 deletions
+200
-34
index.vue
components/dialog/user-dialog/index.vue
+1
-1
score-data-row.vue
components/dialog/user-dialog/score-data-row.vue
+119
-0
score-log.vue
components/dialog/user-dialog/score-log.vue
+80
-33
No files found.
components/dialog/user-dialog/index.vue
View file @
e69e7700
...
...
@@ -6,7 +6,7 @@
<div
class=
"box"
>
<Tab
@
on-change=
"(index) =>
{ tabIndex = index}"/>
<div
class=
"dialog-content"
>
<Load>
<Load
style=
"height: 100%;"
>
<!-- 个人资料 -->
<Info
v-show=
"tabIndex === 0"
:level-current=
"levelCurrent"
:latest-achievement=
"latestAchievement"
/>
<!-- 游戏记录 -->
...
...
components/dialog/user-dialog/score-data-row.vue
0 → 100644
View file @
e69e7700
<
template
>
<div
:class=
"
{ deep: index % 2 === 0, }" class="flex-box">
<div
class=
"left-box"
>
<div
class=
"date"
>
{{
data
.
createTime
|
filterData
}}
</div>
<div
class=
"time"
>
{{
data
.
createTime
|
filterTime
}}
</div>
</div>
<div
class=
"data-box"
>
<div
class=
"value-box"
>
<div
class=
"row"
>
<img
class=
"icon"
src=
"https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/Textures/second/coin.png"
alt=
""
>
{{
data
.
beginningCashBalance
}}
</div>
<div
class=
"row"
>
<img
class=
"icon"
src=
"https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/Textures/second/coin.png"
alt=
""
>
{{
data
.
cashableInAmount
}}
</div>
<div
class=
"row"
>
<img
class=
"icon"
src=
"https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/Textures/second/coin.png"
alt=
""
>
{{
data
.
endingCashBalance
}}
</div>
</div>
<div
class=
"line"
/>
<div
class=
"value-box"
>
<div
class=
"row"
>
<img
class=
"icon"
src=
"https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/Textures/second/ic_bi.png"
alt=
""
>
{{
data
.
beginningRestrictedBalance
}}
</div>
<div
class=
"row"
>
<img
class=
"icon"
src=
"https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/Textures/second/ic_bi.png"
alt=
""
>
0
</div>
<div
class=
"row"
>
<img
class=
"icon"
src=
"https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/Textures/second/ic_bi.png"
alt=
""
>
0
</div>
</div>
</div>
<div
class=
"right-box"
>
{{
data
.
detail
}}
</div>
</div>
</
template
>
<
script
>
export
default
{
filters
:
{
filterData
(
value
)
{
return
value
.
split
(
' '
)[
0
]
},
filterTime
(
value
)
{
return
value
.
split
(
' '
)[
1
]
},
},
props
:
{
data
:
{
type
:
Object
,
default
:
()
=>
{
return
{}
},
},
index
:
{
type
:
Number
,
default
:
0
,
},
},
}
</
script
>
<
style
lang=
"scss"
scoped
>
.flex-box
{
display
:
flex
;
height
:
80px
;
&
.deep
{
background
:
#004156
;
}
.left-box
,
.right-box
{
width
:
130px
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
justify-content
:
center
;
text-align
:
center
;
.date
{
font-size
:
12px
;
}
}
.right-box
{
width
:
140px
;
}
.data-box
{
flex
:
1
;
display
:
flex
;
flex-direction
:
column
;
justify-content
:
center
;
.value-box
{
display
:
flex
;
// justify-content: space-around;
line-height
:
32px
;
.row
{
display
:
flex
;
// justify-content: center;
align-items
:
center
;
width
:
33%
;
font-size
:
12px
;
.icon
{
display
:
block
;
height
:
24px
;
margin-right
:
4px
;
}
}
}
.line
{
flex
:
none
;
height
:
1px
;
background
:
color
(
srgb
0
.0303
0
.3369
0
.47
);
}
}
}
</
style
>
components/dialog/user-dialog/score-log.vue
View file @
e69e7700
...
...
@@ -13,38 +13,79 @@
<div
class=
"end"
>
结束金额
</div>
<div
class=
"remark"
>
备注
</div>
</div>
<div
class=
"table"
>
<ScoreRow
v-for=
"(item, index) in list"
:key=
"index"
:data=
"item"
:index=
"index"
/>
</div>
</div>
</
template
>
<
script
>
import
SoreBtn
from
'./score-log-btn'
import
ScoreRow
from
'./score-data-row'
export
default
{
components
:
{
SoreBtn
,
ScoreRow
,
},
data
()
{
return
{
index
:
0
,
list
:
[],
// 消息列表
}
},
watch
:
{
index
()
{
this
.
network
().
getData
(
this
.
index
)
},
},
created
()
{
this
.
network
().
getData
(
this
.
index
)
},
methods
:
{
network
()
{
return
{
getData
:
(
type
)
=>
{
const
params
=
{}
if
(
type
)
{
params
.
filterType
=
type
}
this
.
list
=
[]
this
.
$request
({
url
:
'/api/player/user/creditTransferLog'
,
method
:
'get'
,
params
,
}).
then
(({
rows
})
=>
{
console
.
log
(
'creditTransferLog data'
,
{
...
rows
[
0
]
})
this
.
list
=
rows
})
},
}
},
},
}
</
script
>
<
style
lang=
"scss"
scoped
>
.btn-block
{
.score-block
{
display
:
flex
;
flex-direction
:
column
;
overflow
:
auto
;
height
:
100%
;
.btn-block
{
display
:
flex
;
position
:
relative
;
z-index
:
100
;
flex
:
1
;
gap
:
4px
;
flex
:
none
;
.btn
{
flex
:
1
;
&
.active
{
border-color
:
#25f4e3
;
}
}
}
.header
{
}
.header
{
display
:
flex
;
text-align
:
center
;
background-image
:
url(https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/Textures/second/%E7%9F%A9%E5%BD%A2%202.png)
;
...
...
@@ -56,10 +97,10 @@ export default {
font-weight
:
bold
;
margin-top
:
4px
;
.date
{
width
:
20
0px
;
width
:
18
0px
;
}
.start
{
width
:
20
0px
;
width
:
16
0px
;
}
.change
{
width
:
160px
;
...
...
@@ -70,5 +111,11 @@ export default {
.remark
{
width
:
160px
;
}
}
.table
{
flex
:
1
;
overflow
:
auto
;
}
}
</
style
>
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