1
MrShi
2025-03-18 a2a9fa7563f01933dd49d6e2f85a4927e5259d5e
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;