getdetail.html 7.6 KB
<include file="public@header"/>
<link rel="stylesheet" href="__STATIC__/install/css/mdialog.css">
<style>
    .popup,.popdown{
        width: 250px;
        height: 100px;
        background-color: rgba(0,0,0,0.5);
        position: fixed;
        top: 50%;
        transform: translateY(-50px);
        left: 0;
        right: 0;
        margin: 0 auto;
        border-radius: 5px;
        color: #ffffff;
    }
    .popup p,.popdown p{
        text-align: center;
        margin-top: 20px;
    }
    .popup span,.popdown span{
        text-align: center;
        line-height: 30px;
        cursor: pointer;
    }
    .popup .queding,.popdown .sure{
        display: inline-block;
        width: 80px;
        height: 30px;
        background-color: #1E9FFF;
        border-radius: 3px;
    }
    .popup span:hover,.popdown span:hover{
        opacity: 0.8;
    }
    .popup .quxiao,.popdown .re{
        display: inline-block;
        width: 80px;
        height: 30px;
        ckground-color: #9cb945 ;
        color: #333333;
        border-radius: 3px;
        background-color:#fff;
        margin-left: 35px;
    }
    .btn_list{
        margin: 0 auto;
        width: 200px;
    }
</style>
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a>提现管理</a></li>
    </ul>
    <form class="well form-inline margin-top-20" method="post" action="{:url('Getmoney/index')}">
        时间:
        <input type="text" class="form-control js-bootstrap-datetime" name="start_time"
               value="{$start_time|default=''}"
               style="width: 140px;" autocomplete="off"> -
        <input type="text" class="form-control js-bootstrap-datetime" name="end_time"
               value="{$end_time|default=''}"
               style="width: 140px;" autocomplete="off"> &nbsp; &nbsp;
        姓名:
        <input type="text" class="form-control" name="name" style="width: 200px;"
               value="{$name|default=''}" placeholder="请输入姓名">
        手机号:
        <input type="text" class="form-control" name="tel" style="width: 200px;"
               value="{$tel|default=''}" placeholder="请输入手机号">
        <input type="submit" class="btn btn-primary" value="搜索"/>
        <a class="btn btn-danger" href="{:url('Getmoney/index')}">清空</a>
        <!--<span class="btn btn-default" onclick="window.history.back(-1)" >返回</span>-->
    </form>


    <form method="post" class="js-ajax-form margin-top-20">
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th>ID</th>
                <th>用户名</th>
                <th>手机号</th>
                <th>银行名称</th>
                <th>银行卡号</th>
                <th>身份</th>
                <th>提现金额</th>
                <th>状态</th>
                <th>提现时间</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <foreach name="lists" item="vo">
                <tr>
                    <td>{$vo.id}</td>
                    <td>{$vo.name}</td>
                    <td>{$vo.tel}</td>
                    <td>{$vo.card_name}</td>
                    <td>{$vo.card_num}</td>
                    <td>
                        <eq name="vo.type" value="1">
                            用户
                        </eq>
                        <eq name="vo.type" value="2">
                            中介
                        </eq>
                    </td>
                    <td>{$vo.money}</td>
                    <td>
                        <eq name="vo.status" value="6">提现拒绝</eq>
                        <eq name="vo.status" value="5">待审核</eq>
                        <eq name="vo.status" value="3">提现通过</eq>
                        <eq name="vo.status" value="4">提现拒绝</eq>
                    </td>
                    <td>{:date('Y-m-d H:i:s',$vo['create_time'])}</td>
                    <td>
                        <span  class="in_choose">
                            <eq name="vo.status" value="3">
                                <span   style="color: #00AA00;  cursor: pointer; "  index="{$vo.id}">转账成功</span>
                            </eq>
                            <in name="vo.status" value="4,6">
                                <span   style="color: #ff0000;  cursor: pointer; "  index="{$vo.id}">未通过</span>
                            </in>
                            <eq name="vo.status" value="5">
                                <span  class="agree" style="color: #18BC9C; text-decoration:underline; cursor: pointer; "  index="{$vo.id}">已转账</span>
                                <span  class="refuse" style="color: #ff0000; text-decoration:underline; cursor: pointer; "  index="{$vo.id}">拒绝</span>
                            </eq>
                        </span>
                        <span class="non" style="display: none;">操作中</span>
                    </td>
                </tr>
            </foreach>
            </tbody>
        </table>
        <ul class="pagination">{$page|default=''}</ul>
    </form>
    <div class="popup" style="display: none;">
        <p>确认同意申请</p>
        <div class="btn_list">
            <span class="queding">确认</span>
            <span class="quxiao">取消</span>
        </div>
    </div>
    <div class="popdown" style="display: none;">
        <p>确认拒绝申请</p>
        <div class="btn_list">
            <span class="sure">确认</span>
            <span class="re">取消</span>
        </div>
    </div>

</div>
<script src="__STATIC__/js/admin.js"></script>
<script src="__STATIC__/js/layer/layer.js"></script>
<script type="text/javascript" src="__STATIC__/js/zepto.min.js"></script>
<script type="text/javascript" src="__STATIC__/js/mdialog.js"></script>
<script type="">
    var id = '';
        $('.agree').click(function () {
        id = $(this).attr('index');
        $('.popup').css('display','block');

    })
    // 删除
    $('.queding').click(function () {
        $.ajax({
            type:"POST",
            url:"{:url('Getmoney/agree')}",
            data:{
                "id":id,
            },
            success:function (data) {
                new TipBox({type:'success',str:'操作成功',hasBtn:true});
                $('.popup').css('display','none');
            },
            error:function () {
                new TipBox({type:'error',str:'对不起,出错了!',hasBtn:true});
                $('.popup').css('display','none');
            }
        })
    })
    $('.quxiao').click(function () {
        $('.popup').css('display','none');
    })
//    拒绝申请
    $('.refuse').click(function () {
        // $(this).parent().css('display','none');
        // $(this).parent().next().css('display','block');
        if($('.popdown').css('display') == 'none') {
            id = $(this).attr('index');
            $('.popdown').css('display','block');
        }
    })
    // 删除
    $('.sure').click(function () {
        $.ajax({
            type:"POST",
            url:"{:url('Getmoney/refuse')}",
            data:{
                "id":id,
            },
            success:function (data) {
                new TipBox({type:'success',str:'操作成功',hasBtn:true});
                $('.popdown').css('display','none');
            },
            error:function () {
                new TipBox({type:'error',str:'对不起,出错了!',hasBtn:true});
                $('.popdown').css('display','none');
            }
        })
    })
    $('.re').click(function () {
        $('.popdown').css('display','none');
    })

</script>
</body>
</html>