109 lines
5.2 KiB
HTML
Executable File
109 lines
5.2 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">{$title}列表</div>
|
|
|
|
</div>
|
|
|
|
<div class="widget-body am-fr">
|
|
|
|
<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>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{if !$list->isEmpty()}
|
|
|
|
{foreach $list as $item}
|
|
|
|
<tr>
|
|
|
|
<td class="am-text-middle">{$item['apply_id']}</td>
|
|
|
|
<td class="am-text-middle">
|
|
|
|
<div class="goods-detail">
|
|
|
|
<div class="goods-image">
|
|
|
|
<img src="{$item['user']['avatar']}" alt="">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td class="am-text-middle">{$item['user']['nickname']}</td>
|
|
|
|
<td class="am-text-middle">{$item['user']['phone']|default='--'}</td>
|
|
|
|
<td class="am-text-middle">{$item['pay_status']['text']}</td>
|
|
|
|
<td class="am-text-middle">{$item['apply_status']['text']}</td>
|
|
|
|
<td class="am-text-middle">{$item['create_time']}</td>
|
|
|
|
<td class="am-text-middle">
|
|
|
|
<div class="tpl-table-black-operation">
|
|
|
|
<a href="javascript:;" class="hema-edit" data-id="{$item['apply_id']}">
|
|
|
|
<i class="am-icon-info"></i> 认证
|
|
|
|
</a>
|
|
|
|
<a href="javascript:;" class="hema-del tpl-table-black-operation-del"
|
|
|
|
data-id="{$item['apply_id']}">
|
|
|
|
<i class="am-icon-trash"></i> 删除
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{/foreach}
|
|
|
|
{else /}
|
|
|
|
<tr>
|
|
|
|
<td colspan="8" 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="apply/detail" /}
|
|
|
|
<script>
|
|
|
|
$(function () {
|
|
|
|
//编辑
|
|
|
|
$('.hema-edit').on('click', function () {
|
|
|
|
var data = $(this).data();
|
|
|
|
$.get("{:url('apply/detail')}?id=" + data.id, function (result) {
|
|
|
|
let btn = ['取消', '确定'];
|
|
|
|
if(result.code == 0){
|
|
|
|
$.show_error(result.msg);
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
if(result.data.model.apply_status.value > 10){
|
|
|
|
btn = ['关闭'];
|
|
|
|
}
|
|
|
|
$.showAction({
|
|
|
|
title: result.data.model.apply_mode.text + " - 资料认证",
|
|
|
|
area: '750px',
|
|
|
|
btn: btn,
|
|
|
|
content: template('tpl-detail', {model:result.data.model}),
|
|
|
|
uCheck: true,
|
|
|
|
success: function ($content) {
|
|
|
|
$('#my-form').formPost({
|
|
|
|
url: "{:url('apply/detail')}?id=" + data.id
|
|
|
|
});
|
|
|
|
},
|
|
|
|
btn2: function ($content) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
// 删除元素
|
|
|
|
var url = "{:url('apply/delete')}";
|
|
|
|
$('.hema-del').del('id', url);
|
|
|
|
|
|
|
|
});
|
|
|
|
</script> |