<style lang="sass">
@import './scss/cashrecord.scss';
</style>

<template>
    <div class="page-cashrecord">
        <ul class="list-record" v-if="records.length>0">
            <li v-for="(record,index) in records" :key="index">
                <div class="item-fl">
                    <h2>{{record.createTime | parseReleaseDate}}</h2>
                    <p>提现金额：{{record.money/100}}元，剩余{{record.balance/100}}元。</p>
                </div>
                <div class="item-fr">
                    <span v-if="record.status==0">审核中</span>
                    <span class="status-success" v-if="record.status==1">审核通过</span>
                    <div class="fail-wrap" v-if="record.status==-1">
                        <span class="btn-submit" @click="goPageApply(record.applyId)">重新提交</span>
                        <p class="status-fail">审核失败，信息错误</p>
                    </div>
                </div>
            </li>
        </ul>
        <div class="tip-empty" v-else>暂无数据</div>

        <loading 
            :more = "nextFlag"
            :loading = "isloading"
            :clickName = "getWithdrawList"></loading>
    </div>
</template>

<script>
    import cashrecord from './js/cashrecord.js'
    export default cashrecord
</script>