12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- {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">
- <button class="layui-btn layui-btn-sm"
- onclick="$eb.createModalFrame(this.innerText,'{:Url('addGroup')}',{h:900,w:720})">添加活动
- </button>
- </div>
- <table class="layui-hide" id="List" lay-filter="List"></table>
- <script type="text/html" id="act">
- <button type="button" class="layui-btn layui-btn-xs layui-btn-normal" lay-event='detail'>
- 详情
- </button>
- <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('groupList')}", function () {
- return [
- {field: 'id', title: 'ID', sort: true, event: 'id', width: '5%'},
- {field: 'name', title: '活动名称', width: '17%'},
- {field: '_cost', title: '参与支出', width: '7%'},
- {field: '_bingo', title: '拼中获得', width: '7%'},
- {field: '_ticket', title: '参与门票', width: '7%'},
- {field: 'system_money_ratio', title: '奖池(%)', width: '7%'},
- {field: 'join_award_ratio', title: '参与奖(%)', width: '7%'},
- {field: 'join_number', title: '参与人数', width: '7%'},
- {field: 'bingo_number', title: '中奖人数', width: '7%'},
- {field: 'join_limit', title: '每日参与限制', width: '7%'},
- {field: '_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.name + '-编辑', layList.U({a: 'addGroup', q: {id: data.id}}), {h: 900, w: 720});
- break;
- case 'detail':
- $eb.createModalFrame(data.name + '-编辑', layList.U({a: 'detail', q: {id: data.id}}));
- break;
- }
- })
- </script>
- {/block}
|