88 lines
3.9 KiB
HTML
88 lines
3.9 KiB
HTML
{extend name="../../admin/view/main"}
|
|
{block name="button"}
|
|
<button class='layui-btn layui-btn-sm layui-btn-primary' data-open='{:url("/merchant/merchant/index")}'
|
|
data-title="返回业务">返回商户
|
|
</button>
|
|
|
|
<!--{if auth("add")}-->
|
|
<button class='layui-btn layui-btn-sm layui-btn-primary' data-modal='{:url("add")}?mid={$mid}'
|
|
data-title="添加商品映射">添加商品映射
|
|
</button>
|
|
<!--{/if}-->
|
|
{/block}
|
|
|
|
{block name="content"}
|
|
<div class="layui-tab layui-tab-card think-bg-white table-block">
|
|
|
|
<div class="layui-tab-content think-box-shadow table-block table-block">
|
|
<table class="layui-table margin-top-10" lay-skin="line">
|
|
{notempty name='list'}
|
|
<thead>
|
|
<tr>
|
|
<th class='list-table-check-td think-checkbox'>
|
|
<label><input data-auto-none data-check-target='.list-check-box' type='checkbox'></label>
|
|
</th>
|
|
<th class='text-left nowrap' width="">数据ID</th>
|
|
<th class='text-left nowrap' width="">映射商品ID</th>
|
|
<th class='text-left nowrap' width="">绑定商品ID</th>
|
|
<th class='text-left nowrap' width="">绑定商品key</th>
|
|
<th class='text-left nowrap' width="">绑定商品面值</th>
|
|
<th class='text-left nowrap' width="">产品状态</th>
|
|
<th class='text-left nowrap' width="100%">创建时间</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
{/notempty}
|
|
<tbody>
|
|
{foreach $list as $key=>$vo}
|
|
<tr>
|
|
<td class='list-table-check-td think-checkbox'>
|
|
<label><input class="list-check-box" value='{$vo.id}' type='checkbox'></label>
|
|
</td>
|
|
<td class='text-left nowrap'>
|
|
{$vo.id|default=''}
|
|
</td>
|
|
<td class='text-left nowrap'>
|
|
{$vo.mapping_id|default=''}
|
|
</td>
|
|
<td class='text-left nowrap'>
|
|
{$vo.proid|default=''}
|
|
</td>
|
|
<td class='text-left nowrap'>
|
|
{$vo.product_key|default=''}
|
|
</td>
|
|
<td class='text-left nowrap'>
|
|
{$vo.cash|default=''}
|
|
</td>
|
|
<td class='text-left nowrap'>
|
|
{eq name='vo.status' value='0'}<span class="color-red">已禁用</span>{else}<span class="color-green">使用中</span>{/eq}
|
|
</td>
|
|
<td class='text-left nowrap'>
|
|
{$vo.create_at|format_datetime}
|
|
</td>
|
|
<td class='text-left nowrap'>
|
|
|
|
<!--{if auth("edit")}-->
|
|
<a class="layui-btn layui-btn-xs" data-dbclick data-modal='{:url("edit")}?id={$vo.id}&mid={$mid}'
|
|
data-title="编辑映射商品ID">编 辑</a>
|
|
|
|
<!--{/if}-->
|
|
<!-- {if $vo.status eq 1 and auth("state")} -->
|
|
<a class="layui-btn layui-btn-danger layui-btn-xs" data-action="{:url('state')}"
|
|
data-confirm="确定要禁用该产品吗?" data-csrf="{:systoken('state')}" data-value="id#{$vo.id};status#0">禁
|
|
用</a>
|
|
<!-- {elseif auth("state")} -->
|
|
<a class="layui-btn layui-btn-warm layui-btn-xs" data-action="{:url('state')}"
|
|
data-confirm="确定要启用该产品吗?" data-csrf="{:systoken('state')}" data-value="id#{$vo.id};status#1">启
|
|
用</a>
|
|
<!-- {/if} -->
|
|
</td>
|
|
</tr>
|
|
{/foreach}
|
|
</tbody>
|
|
</table>
|
|
{empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
|
|
</div>
|
|
</div>
|
|
{/block}
|