109 lines
5.3 KiB
HTML
Executable File
109 lines
5.3 KiB
HTML
Executable File
<div class="row-content am-cf">
|
|
<div class="row layui-form layui-form-pane">
|
|
<div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
|
|
<div class="widget am-cf">
|
|
<div class="widget-head am-cf">
|
|
<div class="widget-title am-cf">商户列表</div>
|
|
</div>
|
|
<div class="widget-body am-fr">
|
|
<div class="am-u-sm-12 am-u-md-6 am-u-lg-6">
|
|
<div class="am-form-group">
|
|
<div class="am-btn-toolbar">
|
|
<div class="am-btn-group am-btn-group-sm">
|
|
<a href="javascript:void(0);" class="hema-add am-btn am-btn-primary am-radius">
|
|
<span class="am-icon-plus"></span> 添加
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="am-scrollable-horizontal am-u-sm-12">
|
|
<table width="100%" class="am-table am-table-hover tpl-table-black">
|
|
<thead>
|
|
<tr>
|
|
<th>编号</th>
|
|
<th>头像</th>
|
|
<th>昵称</th>
|
|
<th>性别</th>
|
|
<th>钱包</th>
|
|
<th>积分</th>
|
|
<th>电话</th>
|
|
<th>省份</th>
|
|
<th>城市</th>
|
|
<th>注册</th>
|
|
<th>管理</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{if !$list->isEmpty()}
|
|
{foreach $list as $item}
|
|
<tr>
|
|
<td class="am-text-middle">{$item['user_id']}</td>
|
|
<td class="am-text-middle">
|
|
<img src="{$item['avatar']}" width="72" height="72" alt="">
|
|
</td>
|
|
<td class="am-text-middle">{$item['nickname']}</td>
|
|
<td class="am-text-middle">{$item['gender']}</td>
|
|
<td class="am-text-middle">{$item['money']}</td>
|
|
<td class="am-text-middle">{$item['score']}</td>
|
|
<td class="am-text-middle">{$item['phone']}</td>
|
|
<td class="am-text-middle">{$item['province'] ?: '--'}</td>
|
|
<td class="am-text-middle">{$item['city'] ?: '--'}</td>
|
|
<td class="am-text-middle">{$item['create_time']}</td>
|
|
<td class="am-text-middle">
|
|
<div class="tpl-table-black-operation">
|
|
<a href="{:url('user/oneKey',['id' => $item['user_id']])}" target="_blank">
|
|
<i class="am-icon-user"></i> 登录
|
|
</a>
|
|
<a href="javascript:;" class="hema-del tpl-table-black-operation-del"
|
|
data-id="{$item['user_id']}">
|
|
<i class="am-icon-trash"></i> 删除
|
|
</a>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
{/foreach}
|
|
{else /}
|
|
<tr>
|
|
<td colspan="11" class="am-text-center">暂无记录</td>
|
|
</tr>
|
|
{/if}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="am-u-lg-12 am-cf">
|
|
<div class="am-fr">{:$list->render()} </div>
|
|
<div class="am-fr pagination-total am-margin-right">
|
|
<div class="am-vertical-align-middle">总记录:{:$list->total()}</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{include file="user/add" /}
|
|
<script>
|
|
$(function () {
|
|
//添加
|
|
$('.hema-add').on('click', function () {
|
|
$.showAction({
|
|
title: '添加',
|
|
area: '750px',
|
|
content: template('tpl-add', {}),
|
|
uCheck: true,
|
|
success: function ($content) {
|
|
$('#my-form').formPost({
|
|
url: "{:url('user/add')}"
|
|
});
|
|
},
|
|
btn2: function ($content) {
|
|
return true;
|
|
}
|
|
});
|
|
});
|
|
|
|
$('.hema-del').del('id', "{:url('user/delete')}",'确定要解除代理关系?');// 删除元素
|
|
|
|
});
|
|
</script> |