审查视图

public/themes/admin_simpleboot3/user/admin_oauth/intermediary.html 10.9 KB
郭鑫 authored
1 2
<include file="public@header"/>
<link rel="stylesheet" href="__STATIC__/install/css/mdialog.css">
魏强 authored
3
郭鑫 authored
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
<style>
    .popup{
        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{
        text-align: center;
        margin-top: 20px;
    }
    .popup span{
        text-align: center;
        line-height: 30px;
        cursor: pointer;
    }
    .popup .queding{
        display: inline-block;
        width: 80px;
        height: 30px;
        background-color: #1E9FFF;
        border-radius: 3px;
    }
    .popup span:hover{
        opacity: 0.8;
    }
    .popup .quxiao{
        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;
    }
魏强 authored
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
    .page_div a {
        min-width: 30px;
        height: 28px;
        border: 1px solid #dce0e0!important;
        text-align: center;
        margin: 0 4px;
        cursor: pointer;
        line-height: 28px;
        color: #666666;
        font-size: 13px;
        display: inline-block;
        background: #fff;
    }
    #firstPage, #lastPage {
        width: 50px;
        color: #0073A9;
        border: 1px solid #0073A9!important;
    }
    #prePage, #nextPage {
        width: 70px;
        color: #0073A9;
        border: 1px solid #0073A9!important;
    }
    .page_div .current {
        background-color: #0073A9;
        border-color: #0073A9;
        color: #FFFFFF;
    }

    .totalPages {
        margin: 0 10px;
魏强 authored
82
        color: #0073A9;
魏强 authored
83 84
    }
    .totalSize {
魏强 authored
85
        color: #0073A9;
魏强 authored
86 87 88 89
    }
    .totalPages span, .totalSize span {
        margin: 0 5px;
    }
郭鑫 authored
90 91 92 93 94
</style>
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
郭鑫 authored
95
        <li class="active"><a>用户管理</a></li>
郭鑫 authored
96
    </ul>
魏强 authored
97
    <form class="well form-inline margin-top-20" method="post" action="{:url('AdminOauth/intermediary')}">
郭鑫 authored
98
        时间:
魏强 authored
99
        <input type="text" class="form-control js-bootstrap-datetime start_time" name="start_time"
郭鑫 authored
100 101
               value="{$start_time|default=''}"
               style="width: 140px;" autocomplete="off"> -
魏强 authored
102
        <input type="text" class="form-control js-bootstrap-datetime end_time" name="end_time"
郭鑫 authored
103
               value="{$end_time|default=''}"
郭鑫 authored
104
               style="width: 140px;" autocomplete="off"> &nbsp; &nbsp;
郭鑫 authored
105
        姓名:
魏强 authored
106
        <input type="text" class="form-control name" name="name" style="width: 200px;"
郭鑫 authored
107 108
               value="{$name|default=''}" placeholder="请输入姓名">
        手机号:
魏强 authored
109
        <input type="text" class="form-control tel" name="tel" style="width: 200px;"
郭鑫 authored
110 111
               value="{$tel|default=''}" placeholder="请输入手机号">
        <input type="submit" class="btn btn-primary" value="搜索"/>
魏强 authored
112
        <a class="btn btn-danger" href="{:url('AdminOauth/intermediary')}">清空</a>
魏强 authored
113 114
        <a class="btn up"  style="color:#fff;background-color:#60C5F1" href="{:url('Admin_oauth/intermediary',array('up'=>1))}">余额升序</a>
        <a class="btn down"  style="color:#fff;background-color:#C785C8" href="{:url('Admin_oauth/intermediary',array('up'=>2))}">余额降序</a>
郭鑫 authored
115
    </form>
郭鑫 authored
116 117

郭鑫 authored
118 119 120 121 122 123 124
    <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>
郭鑫 authored
125
                <th>余额</th>
郭鑫 authored
126 127
                <th>推荐人</th>
                <th>推荐人id</th>
郭鑫 authored
128
                <th>信誉分</th>
郭鑫 authored
129
                <th>注册时间</th>
