From 8e75bb4e451d6d3f33e2146335bad0f85d27d99f Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期四, 02 十一月 2023 17:06:46 +0800
Subject: [PATCH] 硬件协议对接
---
 bicycle/pages/consumptionDetails/consumptionDetails.vue |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/bicycle/pages/consumptionDetails/consumptionDetails.vue b/bicycle/pages/consumptionDetails/consumptionDetails.vue
index fe6f1a0..bc38368 100644
--- a/bicycle/pages/consumptionDetails/consumptionDetails.vue
+++ b/bicycle/pages/consumptionDetails/consumptionDetails.vue
@@ -30,8 +30,13 @@
 			this.getList()
 		},
 		onReachBottom() {
-			console.log('瑙﹀簳鍔犺浇')
 			this.getList()
+		},
+		onPullDownRefresh() {
+			this.page = 1
+			this.list = []
+			this.next = false
+			this.getList(1)
 		},
 		methods: {
 			jump(type, id) {
@@ -41,7 +46,7 @@
 					});
 				}
 			},
-			getList() {
+			getList(type) {
 				if (!this.next) {
 					this.$u.api.transactionsPage({
 						capacity: 10,
@@ -54,6 +59,9 @@
 							}
 						]
 					}).then(res => {
+						if (type) {
+							uni.stopPullDownRefresh()
+						}
 						if (res.code === 200) {
 							this.page += 1
 							this.list.push(...res.data.records)
--
Gitblit v1.9.3