2 Commitit a1cf049a33 ... 0691d7a952

Tekijä SHA1 Viesti Päivämäärä
  moluofu 0691d7a952 修改 2 vuotta sitten
  moluofu b4060e6a16 bug修改 2 vuotta sitten
1 muutettua tiedostoa jossa 10 lisäystä ja 17 poistoa
  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()
+				}
 			}
 
 		}