Commit 3d8575f9 by 杨北旺

添加无数据状态

1 parent 2c43ae59
......@@ -153,7 +153,7 @@ const actions = {
},
registerHttp({}, 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 => {
......
......@@ -10,7 +10,7 @@
</div>
</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">
<template v-for="(item, index) in serviceList">
<div :key="index" class="box_wrapper" @click="jumpPage(item)">
......@@ -40,6 +40,9 @@
</template>
</scroll-view>
</div>
<div v-if="isNoResult">
<van-empty description="暂无数据" />
</div>
</div>
</template>
<script>
......@@ -75,7 +78,8 @@ export default {
paramForm:{
pageSize:10,
pageNum:1,
}
},
isNoResult:false
}
},
created() {},
......@@ -120,7 +124,10 @@ export default {
if((data.list.length<this.paramForm.pageSize)&&this.serviceList.length){
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) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!