第二阶段完善代理商激活码
This commit is contained in:
83
app/agent/view/index/codes.html
Normal file
83
app/agent/view/index/codes.html
Normal file
@@ -0,0 +1,83 @@
|
||||
{extend name="../../admin/view/main"}
|
||||
|
||||
{block name="button"}
|
||||
<button class='layui-btn layui-btn-sm layui-btn-primary' data-modal='{:url("generate")}'>生成激活码</button>
|
||||
{/block}
|
||||
|
||||
{block name="content"}
|
||||
<div class="think-box-shadow">
|
||||
<form class="layui-form layui-form-pane form-search" action="{:sysuri()}" 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">
|
||||
<select name='is_used' lay-search class='layui-select'>
|
||||
<option value=''>-- 全部 --</option>
|
||||
<option value='0' {if isset($get.is_used) and $get.is_used=='0'}selected{/if}>未使用</option>
|
||||
<option value='1' {if isset($get.is_used) and $get.is_used=='1'}selected{/if}>已使用</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item layui-inline">
|
||||
<label class="layui-form-label">结算状态</label>
|
||||
<div class="layui-input-inline">
|
||||
<select name='status' lay-search class='layui-select'>
|
||||
<option value=''>-- 全部 --</option>
|
||||
<option value='0' {if isset($get.status) and $get.status=='0'}selected{/if}>未结算</option>
|
||||
<option value='1' {if isset($get.status) and $get.status=='1'}selected{/if}>已结算</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item layui-inline">
|
||||
<button class="layui-btn layui-btn-primary"><i class="layui-icon"></i> 搜 索</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<table class="layui-table margin-top-10" lay-skin="line">
|
||||
{notempty name='list'}
|
||||
<thead>
|
||||
<tr>
|
||||
<th class='text-left'>激活码</th>
|
||||
<th class='text-left'>有效天数</th>
|
||||
<th class='text-left'>销售价格</th>
|
||||
<th class='text-left'>佣金</th>
|
||||
<th class='text-left'>使用状态</th>
|
||||
<th class='text-left'>使用时间</th>
|
||||
<th class='text-left'>使用者</th>
|
||||
<th class='text-left'>结算状态</th>
|
||||
<th class='text-left'>生成时间</th>
|
||||
</tr>
|
||||
</thead>
|
||||
{/notempty}
|
||||
<tbody>
|
||||
{foreach $list as $key=>$vo}
|
||||
<tr>
|
||||
<td class='text-left'>{$vo.code}</td>
|
||||
<td class='text-left'>{$vo.days} 天</td>
|
||||
<td class='text-left'>{$vo.price}</td>
|
||||
<td class='text-left'>{$vo.commission}</td>
|
||||
<td class='text-left'>
|
||||
{if $vo.is_used eq 1}
|
||||
<span class="color-red">已使用</span>
|
||||
{else}
|
||||
<span class="color-green">未使用</span>
|
||||
{/if}
|
||||
</td>
|
||||
<td class='text-left'>{$vo.used_at|format_datetime|default='--'}</td>
|
||||
<td class='text-left'>{$vo.used_by|default='--'}</td>
|
||||
<td class='text-left'>
|
||||
{if $vo.status eq 1}
|
||||
<span class="color-blue">已结算</span>
|
||||
{else}
|
||||
<span class="color-red">未结算</span>
|
||||
{/if}
|
||||
</td>
|
||||
<td class='text-left'>{$vo.created_at|format_datetime}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
{empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
|
||||
</div>
|
||||
{/block}
|
||||
Reference in New Issue
Block a user