|
|
@@ -14,7 +14,8 @@
|
|
|
:pullup="pullup"
|
|
|
class="wrapper"
|
|
|
ref="wrapper">
|
|
|
- <van-cell-group v-for="(v,i) in dataList">
|
|
|
+ <van-empty v-if="!dataList.length" description="暂无数据" />
|
|
|
+ <van-cell-group v-else v-for="(v,i) in dataList">
|
|
|
<van-cell class="list-item" :title="v.title" :label="v.content" @click="clickItem(v)">
|
|
|
<template #right-icon>
|
|
|
<i class="point-icon" :class="{'active':v.isRead}" />
|
|
|
@@ -83,7 +84,7 @@ export default {
|
|
|
query:{
|
|
|
type:1,
|
|
|
pageNum:1,
|
|
|
- pageSize:1,
|
|
|
+ pageSize:10,
|
|
|
},
|
|
|
pullup:true,
|
|
|
message:null,
|
|
|
@@ -146,7 +147,6 @@ export default {
|
|
|
this.total = res.total;
|
|
|
if(this.dataList.length < res.total) {
|
|
|
this.dataList = [...this.dataList,...res.rows] ;
|
|
|
- console.log(123,'123')
|
|
|
this.pullup = true;
|
|
|
this.query.pageNum++;
|
|
|
}
|
|
|
@@ -163,7 +163,12 @@ export default {
|
|
|
this.$toast('已加载完毕');
|
|
|
return
|
|
|
}
|
|
|
- this.dataList = res.rows;
|
|
|
+ this.total = res.total;
|
|
|
+ if(this.dataList.length < res.total) {
|
|
|
+ this.dataList = [...this.dataList,...res.rows] ;
|
|
|
+ this.pullup = true;
|
|
|
+ this.query.pageNum++;
|
|
|
+ }
|
|
|
})
|
|
|
}
|
|
|
}
|