郭鑫 authored
130
                <th>状态</th>
郭鑫 authored
131 132
                <th align="center" style="cursor: pointer; text-align: center;">查看</th>
                <th align="center" style="cursor: pointer;">操作</th>
郭鑫 authored
133 134 135 136 137 138 139 140
            </tr>
            </thead>
            <tbody>
            <foreach name="lists" item="vo">
                <tr>
                    <td>{$vo.id}</td>
                    <td>{$vo.name}</td>
                    <td>{$vo.tel}</td>
郭鑫 authored
141
                    <th>{$vo.money}</th>
郭鑫 authored
142 143 144
                    <td>
                        <empty name="vo.referee_name">
                            暂无
郭鑫 authored
145 146
                            <else/>
                            {$vo.referee_name}
郭鑫 authored
147
                        </empty>
郭鑫 authored
148
郭鑫 authored
149 150
                    </td>
                    <td>
郭鑫 authored
151
                        <empty name="vo.referee_id">
郭鑫 authored
152
                            暂无
郭鑫 authored
153 154
                            <else/>
                            {$vo.referee_id}
郭鑫 authored
155
                        </empty>
郭鑫 authored
156
郭鑫 authored
157
                    </td>
郭鑫 authored
158
                    <td>{$vo.reputation}</td>
郭鑫 authored
159 160 161 162 163 164 165 166 167 168 169 170 171
                    <td>{:date('Y-m-d H:i:s',$vo['create_time'])}</td>
                    <td>
                        <eq name="vo.status" value="1">
                            正常
                        </eq>
                        <eq name="vo.status" value="8">
                            已拉黑
                        </eq>
                        <eq name="vo.status" value="9">
                            已删除
                        </eq>
                    </td>
                    <td>
郭鑫 authored
172
                        <span  class="detail" style="color: #0FD149; text-decoration:underline; cursor: pointer; "  index="{$vo.id}" >详细信息</span>
郭鑫 authored
173
                        <span class="money" style="color: #9B399C;; text-decoration:underline;  cursor: pointer; " index="{$vo.id}">收支明细</span>
郭鑫 authored
174 175
                        <span class="getMoneyDetail" style="color: #18BC9C; text-decoration:underline;  cursor: pointer; " index="{$vo.id}">提现申请</span>
                        <span class="referee" style="color: #BFB61D; text-decoration:underline;  cursor: pointer; " index="{$vo.id}">邀请人</span>
郭鑫 authored
176 177
                        <!--<span class="comment" style="color: #5EB3D7; text-decoration:underline;  cursor: pointer; " index="{$vo.id}">查看评论</span>-->
                        <span class="reward" style="color: #5EB3D7; text-decoration:underline;  cursor: pointer; " index="{$vo.id}">查看信誉分</span>
郭鑫 authored
178 179
                    </td>
                    <td>
郭鑫 authored
180
                        <eq name="vo.status" value="1">
郭鑫 authored
181
                            <span  class="black" style="color: #AC4555; text-decoration:underline; cursor: pointer; "  index="{$vo.id}">拉黑</span>
郭鑫 authored
182 183
                        </eq>
                        <eq name="vo.status" value="8">
郭鑫 authored
184
                            <span style="color:#aaaaaa; cursor: pointer; " index="{$vo.id}">已拉黑</span>
郭鑫 authored
185 186
                        </eq>
                        <eq name="vo.status" value="9">
郭鑫 authored
187
                            <span style="color:#aaaaaa; cursor: pointer; " index="{$vo.id}">已删除</span>
郭鑫 authored
188 189 190 191 192 193
                        </eq>
                    </td>
                </tr>
            </foreach>
            </tbody>
        </table>
魏强 authored
194
        <div id="page1" class="page_div"></div>
郭鑫 authored
195 196 197 198 199 200 201 202 203 204
    </form>
    <div class="popup" style="display: none;">
        <p>确认拉黑该用户</p>
        <div class="btn_list">
            <span class="queding">确认</span>
            <span class="quxiao">取消</span>
        </div>
    </div>

