cxhxy/app/applet/view/wxapp/test/index.html
test_service d3170b4d1c 1
2023-12-01 15:43:29 +08:00

1 line
4.2 KiB
HTML
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<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 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-u-sm-12">
<table width="100%" class="am-table am-table-hover tpl-table-black">
<thead>
<tr>
<th>编号</th>
<th>唯一识别码</th>
<th>操作</th>
</tr>
</thead>
<tbody>
{if $list['errcode']==0 AND sizeof($list['members'])>0}
<?php $n=10000;?>
{foreach $list['members'] as $item}
<?php $n++;?>
<tr>
<td class="am-text-middle">{$n}</td>
<td class="am-text-middle">{$item['userstr']}</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['userstr']}">
<i class="am-icon-trash"></i> 删除
</a>
</div>
</td>
</tr>
{/foreach}
{else /}
<tr>
<td colspan="3" 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>
{include file="wxapp/test/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('wxapp.test/add')}"
});
},
btn2: function ($content) {
return true;
}
});
});
// 删除元素
$('.item-del').del('id', "{:url('wxapp.test/delete')}");
});
</script>