jhzh
2026-01-04 d73b91becc044ee107b94668504f6286be00d622
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
<template>
  <div class="wrapper">
    <!-- <ul class="table-list"
        v-infinite-scroll="loadMore"
        infinite-scroll-disabled="loading"
        infinite-scroll-distance="10">
      <li class="list-body" v-for="item in list" :key="item.key">
        <div class="capital">
          <div>
            {{item.deType}}
            <span :class="item.deAmt<0?'pull-right green':'pull-right red'">{{item.deAmt}}</span>
          </div>
          <div class="pro clearfix">
            {{item.deSummary}}
        
          </div>
          
          <div class="pro clearfix">
            <div class="col-xs-12 text-right">生成时间:{{new Date(item.addTime) | timeFormat}}</div>
          </div>
        </div>
 
      </li>
    </ul> -->
    <ul  class="czjl">
      <li  class="czli lizj"  v-for="item in list" :key="item.key">
        <div  class="title">
          <p > {{item.deSummary}} </p>
          <!-- <h3 ><span >{{new Date(item.addTime.replace(/-/g, "/")) | timeFormat}}</span><a >{{item.deAmt}}</a></h3> -->
          <h3 ><span >{{new Date(item.addTime) | timeFormat}}</span><a >{{item.deAmt}}</a></h3>
        </div>
      </li>
    </ul>
    <div v-show="loading" class="load-all text-center">
      <mt-spinner type="fading-circle"></mt-spinner>
      {{ $t('hj235') }}
    </div>
    <div v-show="!loading" class="load-all text-center">
      {{ $t('hj236') }}
    </div>
  </div>
</template>
 
<script>
import { Toast } from 'mint-ui'
import * as api from '@/axios/api'
 
export default {
  components: {},
  props: {},
  data() {
    return {
      loading: false,
      list: [],
      pageNum: 1,
      pageSize: 10,
      total: 0
    }
  },
  watch: {},
  computed: {},
  created() { },
  mounted() {
    this.getcashDetail()
  },
  methods: {
    async getcashDetail() {
      // 获取资金明细
      let opts = {
        pageNum: this.pageNum,
        pageSize: 10
      }
      let data = await api.cashDetail(opts)
      if (data.status === 0) {
        data.data.list.forEach(element => {
          this.list.push(element)
        })
        this.total = data.data.total
      } else {
        Toast(data.msg)
      }
    },
    async loadMore() {
      if (this.list.length < this.pageSize || this.total <= this.pageNum * this.pageSize) {
        return
      }
      this.loading = true
      // 加载下一页
      this.pageNum++
      await this.getcashDetail()
      this.loading = false
    }
  }
}
</script>
<style lang="less" scoped>
.table-list {
  padding: 0.2rem 0;
 
  .list-body {
    padding: 0.1rem 0.2rem;
 
    .capital {
      padding: 0.2rem;
      border-radius: 0.2rem;
      border: 0.01rem solid #3f444a;
 
      div {
        line-height: 0.4rem;
      }
 
      .col-xs-4 {
        padding-left: 0;
        padding-right: 0;
      }
 
      .pro {
        color: #999;
      }
    }
  }
}
 
.load-all {
  background-color: #fff;
}
 
 
.czjl {
    width: 9.4785rem;
    margin: 0 auto;
    margin-top: 0.1602rem;
}
 
.lizj {
    margin: 0 auto;
    margin-bottom: 0.534rem;
    width: 100%;
}
.czli h6 {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    font-weight: 500;
    height: 0.534rem;
    font-size: 0.3204rem;
    color: #666;
    line-height: 0.534rem;
    padding-left: 0.267rem;
    padding-top: 0.1335rem;
}
.czli h5{
    font-size: 0.4005rem;
    font-family: PingFang SC;
    font-weight: 500;
    color: #000;
    margin-top: 0.267rem;
    margin-left: 0.267rem;
}
 .riqi {
    margin-top: 0.2937rem;
    color: #666;
    font-size: 0.267rem;
    margin-left: 0.267rem;
}
 
 
.title {
    width: 9.078rem;
    margin: 0 auto;
    font-weight: 500;
}
 
.title p{
    font-size: 0.4272rem;
    color: #666;
    line-height: 0.534rem;
    padding-top: 0.267rem;
}
.title h3{
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin-top: 0.2136rem;
    font-weight: 500;
}
.title h3 span {
    font-size: 0.3204rem;
    color: #999;
}
.title h3 a{
    font-size: 0.4806rem;
    color: #333;
}
</style>