Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
dj-scrm-wx-work-file-upload
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 3d8575f9
authored
Feb 19, 2022
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加无数据状态
1 parent
2c43ae59
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
src/store/modules/app.js
src/views/services/index.vue
src/store/modules/app.js
View file @
3d8575f
...
@@ -153,7 +153,7 @@ const actions = {
...
@@ -153,7 +153,7 @@ const actions = {
},
},
registerHttp
({},
sessionId
=
''
)
{
registerHttp
({},
sessionId
=
''
)
{
window
.
$HTTP
=
new
Http
({
...
window
.
$fetchConfig
,
alert
:
Notify
,
headers
:
{
token
:
sessionId
}
})
window
.
$HTTP
=
new
Http
({
...
window
.
$fetchConfig
,
alert
:
Notify
,
headers
:
{
token
:
sessionId
}
})
// window.$HTTP = new Http({ ...window.$fetchConfig, alert: Notify, headers: { token: '
710c3866-90c9-47fb-9161-b702b7f262ad
' } })
// window.$HTTP = new Http({ ...window.$fetchConfig, alert: Notify, headers: { token: '
mini-025daaf5-bf2a-4fb3-8232-ed1bc31304d3-rop
' } })
}
}
}
}
const
getParams
=
name
=>
{
const
getParams
=
name
=>
{
...
...
src/views/services/index.vue
View file @
3d8575f
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
</div>
</div>
</div>
</div>
<div
style=
"height: 100px"
></div>
<div
style=
"height: 100px"
></div>
<div
class=
"list_widget"
>
<div
v-if=
"!isNoResult"
class=
"list_widget"
>
<scroll-view
class=
"content"
@
ReachBottom=
"onReachBottom"
ref=
"scrollView"
>
<scroll-view
class=
"content"
@
ReachBottom=
"onReachBottom"
ref=
"scrollView"
>
<template
v-for=
"(item, index) in serviceList"
>
<template
v-for=
"(item, index) in serviceList"
>
<div
:key=
"index"
class=
"box_wrapper"
@
click=
"jumpPage(item)"
>
<div
:key=
"index"
class=
"box_wrapper"
@
click=
"jumpPage(item)"
>
...
@@ -40,6 +40,9 @@
...
@@ -40,6 +40,9 @@
</
template
>
</
template
>
</scroll-view>
</scroll-view>
</div>
</div>
<div
v-if=
"isNoResult"
>
<van-empty
description=
"暂无数据"
/>
</div>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
...
@@ -75,7 +78,8 @@ export default {
...
@@ -75,7 +78,8 @@ export default {
paramForm
:{
paramForm
:{
pageSize
:
10
,
pageSize
:
10
,
pageNum
:
1
,
pageNum
:
1
,
}
},
isNoResult
:
false
}
}
},
},
created
()
{},
created
()
{},
...
@@ -120,7 +124,10 @@ export default {
...
@@ -120,7 +124,10 @@ export default {
if
((
data
.
list
.
length
<
this
.
paramForm
.
pageSize
)
&&
this
.
serviceList
.
length
){
if
((
data
.
list
.
length
<
this
.
paramForm
.
pageSize
)
&&
this
.
serviceList
.
length
){
this
.
$refs
.
scrollView
.
finished
=
true
this
.
$refs
.
scrollView
.
finished
=
true
}
}
this
.
$refs
.
scrollView
.
loading
=
false
this
.
isNoResult
=
this
.
serviceList
.
length
?
false
:
true
if
(
!
this
.
isNoResult
){
this
.
$refs
.
scrollView
.
loading
=
false
}
})
})
},
},
search
(
e
)
{
search
(
e
)
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment