liujd 6 лет назад
Родитель
Сommit
ce3adf7c7b
1 измененных файлов с 15 добавлено и 0 удалено
  1. 15 0
      mobile-code/src/admin/home/member.vue

+ 15 - 0
mobile-code/src/admin/home/member.vue

@@ -78,6 +78,21 @@ export default {
 			]
 		}
 	},
+	onPullDownRefresh() {
+		this.resetList()
+		this._list().then(res => {
+			uni.stopPullDownRefresh()
+		})
+	},
+	onReachBottom() {
+		if (this.list.data.length < this.list.total) {
+			this._list().then(res => {
+				uni.stopPullDownRefresh()
+			})
+		} else {
+			uni.stopPullDownRefresh()
+		}
+	},
 	onLoad(option) {
 		// this.init()
 	},