1 line
4.9 KiB
HTML
Executable File
1 line
4.9 KiB
HTML
Executable File
<div class="row-content am-cf">
|
||
|
||
<div class="row">
|
||
|
||
<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>
|
||
|
||
{if $user['applet']['status']['value'] == 1}
|
||
|
||
<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 class="am-btn am-btn-primary am-radius"
|
||
|
||
href="{:url('wxapp.category/add')}">
|
||
|
||
<span class="am-icon-plus"></span> 添加
|
||
|
||
</a>
|
||
|
||
</div>
|
||
|
||
</div>
|
||
|
||
</div>
|
||
|
||
</div>
|
||
|
||
<div class="am-u-sm-12">
|
||
|
||
<table width="100%" class="am-table am-table-hover tpl-table-black">
|
||
|
||
<thead>
|
||
|
||
<tr>
|
||
|
||
<th>一级类目ID</th>
|
||
|
||
<th>一级类目名称</th>
|
||
|
||
<th>二级类目ID</th>
|
||
|
||
<th>二级类目名称</th>
|
||
|
||
<th>审核状态</th>
|
||
|
||
<th>审核不通过的原因</th>
|
||
|
||
<th>操作</th>
|
||
|
||
</tr>
|
||
|
||
</thead>
|
||
|
||
<tbody>
|
||
|
||
{if $list['errcode']==0 AND sizeof($list['categories'])>0}
|
||
|
||
{foreach $list['categories'] as $item}
|
||
|
||
<tr>
|
||
|
||
<td class="am-text-middle">{$item['first']}</td>
|
||
|
||
<td class="am-text-middle">{$item['first_name']}</td>
|
||
|
||
<td class="am-text-middle">{$item['second']}</td>
|
||
|
||
<td class="am-text-middle">{$item['second_name']}</td>
|
||
|
||
<td class="am-text-middle">
|
||
|
||
<span class="am-badge
|
||
|
||
{$item['audit_status'] == 3 ? ' am-badge-success' : ''}
|
||
|
||
{$item['audit_status'] == 2 ? ' am-badge-danger' : ''}
|
||
|
||
{$item['audit_status'] == 1 ? ' am-badge-warning' : ''} ">
|
||
|
||
{$item['audit_status']==1?'审核中':''}
|
||
|
||
{$item['audit_status']==2?'审核不通过':''}
|
||
|
||
{$item['audit_status']==3?'审核通过':''}
|
||
|
||
</span>
|
||
|
||
</td>
|
||
|
||
<td class="am-text-middle">{:isset($item['audit_reason'])?$item['audit_reason']:'--'}</td>
|
||
|
||
<td class="am-text-middle">
|
||
|
||
<div class="tpl-table-black-operation">
|
||
|
||
<a href="javascript:;" class="item-del tpl-table-black-operation-del"
|
||
|
||
data-id="{$item['first'] . ',' . $item['second']}">
|
||
|
||
<i class="am-icon-trash"></i> 删除
|
||
|
||
</a>
|
||
|
||
</div>
|
||
|
||
</td>
|
||
|
||
</tr>
|
||
|
||
{/foreach}
|
||
|
||
{else /}
|
||
|
||
<tr>
|
||
|
||
<td colspan="7" class="am-text-center">
|
||
|
||
{$list['errcode'] == 0 ? '暂无记录' : 'code:'.$list['errcode'].',msg:'.$list['errmsg']}
|
||
|
||
</td>
|
||
|
||
</tr>
|
||
|
||
{/if}
|
||
|
||
</tbody>
|
||
|
||
</table>
|
||
|
||
</div>
|
||
|
||
</div>
|
||
|
||
{else /}
|
||
|
||
<div class="tips am-margin-bottom-sm am-u-sm-12">
|
||
|
||
<div class="pre-error">
|
||
{$user['applet']['app_id'] == '' ?'未授权绑定小程序':'非授权模式,无操作权限'}
|
||
</div>
|
||
|
||
</div>
|
||
|
||
{/if}
|
||
|
||
</div>
|
||
|
||
</div>
|
||
|
||
</div>
|
||
|
||
</div>
|
||
|
||
<script>
|
||
|
||
$(function () {
|
||
|
||
// 删除元素
|
||
|
||
var url = "{:url('wxapp.category/delete')}";
|
||
|
||
$('.item-del').del('id', url);
|
||
|
||
|
||
|
||
});
|
||
|
||
</script>
|
||
|
||
|
||
|