49 lines
2.6 KiB
HTML
49 lines
2.6 KiB
HTML
{extend name="../../admin/view/main"}
|
|
{block name="button"}
|
|
<button data-modal='{:url("add")}?mid={$mid}' data-title="添加通道" class='layui-btn layui-btn-sm layui-btn-primary'>添加通道</button>
|
|
{/block}
|
|
{block name='content'}
|
|
<div class="think-box-shadow table-block">
|
|
<table class="layui-table margin-top-10" lay-skin="line">
|
|
{notempty name='list'}
|
|
<thead>
|
|
<tr>
|
|
<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>
|
|
</tr>
|
|
</thead>
|
|
{/notempty}
|
|
<tbody>
|
|
{foreach $list as $key=>$vo}
|
|
<tr>
|
|
<td class="text-left nowrap">{$vo.id}</td>
|
|
<td class="text-left nowrap"><span class="color-blue">{$vo.merchant.name}</span></td>
|
|
<td class="text-left nowrap">{$vo.name}</td>
|
|
<td class="text-left nowrap">{$vo.create_at}</td>
|
|
<td class='text-left nowrap'>
|
|
{if auth("edit")}
|
|
<a data-dbclick class="layui-btn layui-btn-xs" data-title="编辑返点" data-modal="{:url('edit')}?id={$vo.id}&mid={$mid}">编 辑</a>
|
|
{/if}
|
|
|
|
<!--{if auth("state") and $vo.status eq 1}-->
|
|
<a class="layui-btn layui-btn-xs layui-btn-warm" data-confirm="确定要禁用该通道吗?" data-action="{:url('state')}" data-value="id#{$vo.id};status#0" data-csrf="{:systoken('state')}">禁 用</a>
|
|
<!-- {elseif auth("state")} -->
|
|
<a class="layui-btn layui-btn-warm layui-btn-xs" data-confirm="确定要启用该通道吗?" data-action="{:url('state')}" data-value="id#{$vo.id};status#1" data-csrf="{:systoken('state')}">启 用</a>
|
|
<!-- {/if} -->
|
|
|
|
<!--{if auth("recharge")}-->
|
|
<a class="layui-btn layui-btn-xs layui-btn-normal" data-title="渠道设置" data-open='{:url("/merchant/project_product/setting")}?project_id={$vo.id}&mid={$vo.mid}' data-csrf="{:systoken('recharge')}">渠道设置</a>
|
|
|
|
<a class="layui-btn layui-btn-xs layui-btn-normal" data-title="折扣设置" data-open='{:url("/merchant/project_percent/index")}?project_id={$vo.id}&mid={$vo.mid}' data-csrf="{:systoken('recharge')}">折扣设置</a>
|
|
<!--{/if}-->
|
|
</td>
|
|
</tr>
|
|
{/foreach}
|
|
</tbody>
|
|
</table>
|
|
{empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
|
|
</div>
|
|
{/block} |