lin
2026-05-26 fcceeb05d47be8137c2bb2cdbac9c74fa1fe9520
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
<template>
    <view>
        <view class="logs" v-if="accountData.length > 0">
            <view class="logsMain" v-for="(item, index) in accountData">
                <view class="date">{{item.addtime}}</view>
                <view class="const">
                    <view class="">{{item.type}}</view>
                    <view class="">{{item.edu}}元</view>
                </view>
                <!--view class="controls">还款</view-->
            </view>
        </view>
        <view class="noData" v-else>
            <image src="/static/imgs/noData.png" mode=""></image>
            <view class="">没有账单信息</view>
        </view>
    </view>
</template>
 
<script>
    export default {
        data() {
            return {
                accountData: [],
                pageIndex: 1,
                pageSize: 50,
            }
        },
        onLoad() {
            this.getAccount()
        },
        methods: {
            getAccount() {
                let t = this
                this.$util.post('Account/getAccount', {pageIndex: this.pageIndex, pageSize: this.pageSize}).then(res => {
                    if(res.code == 1){
                        this.accountData = res.data.list
                    }
                })
            }
        }
    }
</script>
 
<style>
    @import url(/static/css/logs.css);
</style>