70f266e70f41aa317f95ef0fa6761d06.php 8.3 KB

1234567891011121314151617181920212223242526
  1. <?php /*a:2:{s:79:"D:\project\gyx\gaoyixia\application\operate\view\activity_apply_item\index.html";i:1710988401;s:56:"D:\project\gyx\gaoyixia\application\admin\view\main.html";i:1699858976;}*/ ?>
  2. <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"><input name="qr_content" value="<?php echo htmlentities((app('request')->get('qr_content') ?: '')); ?>" placeholder="请输入核销码" 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="sh_status"><option value="-1">全部</option><?php foreach($status_list as $k=>$v): if($v): if($sh_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"><button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</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();
  3. $('#download').click(function () {
  4. 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') ?: '')); ?>" + $(this).parents('form').serialize();
  5. });
  6. </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['name']) && ($vo['name'] !== '')?$vo['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/><br/> 金额:<?php echo htmlentities((isset($vo['money']) && ($vo['money'] !== '')?$vo['money']:'')); ?></div></td><td class='text-left nowrap'><?php if($vo['sh_status'] == '0'): ?><span class="layui-badge layui-bg-orange margin-left-5">待审核</span><?php endif; if($vo['sh_status'] == '1'): ?><span class="layui-badge layui-bg-blue margin-left-5">审核通过</span><?php endif; if($vo['sh_status'] == '2'): ?><span class="layui-badge layui-bg-black margin-left-5">审核拒绝</span><?php endif; ?></td><td class='text-left nowrap'><?php if($vo['is_hx'] == '0'): ?><span class="layui-badge layui-bg-orange margin-left-5">待核销</span><?php endif; if($vo['is_hx'] == '1'): ?><span class="layui-badge layui-bg-blue margin-left-5">已核销</span><?php endif; ?></td><td class='text-left nowrap'><?php echo htmlentities((isset($vo['qr_content']) && ($vo['qr_content'] !== '')?$vo['qr_content']:'--')); ?></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%"><?php if($vo['sh_status'] == 0): ?><a data-title="审核" class="layui-btn layui-btn-sm layui-btn-warm" data-modal='<?php echo url("edit"); ?>?id=<?php echo htmlentities($vo['id']); ?>'>审核</a><?php else: ?><a data-title="详情" class="layui-btn layui-btn-sm " data-modal='<?php echo url("edit"); ?>?id=<?php echo htmlentities($vo['id']); ?>'>查看详情</a><?php endif; ?><span class="layui-btn layui-btn-sm layui-btn-danger" onclick="btn_confirm('删除','remove','<?php echo htmlentities($vo['id']); ?>');">删 除</span><?php if($vo['refund_status'] == '4'): ?><span class="layui-btn layui-btn-sm layui-btn-danger" onclick="btn_confirm('确认退款','refund','<?php echo htmlentities($vo['id']); ?>');">退款</span><?php endif; ?><span class="layui-btn layui-btn-sm layui-btn-warm" onclick="btn_confirm('重新提醒','remind','<?php echo htmlentities($vo['id']); ?>');">重新提醒</span></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) {
  7. layer.confirm('请确定是否'+msg, {btn: ['确定', '取消'], title: "提示"}, function () {
  8. var url = "/operate/activity_apply_item/"+fun;
  9. layer.closeAll();
  10. $.ajax({
  11. type: "post",
  12. url: url,
  13. data: {id:id},
  14. dataType: "json",
  15. async: false,
  16. success: function (data) {
  17. layer.msg(data.info);
  18. setTimeout(function () {
  19. window.location.reload();
  20. },1000)
  21. }
  22. });
  23. });
  24. }
  25. </script></div></div>