withdraw_log.html 4.4 KB
<!DOCTYPE html>
<html lang="en">

{include file="public/head"/}
<link rel="stylesheet" href="__CDN__/assets/advertising/css/record.css">

<body>
    <!-- 提现记录 -->
    <div class="income_record" id="dom">
        <div class="record_tips">提现记录详情</div>
        {foreach name="$data" item="vo"}
        <div class="record_single">
            <div class="record_box layout justify flex_diection">
                <div class="layout justify flex_row">
                    <div class="record_title">提现(微信余额)</div>
                    <div class="record_num">{$vo.rmb}元</div>
                </div>
                <div class="record_date layout justify flex_row">
                    <div>{$vo.createtime}</div>
                    <div class="record_succ">
                        {if condition="$vo.type eq 1"}
                        提现审核中
                        {elseif condition="$vo.type eq 2"}
                        提现审核成功
                        {elseif condition="$vo.type eq 3"}
                        提现审核失败
                        {/if}
                    </div>
                </div>
            </div>
        </div>
        {/foreach}
    </div>
    {empty name="$data"}
    <div class="empty_data">
        暂无数据
    </div>
    {/empty}
    {notempty name="$data"}
    <div class="load_more layout align_center justify_center">
        <div>加载更多</div>
        <div class="layout align_center justify_center">
            <img src="__CDN__/assets/advertising/img/right.png" alt="">
        </div>
    </div>
    <!--当前页-->
    <input type="hidden" id="page" value="1"/>
    {/notempty}
    {include file="public/js" /}
</body>
<script>
    $(function(){
        //加载更多
        $(".load_more").click(function () {
            var user_id = "{$user.id}";
            var page = $('#page').val();
            page++;
            $.ajax({
                url:"{:url('home/member/more_withdraw_log')}",
                type:"POST",
                data:{'page':page,'user_id':user_id},
                success:function(res){
                    if(res.code == 1){
                        if(res.data == ''){
                            $('.justify_center').html("<div>没有更多了~</div>");
                            toast('没有更多了~');
                            return;
                        }
                        var html = "";
                        $(res.data).each(function (key, vo) {
                            var type = "";
                            if(vo.type == 1){
                                type = "提现审核中";
                            }else if(vo.type == 5){
                                type = "体现审核成功";
                            }else if(vo.type == 6){
                                type = "提现审核失败";
                            }
                            html += "<div class=\"record_single\">\n" +
                                "            <div class=\"record_box layout justify flex_diection\">\n" +
                                "                <div class=\"layout justify flex_row\">\n" +
                                "                    <div class=\"record_title\">提现(微信余额)</div>\n" +
                                "                    <div class=\"record_num\">"+vo.rmb+"元</div>\n" +
                                "                </div>\n" +
                                "                <div class=\"record_date layout justify flex_row\">\n" +
                                "                    <div>"+vo.createtime+"</div>\n" +
                                "                    <div class=\"record_succ\">\n" +
                                "                        "+type+"\n" +
                                "                    </div>\n" +
                                "                </div>\n" +
                                "            </div>\n" +
                                "        </div>";
                        });
                        $('#dom').append(html);
                        $('#page').val(page);
                    }else{
                        toast('与服务器断开连接');
                    }
                },
                error:function(){
                    toast('与服务器断开连接');
                }
            })
        })
    })
</script>
</html>