<?php /*a:3:{s:63:"/home/affivpnx/app.peakwork.pro/app/admin/view/member/team.html";i:1763742186;s:65:"/home/affivpnx/app.peakwork.pro/app/admin/view/public/header.html";i:1763742186;s:65:"/home/affivpnx/app.peakwork.pro/app/admin/view/public/footer.html";i:1763742186;}*/ ?>
<!doctype html>
<html class="x-admin-sm">
<head>
    <meta charset="UTF-8">
    <title>后台登录-<?php echo htmlentities($system_name); ?></title>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <link rel="stylesheet" href="/static/admin/css/font.css">
    <link rel="stylesheet" href="/static/admin/css/xadmin.css">
    <script type="text/javascript" src="/static/admin/js/jquery.min.js"></script>
    <!-- <link rel="stylesheet" href="./css/theme5.css"> -->
    <script src="/static/admin/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="/static/admin/js/xadmin.js?date=<?php echo date('Ymd'); ?>"></script>
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
    <script src="/static/admin/js/html5.min.js"></script>
    <script src="/static/admin/js/respond.min.js"></script>
    <![endif]-->
</head>

<style>
    .td-hidden-txt {
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
    }
</style>
<body>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-body ">
                    <form class="layui-form layui-col-space5" action="<?php echo url('admin/Member/team'); ?>">
                        <input type="hidden" name="pid" value="<?php echo htmlentities($pid); ?>">
                        <div class="layui-inline layui-show-xs-block">
                            <select name="status">
                                <option value="0">请选择状态</option>
                                <option value="1" <?php if($status == '1'): ?>selected<?php endif; ?>>启用</option>
                                <option value="2" <?php if($status == '2'): ?>selected<?php endif; ?>>禁用</option>
                            </select>
                        </div>
                        <div class="layui-inline layui-show-xs-block">
                            <button class="layui-btn" lay-filter="sreach">
                                <i class="layui-icon">&#xe615;</i>
                            </button>
                        </div>
                        <span style="float: right">共有数据：<?php echo htmlentities($list->total()); ?> 条</span>
                    </form>
                </div>
                <div class="layui-card-body" style="overflow-x: auto">
                    <table class="layui-table layui-form">
                        <thead>
                        <tr>
                            <th width="4%">ID</th>
                            <th>基础信息</th>
                            <th>账号信息</th>
                            <th>钱包信息</th>
                            <th>任务情况</th>
                            <th>邀请码</th>
                            <th>登录信息</th>
                            <th>注册时间</th>
                        </tr>
                        </thead>
                        <tbody>
                        <?php if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): if( count($list)==0 ) : echo "" ;else: foreach($list as $key=>$vo): ?>
                        <tr>
                            <td><?php echo htmlentities($vo['id']); ?></td>
                            <td>
                                账号：<?php echo htmlentities($vo['username']); ?><br>
                                昵称：<?php echo htmlentities($vo['nickname']); ?><br>
                                等级：<?php echo htmlentities($vo['level_name']); ?><br>
                                上级：<?php echo htmlentities((isset($vo['p_nickname']) && ($vo['p_nickname'] !== '')?$vo['p_nickname']:"暂无")); ?>
                            </td>
                            <td>
                                类型：<?php echo htmlentities($vo['type']); ?><br>
                                状态：<?php echo htmlentities($vo['status_txt']); ?><br>
                                交易：<?php echo htmlentities($vo['trade_txt']); ?><br>
                                信用：<?php echo htmlentities($vo['credit_score']); ?>
                            </td>
                            <td>
                                可用资金：<?php echo htmlentities($vo['balance']); ?><br>
                                冻结资金：<?php echo htmlentities($vo['freeze_balance']); ?><br>
                                累计充值：<?php echo htmlentities($vo['recharge']); ?><br>
                                累计提现：<?php echo htmlentities($vo['withdraw']); ?><br>
                                累计佣金：<?php echo htmlentities($vo['commission']); ?>
                            </td>
                            <td><?php echo htmlentities($vo['order_total']); ?>-<?php echo htmlentities($vo['order_num']); ?></td>
                            <td><?php echo htmlentities($vo['invite_code']); ?></td>
                            <td>
                                登录时间：<?php echo htmlentities($vo['login_time']); ?><br>
                                登录ip：<?php echo htmlentities($vo['login_ip']); ?>
                            </td>
                            <td><?php echo htmlentities($vo['create_time']); ?></td>
                        </tr>
                        <?php endforeach; endif; else: echo "" ;endif; ?>
                        </tbody>
                    </table>
                </div>
                <div class="layui-card-body">
                    <div class="page">
                        <?php echo $list; ?>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<script type="text/javascript">
    layui.use(['form', 'laydate']);
</script>
</html>
<script type="application/javascript">
    /**
     * 统一接口返回提示弹窗
     * type 1-成功 2-失败
     * info 提示信息
     * */
    function tipAction(type, info) {
        layer.msg(info, {icon: type, time: 1500})
    }

    //图片放大
    function showBig(obj) {
        let img_src = $(obj).attr('src');
        layer.open({
            type: 1,
            area: ['70%', 'auto'],
            shadeClose: true,
            title: false,
            closeBtn: false,
            content: `<div style=""><img src="${img_src}" alt="" width="100%"></div>`
        });
    }
</script>

