From a836f03a5d1fbfa81e147d09ffdfa87ba3975c13 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期二, 18 三月 2025 16:45:02 +0800
Subject: [PATCH] 1

---
 bicycle/unpackage/dist/dev/mp-weixin/pages/consumptionDetails/consumptionDetails.js |   28 +++++++++++++++++++++-------
 1 files changed, 21 insertions(+), 7 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..0978f21 100644
--- a/bicycle/unpackage/dist/dev/mp-weixin/pages/consumptionDetails/consumptionDetails.js
+++ b/bicycle/unpackage/dist/dev/mp-weixin/pages/consumptionDetails/consumptionDetails.js
@@ -106,15 +106,18 @@
   var _c = _vm._self._c || _h
   var l0 = _vm.__map(_vm.list, function (item, index) {
     var $orig = _vm.__get_orig(item)
-    var g0 = item.type === 0 ? (item.money / 100).toFixed(2) : null
-    var g1 =
-      item.type === 1 || item.type === 2 || item.type === 3
-        ? (item.money / 100).toFixed(2)
-        : null
+    var g0 = [0, 4].includes(item.type)
+    var g1 = g0 ? (item.money / 100).toFixed(2) : null
+    var g2 = [1, 2, 3].includes(item.type)
+    var g3 = g2 ? (item.money / 100).toFixed(2) : null
+    var g4 = [0, 4].includes(item.type)
     return {
       $orig: $orig,
       g0: g0,
       g1: g1,
+      g2: g2,
+      g3: g3,
+      g4: g4,
     }
   })
   _vm.$mp.data = Object.assign(
@@ -185,6 +188,9 @@
 //
 //
 //
+//
+//
+//
 var _default = {
   data: function data() {
     return {
@@ -197,8 +203,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 +219,7 @@
         });
       }
     },
-    getList: function getList() {
+    getList: function getList(type) {
       var _this = this;
       if (!this.next) {
         this.$u.api.transactionsPage({
@@ -220,6 +231,9 @@
             property: 'createDate'
           }]
         }).then(function (res) {
+          if (type) {
+            uni.stopPullDownRefresh();
+          }
           if (res.code === 200) {
             var _this$list;
             _this.page += 1;

--
Gitblit v1.9.3