</div>
魏强 authored
205
<script src="__STATIC__/js/paging.js"></script>
郭鑫 authored
206 207 208 209 210 211
<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="">
    $('.black').click(function () {
郭鑫 authored
212
        var id = $(this).attr('index');
郭鑫 authored
213 214 215 216 217 218 219 220 221 222 223 224
        $('.popup').css('display','block');
        // 删除
        $('.queding').click(function () {
            $.ajax({
                type:"POST",
                url:"{:url('AdminOauth/del')}",
                data:{
                    "id":id,
                },
                success:function (data) {
                    new TipBox({type:'success',str:'操作成功',hasBtn:true});
                    $('.popup').css('display','none');
郭鑫 authored
225
                },
郭鑫 authored
226 227 228 229 230 231 232 233 234 235
                error:function () {
                    new TipBox({type:'error',str:'对不起,出错了!',hasBtn:true});
                    $('.popup').css('display','none');
                }
            })
        })
    })
    $('.quxiao').click(function () {
        $('.popup').css('display','none');
    })
郭鑫 authored
236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276

    //    查看用户详细信息
    $('.detail').click(function () {
        var url1 = "{:url('user/AdminOauth/agencyDetail')}";
        var url2 = $(this).attr('index');
        var url3 = url1.split('.');
        var url  = url3[0]+'/id/'+url2+'.html';
        window.location.href = url
    })
    //    查看收支明细
    $('.money').click(function () {
        var url1 = "{:url('user/AdminOauth/money')}";
        var url2 = $(this).attr('index');
        var url3 = url1.split('.');
        var url  = url3[0]+'/id/'+url2+'.html';
        window.location.href = url
    })
    //    查看提现申请
    $('.getMoneyDetail').click(function () {
        var url1 = "{:url('user/AdminOauth/getMoneyDetail')}";
        var url2 = $(this).attr('index');
        var url3 = url1.split('.');
        var url  = url3[0]+'/id/'+url2+'.html';
        window.location.href = url
    })
    //    查看邀请人
    $('.referee').click(function () {
        var url1 = "{:url('user/AdminOauth/referee')}";
        var url2 = $(this).attr('index');
        var url3 = url1.split('.');
        var url  = url3[0]+'/id/'+url2+'.html';
        window.location.href = url
    })
    //    查看评论
    $('.comment').click(function () {
        var url1 = "{:url('user/AdminOauth/comment')}";
        var url2 = $(this).attr('index');
        var url3 = url1.split('.');
        var url  = url3[0]+'/id/'+url2+'.html';
        window.location.href = url
    })
郭鑫 authored
277 278 279 280 281 282 283 284
    // 查看信誉分
    $('.reward').click(function () {
        var url1 = "{:url('user/AdminOauth/reward')}";
        var url2 = $(this).attr('index');
        var url3 = url1.split('.');
        var url  = url3[0]+'/id/'+url2+'.html';
        window.location.href = url
    })
魏强 authored
285 286 287

    // 分页
    var page = "{$page}";
魏强 authored
288
    var count = "{$count}";
魏强 authored
289 290 291
    var page_int = parseInt(page);
    var pageNext = "{$Request.param.page}";
    var up = "{$Request.param.up}";
魏强 authored
292 293 294 295
    var end_time = $('.end_time').val();
    var start_time = $('.start_time').val();
    var name = $('.name').val();
    var tel = $('.tel').val();
魏强 authored
296 297 298
    $("#page1").paging({
        pageNo: pageNext,  // 当前页
        totalPage: page_int,  // 总页数(可以用Math.ceil()向上取整来计算)
魏强 authored
299
        totalSize: count,  //总条数
魏强 authored
300
        callback: function(num) {
魏强 authored
301
            var url = "/User/Admin_oauth/intermediary.html?page="+num+"&up="+up+"&end_time="+end_time+"&start_time="+start_time+"&name="+name+"&tel="+tel;
魏强 authored
302 303 304 305 306 307
            window.location.href = url;
        }
    })


郭鑫 authored
308 309 310
</script>
</body>
</html>