Explorar o código

订单页增加下拉刷新

1004749546@qq.com %!s(int64=4) %!d(string=hai) anos
pai
achega
94da1558f2
Modificáronse 1 ficheiros con 9 adicións e 0 borrados
  1. 9 0
      pages/order/order.vue

+ 9 - 0
pages/order/order.vue

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