<?php /*a:3:{s:97:"/home/u833649990/domains/beyondtravel.tours/public_html/app/app/admin/view/member/level_list.html";i:1763702585;s:93:"/home/u833649990/domains/beyondtravel.tours/public_html/app/app/admin/view/public/header.html";i:1763702586;s:93:"/home/u833649990/domains/beyondtravel.tours/public_html/app/app/admin/view/public/footer.html";i:1763702586;}*/ ?>
<!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>

<body>
<div class="x-nav">
    <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right"
       onclick="location.reload()" title="刷新">
        <i class="layui-icon layui-icon-refresh" style="line-height:30px"></i>
    </a>
</div>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-header">
                    <a class="layui-btn" href="<?php echo url('admin/Member/levelAdd'); ?>">
                        <i class="layui-icon"></i>添加会员等级
                    </a>
                    <span style="float: right">共有数据：<?php echo htmlentities($list->total()); ?> 条</span>
                </div>
                <div class="layui-card-body" style="overflow-x: auto">
                    <table class="layui-table layui-form">
                        <thead>
                        <tr>
                            <th width="2%">等级</th>
                            <th>名称</th>
                            <th>图片</th>
                            <th>每日订单量</th>
                            <th>充值金额限制</th>
                            <th>限制金额</th>
                            <th>升级奖励</th>
                            <th>价格</th>
                            <th width="15%">提现区间</th>
                            <th>提现限制单数</th>
                            <th>提现手续费率</th>
                            <th>订单佣金比例</th>
                            <th width="8%">创建时间</th>
                            <th width="3%">操作</th>
                        </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['name']); ?></td>
                            <td title="点击放大">
                                <img src="<?php echo htmlentities((isset($vo['img']) && ($vo['img'] !== '')?$vo['img']:'/static/admin/images/noImg.jpg')); ?>" onclick="showBig(this)" width="100%">
                            </td>
                            <td><?php echo htmlentities($vo['order_num']); ?></td>
                            <td><?php echo htmlentities($vo['charge_min']); ?>-<?php echo htmlentities($vo['charge_max']); ?></td>
                            <td><?php echo htmlentities($vo['limit_price']); ?></td>
                            <td><?php echo htmlentities($vo['reward_price']); ?></td>
                            <td><?php echo htmlentities($vo['price']); ?></td>
                            <td><?php echo htmlentities($vo['withdraw_min']); ?>-<?php echo htmlentities($vo['withdraw_max']); ?></td>
                            <td><?php echo htmlentities($vo['withdraw_num']); ?></td>
                            <td><?php echo htmlentities($vo['withdraw_rate']); ?></td>
                            <td><?php echo htmlentities($vo['order_rate']); ?></td>
                            <td><?php echo htmlentities($vo['create_time']); ?></td>
                            <td class="td-manage">
                                <a class="layui-btn layui-btn-mini"
                                   href="<?php echo url('admin/Member/levelAdd',['id'=>$vo['id']]); ?>">编辑</a>
                            </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']);
</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>

