Selaa lähdekoodia

订单页增加下拉刷新

1004749546@qq.com 4 vuotta sitten
vanhempi
commit
94da1558f2
1 muutettua tiedostoa jossa 9 lisäystä ja 0 poistoa
  1. 9 0
      pages/order/order.vue

+ 9 - 0
pages/order/order.vue

@@ -195,6 +195,15 @@
 		onUnload() {
 		onUnload() {
 			uni.$off('refresh', this.handleRefresh)
 			uni.$off('refresh', this.handleRefresh)
 		},
 		},
+		// 下拉刷新
+		onPullDownRefresh() {
+			console.log('refresh')
+			this.pageNo = 1
+			this.getRow()
+			setTimeout(function () {
+				uni.stopPullDownRefresh()
+			}, 200)
+		},
 		methods: {
 		methods: {
 			pageInit() {
 			pageInit() {
 				this.sortIndex = 1
 				this.sortIndex = 1