@@ -315,17 +315,12 @@
// 点击改变是否观察或者处理记录
to(data) {
- if (this.status == 'loading') {
- return
- }
this.key = ''
this.page = 1
this.tobu = data
this.listData = []
this.status = 'loading'
- setTimeout(() => {
- this.getList()
- }, 1000)
+ this.getList()
},
cancelT(data) {
@@ -424,17 +419,15 @@
onReachBottom() {
// console.log(this.page, this.total)
- if (this.total - this.page * 5 <= 0) {
- this.status = 'nomore'
- // console.log('ww')
- } else {
- // console.log('w')
- this.status = 'loading';
- this.page++
+ if (this.total - this.page * 5 <= 0) {
+ this.status = 'nomore'
+ // console.log('ww')
+ } else {
+ // console.log('w')
+ this.status = 'loading';
+ this.page++
+ }
}