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

1 line
5.0 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"><?= $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>Applet_Id</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['applet_id']}</td>
<td class="am-text-middle">
<img src="{$item['head_img']}" width="50" height="50" alt="小程序图片">
</td>
<td class="am-text-middle">
<p class="item-title">{$item['app_name']|default='--'}</p>
</td>
<td class="am-text-middle">
{if $item['template']['value'] > 0}
<span class="am-badge am-radius am-badge-primary">
{else /}
{if $item['template']['text'] == ''}
<span class="am-badge am-radius">
{else /}
<span class="am-badge am-radius am-badge-secondary">
{/if}
{/if}
{$item['template']['name']}
</span>
</td>
<td class="am-text-middle">
{if $item['divide']}
<span class="x-color-green">{$item['divide']['user_id']}</span>
{else /}
<div class="tpl-table-black-operation">
<a class="j-relation tpl-table-black-operation-default"
href="javascript:void(0);"
data-id="{$item['applet_id']}">
<i class="iconfont icon-qiandai"></i>关联
</a>
</div>
{/if}
</td>
<td class="am-text-middle">
{if $item['template']['value']>0}
{$item['expire_time']['text']}
{else /}
--
{/if}
</td>
</tr>
{/foreach}
{else /}
<tr>
<td colspan="9" 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="applet/tpl_relation" /}
<script>
$(function () {
/**
* 关联分佣账户
*/
$('.j-relation').on('click', function () {
var data = $(this).data();
$.showAction({
title: '关联分佣账户',
area: '460px',
content: template('tpl-relation', data),
uCheck: true,
success: function ($content) {
$('#my-form').formPost({
url: "{:url('applet/relation')}"
});
},
btn2: function ($content) {
return true;
}
});
});
$('#my-form').formPost();
});
</script>