From f9691d544e62d6c04dbfe45d05a6c7bc5e004291 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期五, 29 十二月 2023 11:52:29 +0800
Subject: [PATCH] 服务商
---
bicycle/unpackage/dist/dev/mp-weixin/pages/consumptionDetails/consumptionDetails.js | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/bicycle/unpackage/dist/dev/mp-weixin/pages/consumptionDetails/consumptionDetails.js b/bicycle/unpackage/dist/dev/mp-weixin/pages/consumptionDetails/consumptionDetails.js
index a2915b2..55d4c18 100644
--- a/bicycle/unpackage/dist/dev/mp-weixin/pages/consumptionDetails/consumptionDetails.js
+++ b/bicycle/unpackage/dist/dev/mp-weixin/pages/consumptionDetails/consumptionDetails.js
@@ -197,8 +197,13 @@
this.getList();
},
onReachBottom: function onReachBottom() {
- console.log('瑙﹀簳鍔犺浇');
this.getList();
+ },
+ onPullDownRefresh: function onPullDownRefresh() {
+ this.page = 1;
+ this.list = [];
+ this.next = false;
+ this.getList(1);
},
methods: {
jump: function jump(type, id) {
@@ -208,7 +213,7 @@
});
}
},
- getList: function getList() {
+ getList: function getList(type) {
var _this = this;
if (!this.next) {
this.$u.api.transactionsPage({
@@ -220,6 +225,9 @@
property: 'createDate'
}]
}).then(function (res) {
+ if (type) {
+ uni.stopPullDownRefresh();
+ }
if (res.code === 200) {
var _this$list;
_this.page += 1;
--
Gitblit v1.9.3