1234567891011121314151617181920212223242526 |
- <?php /*a:2:{s:74:"D:\project\gyx\gaoyixia\application\operate\view\activity_apply\index.html";i:1710988758;s:56:"D:\project\gyx\gaoyixia\application\admin\view\main.html";i:1699858976;}*/ ?>
- <div class="layui-card layui-bg-gray"><?php if(!(empty($title) || (($title instanceof \think\Collection || $title instanceof \think\Paginator ) && $title->isEmpty()))): ?><div class="layui-card-header layui-anim layui-anim-fadein notselect"><span class="layui-icon layui-icon-next font-s10 color-desc margin-right-5"></span><?php echo htmlentities((isset($title) && ($title !== '')?$title:'')); ?><div class="pull-right"><button data-action='<?php echo url("remove"); ?>' data-confirm="确定要删除吗?" data-csrf="<?php echo systoken('remove'); ?>" data-rule="id#{key}" class='layui-btn layui-btn-sm layui-btn-primary'>批量删除</button></div></div><?php endif; ?><div class="layui-card-body layui-anim layui-anim-upbit"><div class="think-box-shadow"><fieldset><legend>条件搜索</legend><form class="layui-form layui-form-pane form-search" action="<?php echo request()->url(); ?>" onsubmit="return false" method="get" autocomplete="off"><div class="layui-form-item layui-inline"><label class="layui-form-label">联系方式</label><div class="layui-input-inline"><input name="phone" value="<?php echo htmlentities((app('request')->get('phone') ?: '')); ?>" placeholder="请输入联系方式" class="layui-input"></div></div><div class="layui-form-item layui-inline"><label class="layui-form-label">联系人</label><div class="layui-input-inline"><input name="name" value="<?php echo htmlentities((app('request')->get('name') ?: '')); ?>" placeholder="请输入联系人" class="layui-input"><input type="hidden" name="act_id" value="<?php echo htmlentities((app('request')->get('act_id') ?: '')); ?>" class="layui-input"></div></div><div class="layui-form-item layui-inline"><label class="layui-form-label">订单状态</label><div class="layui-input-inline"><select class="layui-select" name="order_status"><option value="-1">全部</option><?php foreach($status_list as $k=>$v): if($v): if($order_status == $k): ?><option selected value="<?php echo htmlentities($k); ?>"><?php echo htmlentities($v); ?></option><?php else: ?><option value="<?php echo htmlentities($k); ?>"><?php echo htmlentities($v); ?></option><?php endif; ?><?php endif; ?><?php endforeach; ?></select></div></div><div class="layui-form-item layui-inline"><label class="layui-form-label">订单类型</label><div class="layui-input-inline"><select class="layui-select" name="source_type"><option value="0">全部</option><option value="1" <?php if(app('request')->get('source_type') == 1): ?>selected<?php endif; ?>>线上订单</option><option value="2" <?php if(app('request')->get('source_type') == 2): ?>selected<?php endif; ?>>转账订单</option></select></div></div><div class="layui-form-item layui-inline" ><label class="layui-form-label">推广人</label><div class="layui-input-inline"><select class="layui-select" name="tg_id"><option value="0">全部</option><?php foreach($qrarr as $k=>$v): if(app('request')->get('tg_id') == $k): ?><option selected value="<?php echo htmlentities($k); ?>"><?php echo htmlentities($v['phone']); ?>--(推广ID/备注:<?php echo htmlentities($v['id']); ?>/<?php echo htmlentities($v['tg_param']); ?>)</option><?php else: ?><option value="<?php echo htmlentities($k); ?>"><?php echo htmlentities($v['phone']); ?>--(推广ID/备注:<?php echo htmlentities($v['id']); ?>/<?php echo htmlentities($v['tg_param']); ?>)</option><?php endif; ?><?php endforeach; ?></select></div></div><div class="layui-form-item layui-inline"><button class="layui-btn layui-btn-primary"><i class="layui-icon"></i> 搜 索</button><!-- <button data-action='<?php echo url("remind"); ?>' data-confirm="确定要重新提醒吗?"data-csrf="<?php echo systoken('remind'); ?>" data-rule="id#{key}" class='layui-btn layui-btn-sm layui-btn-primary'>批量提醒</button>--></div><!-- <div class="layui-form-item layui-inline" style="margin-left: 5px;">--><!-- <div data-title="导出" class='layui-btn layui-btn-sm layui-btn-primary' id="download">导出</div>--><!-- </div>--></form><script> form.render();
- $('#download').click(function () {
- window.location.href = "<?php echo url('export'); ?>?phone=<?php echo htmlentities((app('request')->get('phone') ?: '')); ?>&name=<?php echo htmlentities((app('request')->get('name') ?: '')); ?>&act_id=<?php echo htmlentities((app('request')->get('act_id') ?: '')); ?>&tg_id=<?php echo htmlentities(app('request')->get('tg_id')); ?>&source_type=<?php echo htmlentities(app('request')->get('source_type')); ?>" + $(this).parents('form').serialize();
- });
- </script></fieldset><table class="layui-table margin-top-20" lay-skin="line"><thead><tr><th class='list-table-check-td think-checkbox'><input data-auto-none data-check-target='.list-check-box' type='checkbox'></th><th class='text-left nowrap'>ID</th><th class='text-left nowrap'>支付会员</th><th class='text-left nowrap'>报名订单</th><th class='text-left nowrap'>订单类型</th><th class='text-left nowrap'>订单状态</th><th class='text-left nowrap'>退款状态</th><th class='text-left nowrap'>报名时间</th><th class='text-left nowrap'>操作</th></tr></thead><tbody><?php foreach($list as $key=>$vo): ?><tr><td class='list-table-check-td think-checkbox'><input class="list-check-box" value='<?php echo htmlentities($vo['id']); ?>' type='checkbox'></td><td class='text-left nowrap'><?php echo htmlentities((isset($vo['id']) && ($vo['id'] !== '')?$vo['id']:'--')); ?></td><td class='text-left nowrap'><img class="margin-right-5 text-top" data-tips-image="<?php echo htmlentities((isset($vo['headimg']) && ($vo['headimg'] !== '')?$vo['headimg']:'')); ?>" src="<?php echo htmlentities((isset($vo['headimg']) && ($vo['headimg'] !== '')?$vo['headimg']:'')); ?>" width="50px"><div class="inline-block"> 会员ID:<?php echo htmlentities((isset($vo['user_id']) && ($vo['user_id'] !== '')?$vo['user_id']:'')); ?><br> 电话:<?php echo htmlentities((isset($vo['phone']) && ($vo['phone'] !== '')?$vo['phone']:'')); ?><br/> 名称: <?php echo htmlentities((isset($vo['user_name']) && ($vo['user_name'] !== '')?$vo['user_name']:'')); ?></div></td><td class='text-left nowrap'><div class="inline-block"> 单号:<?php echo htmlentities((isset($vo['order_no']) && ($vo['order_no'] !== '')?$vo['order_no']:'')); ?><br/> 金额:<?php echo htmlentities((isset($vo['money']) && ($vo['money'] !== '')?$vo['money']:'')); ?><br/> 人数:<?php echo htmlentities((isset($vo['num']) && ($vo['num'] !== '')?$vo['num']:'')); ?></div></td><td class='text-left nowrap'><?php if($vo['pay_type'] == '9'): ?><span class="layui-badge layui-bg-orange margin-left-5">转账订单</span><?php else: ?><span class="layui-badge layui-bg-blue margin-left-5">线上订单</span><?php endif; ?></td><td class='text-left nowrap'><?php if($vo['status'] == '0'): ?><span class="layui-badge layui-bg-orange margin-left-5">待付款</span><?php endif; if($vo['status'] == '1'): ?><span class="layui-badge layui-bg-blue margin-left-5">已支付</span><?php endif; if($vo['status'] == '2'): ?><span class="layui-badge layui-bg-blue margin-left-5">已取消</span><?php endif; ?></td><td class='text-left nowrap'><?php if($vo['refund_state'] == '0'): ?><span class="layui-badge layui-bg-orange margin-left-5">未申请</span><?php endif; if($vo['refund_state'] == '1'): ?><span class="layui-badge layui-bg-blue margin-left-5">审核中</span><?php endif; if($vo['refund_state'] == '2'): ?><span class="layui-badge layui-bg-blue margin-left-5">已同意</span><?php endif; if($vo['refund_state'] == '3'): ?><span class="layui-badge layui-bg-blue margin-left-5">已拒绝</span><?php endif; if($vo['refund_state'] == '4'): ?><span class="layui-badge layui-bg-blue margin-left-5">退款异常</span><?php endif; if($vo['refund_state'] == '5'): ?><span class="layui-badge layui-bg-blue margin-left-5">退款成功</span><?php endif; if($vo['refund_state'] == '6'): ?><span class="layui-badge layui-bg-blue margin-left-5">已取消</span><?php endif; ?></td><td class='text-left nowrap'><?php echo htmlentities((isset($vo['create_at']) && ($vo['create_at'] !== '')?$vo['create_at']:'--')); ?></td><td class='text-left' style="width: 20%"><a data-title="详情" class="layui-btn layui-btn-sm" data-modal='<?php echo url("edit"); ?>?id=<?php echo htmlentities($vo['id']); ?>'>订单详情</a><span class="layui-btn layui-btn-sm layui-btn-danger" onclick="btn_confirm('删除','remove','<?php echo htmlentities($vo['id']); ?>');">删 除</span><!-- <span class="layui-btn layui-btn-sm layui-btn-warm" onclick="btn_confirm('重新提醒','remind','<?php echo htmlentities($vo['id']); ?>');">重新提醒</span>--><?php if($vo['status'] == 0 && $vo['pay_type'] == 9): ?><span class="layui-btn layui-btn-sm layui-btn-danger" onclick="btn_confirm('确认收款','confirm','<?php echo htmlentities($vo['id']); ?>');">确认收款</span><?php endif; if(in_array($vo['refund_state'],[1,2,4])): ?><a data-title="退款详情" class="layui-btn layui-btn-sm layui-btn-warm" data-modal='<?php echo url("audit"); ?>?id=<?php echo htmlentities($vo['id']); ?>'>退款详情</a><?php endif; if(in_array($vo['refund_state'],[4])): ?><span class="layui-btn layui-btn-sm layui-btn-danger" onclick="btn_confirm('退款','refund','<?php echo htmlentities($vo['id']); ?>');">重新退款</span><?php endif; ?></td></tr><?php endforeach; ?></tbody></table><?php if(empty($list) || (($list instanceof \think\Collection || $list instanceof \think\Paginator ) && $list->isEmpty())): ?><span class="notdata">没有记录哦</span><?php else: ?><?php echo (isset($pagehtml) && ($pagehtml !== '')?$pagehtml:''); ?><?php endif; ?></div><script> function btn_confirm(msg,fun,id) {
- layer.confirm('请确定是否'+msg, {btn: ['确定', '取消'], title: "提示"}, function () {
- var url = "/operate/activity_apply/"+fun;
- layer.closeAll();
- $.ajax({
- type: "post",
- url: url,
- data: {id:id},
- dataType: "json",
- async: false,
- success: function (data) {
- layer.msg(data.info);
- setTimeout(function () {
- window.location.reload();
- },1000)
- }
- });
- });
- }
- </script></div></div>
|