ThinkAdmin/app/data/view/user/parent.html
2021-03-24 15:46:02 +08:00

77 lines
3.5 KiB
PHP

{extend name="../../admin/view/full"}
{block name="content"}
<div class="iframe-pagination">
{include file='user/index_search'}
<table class="layui-table margin-top-10" lay-skin="line">
{notempty name='list'}
<thead>
<tr>
<th class='nowrap'>用户信息</th>
<th class='nowrap'>推荐人信息</th>
<th class='nowrap'>注册时间</th>
<th class='nowrap'></th>
</tr>
</thead>
{/notempty}
<tbody>
{foreach $list as $key=>$vo}
<tr>
<td class="nowrap">
<div class="headimg" data-tips-image data-lazy-src="{$vo.headimg|default='__ROOT__/static/theme/img/headimg.png'}"></div>
<div class="inline-block">
<div>
{notempty name='vo.username'}
姓名:<span class="color-blue">{$vo.username|default='-'}</span>
{else}
昵称:<span class="color-blue">{$vo.nickname|default='-'}</span>
{/notempty}
<span class="margin-left-5">[ <b class="color-red">VIP{$vo.vip_code}</b> ] <b class="color-red">{$vo.vip_name}</b></span>
</div>
<div>手机:<span class="color-blue">{$vo.phone|default='-'}</span></div>
</div>
</td>
<td class="nowrap">
{notempty name='vo.from'}
<div class="headimg" data-tips-image data-lazy-src="{$vo.from.headimg|default='__ROOT__/static/theme/img/headimg.png'}"></div>
<div class="inline-block text-middle">
<!--{notempty name='vo.pids'}-->
<span class="layui-badge layui-badge-middle layui-bg-green">永久</span>
<!--{else}-->
<span class="layui-badge layui-badge-middle layui-bg-red">临时</span>
<!--{/notempty}-->
</div>
<div class="inline-block text-middle">
<div>
{notempty name='vo.from.username'}
姓名:<span class="color-blue">{$vo.from.username|default='-'}</span>
{else}
昵称:<span class="color-blue">{$vo.from.nickname|default='-'}</span>
{/notempty}
<span class="margin-left-5">[ <b class="color-red">VIP{$vo.from.vip_code}</b> ] <b class="color-red">{$vo.from.vip_name}</b></span>
</div>
<div>手机:<span>{$vo.from.phone|default='-'}</span></div>
</div>
{else}
<div class="color-desc">没有推荐人</div>
{/notempty}
</td>
<td class="nowrap">
使用状态:{if $vo.status eq 0}<b class="color-red margin-right-5">已冻结</b>{elseif $vo.status eq 1}<b class="color-green margin-right-5">已激活</b>{/if}<br>
注册时间:{$vo.create_at|format_datetime}
</td>
<td class="nowrap">
<!--{if auth("parent")}-->
<a class="layui-btn layui-btn-sm layui-btn-primary" data-modal="{:url('parent')}?uid={:input('uid')}&pid={$vo.id}">确认选择</a>
<!--{/if}-->
</td>
</tr>
{/foreach}
</tbody>
</table>
{empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
</div>
{/block}