|
@@ -103,7 +103,7 @@ export default {
|
|
|
return {
|
|
|
isShowClose: false, //是否显示搜索框关闭按钮
|
|
|
searchInputVal: '', //搜索框数据
|
|
|
- isEmpty: false, //机构列表是否为空
|
|
|
+ isEmpty: true, //机构列表是否为空
|
|
|
nomoreText: '上拉显示更多',
|
|
|
pageNum: 1, //当前页码
|
|
|
pageSize: 10, //每页获取条数
|
|
@@ -129,6 +129,9 @@ export default {
|
|
|
async init() {
|
|
|
this.pageNum = 1
|
|
|
this.clubList = await this.getClubList()
|
|
|
+ if(this.clubList.length>0){
|
|
|
+ this.isEmpty = false
|
|
|
+ }
|
|
|
console.log(this.clubList)
|
|
|
},
|
|
|
// 设置scroll高度
|
|
@@ -167,9 +170,7 @@ export default {
|
|
|
)
|
|
|
this.pageNum = res.pageNum
|
|
|
this.hasNextPage = res.hasNextPage
|
|
|
- if (res.list.length < 0) {
|
|
|
- this.isEmpty = true
|
|
|
- }
|
|
|
+
|
|
|
return res.list
|
|
|
},
|
|
|
// 加载下一页数据
|