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
be51df44
Commit
be51df44
authored
Jul 06, 2023
by
毛线
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save
parent
5a8b251c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
3 deletions
+53
-3
index.vue
components/dialog/user-dialog/index.vue
+15
-1
info.vue
components/dialog/user-dialog/info.vue
+38
-2
No files found.
components/dialog/user-dialog/index.vue
View file @
be51df44
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
<Tab
@
on-change=
"(index) =>
{ tabIndex = index}"/>
<Tab
@
on-change=
"(index) =>
{ tabIndex = index}"/>
<Load>
<Load>
<!-- 个人资料 -->
<!-- 个人资料 -->
<Info
v-show=
"tabIndex === 0"
/>
<Info
v-show=
"tabIndex === 0"
:level-current=
"levelCurrent"
/>
<!-- 游戏记录 -->
<!-- 游戏记录 -->
<Record
v-show=
"tabIndex === 1"
/>
<Record
v-show=
"tabIndex === 1"
/>
<!-- 分数转账表 -->
<!-- 分数转账表 -->
...
@@ -44,11 +44,25 @@ export default {
...
@@ -44,11 +44,25 @@ export default {
return
{
return
{
visible
:
false
,
visible
:
false
,
tabIndex
:
0
,
tabIndex
:
0
,
levelCurrent
:
{},
}
}
},
},
methods
:
{
methods
:
{
show
()
{
show
()
{
this
.
visible
=
true
this
.
visible
=
true
this
.
network
().
levelCurrent
()
},
network
()
{
return
{
levelCurrent
:
()
=>
{
this
.
$request
({
url
:
'/api/player/level/current'
,
method
:
'get'
,
}).
then
(({
data
})
=>
{
this
.
levelCurrent
=
data
})
},
}
},
},
},
},
}
}
...
...
components/dialog/user-dialog/info.vue
View file @
be51df44
...
@@ -21,7 +21,12 @@
...
@@ -21,7 +21,12 @@
</div>
</div>
<div
class=
"gold-block"
>
<div
class=
"gold-block"
>
<div
class=
"card-box"
>
<div
class=
"card-box"
>
card
<template
v-if=
"userInfo.id"
>
<img
:src=
"cardImg[userInfo.playerLevelName]"
alt=
""
class=
"card-img"
>
</
template
>
<div
class=
"level"
>
{{ levelCurrent.current }} / {{ levelCurrent.needs }}
</div>
</div>
</div>
<div
class=
"gold-box"
>
<div
class=
"gold-box"
>
<div>
<div>
...
@@ -41,9 +46,26 @@
...
@@ -41,9 +46,26 @@
<
script
>
<
script
>
import
{
mapState
}
from
'vuex'
import
{
mapState
}
from
'vuex'
export
default
{
export
default
{
data
()
{
props
:
{
levelCurrent
:
{
type
:
Object
,
default
:
()
=>
{
return
{}
return
{}
},
},
},
},
data
()
{
// 卡片
const
cardImg
=
{
Red
:
'https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/Textures/second/card-Red.png'
,
Gold
:
'https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/Textures/second/card-Gold.png'
,
Silver
:
'https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/Textures/second/card-Silver.png'
,
Diamond
:
'https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/Textures/second/card-Diamond.png'
,
}
return
{
cardImg
,
}
},
computed
:
{
computed
:
{
...
mapState
([
...
mapState
([
'userInfo'
,
'userInfo'
,
...
@@ -125,6 +147,20 @@ export default {
...
@@ -125,6 +147,20 @@ export default {
background-image
:
url(https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/Textures/second/Rounded%20Rectangle%204%20copy%202.png)
;
background-image
:
url(https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/Textures/second/Rounded%20Rectangle%204%20copy%202.png)
;
background-size
:
100%
100%
;
background-size
:
100%
100%
;
width
:
150px
;
width
:
150px
;
.card-img
{
width
:
84px
;
margin
:
4px
auto
;
display
:
block
;
}
.level
{
background
:
#000000
7a
;
border-radius
:
4px
;
text-align
:
center
;
margin
:
4px
auto
;
width
:
100px
;
padding
:
4px
0
;
font-size
:
14px
;
}
}
}
.gold-box
{
.gold-box
{
}
}
...
...
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