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
863259c4
Commit
863259c4
authored
Jul 20, 2023
by
毛线
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
loading优化
parent
e4d991b3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
score-log.vue
components/dialog/user-dialog/score-log.vue
+10
-2
plugins.js
plugins/plugins.js
+4
-0
No files found.
components/dialog/user-dialog/score-log.vue
View file @
863259c4
...
@@ -13,7 +13,11 @@
...
@@ -13,7 +13,11 @@
<div
class=
"end"
>
结束金额
</div>
<div
class=
"end"
>
结束金额
</div>
<div
class=
"remark"
>
备注
</div>
<div
class=
"remark"
>
备注
</div>
</div>
</div>
<div
class=
"table"
>
<div
v-loading=
"loading"
element-loading-background=
"#00293785"
element-loading-spinner=
"el-icon-loading"
class=
"table"
>
<ScoreRow
v-for=
"(item, index) in list"
:key=
"index"
:data=
"item"
:index=
"index"
/>
<ScoreRow
v-for=
"(item, index) in list"
:key=
"index"
:data=
"item"
:index=
"index"
/>
</div>
</div>
</div>
</div>
...
@@ -31,6 +35,7 @@ export default {
...
@@ -31,6 +35,7 @@ export default {
return
{
return
{
index
:
0
,
index
:
0
,
list
:
[],
// 消息列表
list
:
[],
// 消息列表
loading
:
false
,
}
}
},
},
watch
:
{
watch
:
{
...
@@ -50,13 +55,16 @@ export default {
...
@@ -50,13 +55,16 @@ export default {
params
.
filterType
=
type
params
.
filterType
=
type
}
}
this
.
list
=
[]
this
.
list
=
[]
this
.
loading
=
true
this
.
$request
({
this
.
$request
({
url
:
'/api/player/user/creditTransferLog'
,
url
:
'/api/player/user/creditTransferLog'
,
method
:
'get'
,
method
:
'get'
,
params
,
params
,
}).
then
(({
rows
})
=>
{
}).
then
(({
rows
})
=>
{
console
.
log
(
'creditTransferLog data'
,
{
...
rows
[
0
]
})
this
.
list
=
rows
this
.
list
=
rows
this
.
loading
=
false
}).
catch
(()
=>
{
this
.
loading
=
false
})
})
},
},
}
}
...
...
plugins/plugins.js
View file @
863259c4
...
@@ -8,9 +8,13 @@ Vue.use(VueClipboard) // 复制组件
...
@@ -8,9 +8,13 @@ Vue.use(VueClipboard) // 复制组件
import
{
import
{
Message
,
Message
,
Loading
,
}
from
'element-ui'
}
from
'element-ui'
Vue
.
use
(
Loading
.
directive
)
Vue
.
prototype
.
$message
=
Message
Vue
.
prototype
.
$message
=
Message
Vue
.
prototype
.
$loading
=
Loading
.
service
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