2 Commits a1cf049a33 ... 0691d7a952

Autor SHA1 Nachricht Datum
  moluofu 0691d7a952 修改 vor 2 Jahren
  moluofu b4060e6a16 bug修改 vor 2 Jahren
1 geänderte Dateien mit 10 neuen und 17 gelöschten Zeilen
  1. 10 17
      pages/index/index.vue

+ 10 - 17
pages/index/index.vue

@@ -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)
-				setTimeout(() => {
-					if (this.total - this.page * 5 <= 0) {
-						this.status = 'nomore'
-						// console.log('ww')
-					} else {
-						// console.log('w')
-						this.status = 'loading';
-						this.page++
-						this.getList()
-					}
-				}, 1000)
+				if (this.total - this.page * 5 <= 0) {
+					this.status = 'nomore'
+					// console.log('ww')
+				} else {
+					// console.log('w')
+					this.status = 'loading';
+					this.page++
+					this.getList()
+				}
 			}
 
 		}