1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- {extend name="public/container"}
- {block name="head_top"}
- {/block}
- {block name="content"}
- <div class="layui-fluid" style="background: #fff;margin-top: -10px;">
- <div class="layui-row layui-col-space15">
- <div class="layui-col-md12">
- <div class="layui-card">
- <!-- <div class="layui-card-header">门店列表</div>-->
- <div class="layui-card-body">
- <div class="layui-btn-container">
- /////
- </div>
- <table class="layui-hide" id="List" lay-filter="List"></table>
- <script type="text/html" id="user">
- {{# if(d.user){ }}
- {{# if(d.user.real_name){ }}
- 【{{d.user.real_name}}】
- {{# } }}
- {{d.user.account}}({{d.user.uid}})
- {{# }else{ }}
- 系统补充机器人
- {{# } }}
- </script>
- <script type="text/html" id="activity">
- {{d.activity.name}}
- </script>
- <script type="text/html" id="act">
- <button type="button" class="layui-btn layui-btn-xs layui-btn-normal" lay-event='edit'>
- 设置状态
- </button>
- </script>
- </div>
- </div>
- </div>
- </div>
- </div>
- <script src="{__ADMIN_PATH}js/layuiList.js"></script>
- {/block}
- {block name="script"}
- <script>
- layList.tableList('List', "{:Url('joinList')}", function () {
- return [
- {field: 'id', title: 'ID', sort: true, event: 'id', width: '5%'},
- {field: 'user', title: '参加人', toolbar: '#user', width: '20%'},
- {field: 'activity', title: '活动', toolbar: '#activity', width: '20%'},
- {field: 'bingo_count', title: '累计拼中', width: '7%'},
- {field: '_status', title: '状态', width: '7%'},
- {field: '_open_time', title: '开奖时间', width: '19%'},
- {field: '_set_status', title: '设置状态', width: '7%'},
- {field: 'right', title: '操作', align: 'center', toolbar: '#act', width: '15%'},
- ];
- });
- //点击事件绑定
- layList.tool(function (event, data, obj) {
- switch (event) {
- case 'open_image':
- $eb.openImage(data.image);
- break;
- case 'edit':
- $eb.createModalFrame(data.id + '-编辑', layList.U({a: 'setStatus', q: {id: data.id}}), {
- h: 900,
- w: 720
- });
- break;
- }
- })
- </script>
- {/block}
|