mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
85 lines
4.2 KiB
HTML
85 lines
4.2 KiB
HTML
{extend name='../../admin/view/main'}
|
||
|
||
{block name="button"}
|
||
|
||
{if auth("syncall")}
|
||
<button data-load="{:url('syncall')}" class='layui-btn layui-btn-sm layui-btn-primary'>同步所有授权</button>
|
||
{/if}
|
||
|
||
{/block}
|
||
|
||
{block name="content"}
|
||
<div class="think-box-shadow">
|
||
{include file='index/index_search'}
|
||
<table class="layui-table margin-top-10" lay-skin="line">
|
||
{notempty name='list'}
|
||
<thead>
|
||
<tr>
|
||
<th class='text-left nowrap' style="width:390px">接口信息</th>
|
||
<th class='text-left nowrap' style="width:120px">服务号信息</th>
|
||
<th class='text-left nowrap'></th>
|
||
<th class='text-left nowrap'></th>
|
||
</tr>
|
||
</thead>
|
||
{/notempty}
|
||
<tbody>
|
||
{foreach $list as $key=>$vo}
|
||
<tr>
|
||
<td class='text-left nowrap'>
|
||
<div class="inline-block text-top margin-right-5">
|
||
<img alt="" style="width:60px;height:60px" data-tips-text="微信头像" data-tips-image src="{$vo.head_img|default=''}">
|
||
</div>
|
||
<div class="inline-block">
|
||
公众号APPID:{$vo.authorizer_appid} 调用次数:{$vo.total}<br>
|
||
接口授权密钥:{$vo.appkey|default='<span class="color-desc">未生成接口服务密码, 请稍候授权绑定</span>'|raw}<br>
|
||
消息推送接口:{$vo.appuri|default='<span class="color-desc">未配置消息推送接口</span>'|raw}
|
||
</div>
|
||
</td>
|
||
<td class='text-left nowrap'>
|
||
<div class="inline-block text-top margin-right-5">
|
||
<img onerror="this.src='__ROOT__/static/theme/img/404_icon.png'" style="width:60px;height:60px" data-tips-text="微信二维码" data-tips-image src="{$vo.qrcode_url|local_image}">
|
||
</div>
|
||
<div class="inline-block">
|
||
昵称:{$vo.nick_name|default='<span class="color-desc">未获取到公众号昵称</span>'|raw}<br>
|
||
公司:{$vo.principal_name|default='<span class="color-desc">未获取到公司名字</span>'|raw}<br>
|
||
状态:{if $vo.service_type eq 2}服务号{elseif $vo.service_type eq 3}小程序{else}订阅号{/if} /
|
||
{$vo.verify_type == -1 ? '<span class="color-red">未认证</span>' : '<span class="color-green">已认证</span>'} /
|
||
{if $vo.status eq 0}<span class="color-red">已禁用</span>{elseif $vo.status eq 1}<span class="color-green">使用中</span>{/if}
|
||
</div>
|
||
</td>
|
||
<td class="text-left nowrap">
|
||
账号:{$vo.user_name|default='--'}<br>
|
||
日期:{$vo.create_at|format_datetime|str_replace=' ','<br>时间:',###|raw}
|
||
</td>
|
||
<td class='text-left nowrap'>
|
||
|
||
{if $vo.status eq 1 and auth("state")}
|
||
<a class="layui-btn layui-btn-sm layui-btn-warm" data-action="{:url('state')}" data-csrf="{:systoken('state')}" data-value="id#{$vo.id};status#0">禁 用</a>
|
||
{elseif auth("state")}
|
||
<a class="layui-btn layui-btn-sm layui-btn-warm" data-action="{:url('state')}" data-csrf="{:systoken('state')}" data-value="id#{$vo.id};status#1">启 用</a>
|
||
{/if}
|
||
|
||
|
||
{if auth("remove")}
|
||
<a class="layui-btn layui-btn-sm layui-btn-danger" data-confirm="确定要删除该公众号吗?" data-action="{:url('remove')}" data-csrf="{:systoken('remove')}" data-value="id#{$vo.id}">删 除</a>
|
||
{/if}
|
||
|
||
{if auth("sync")}
|
||
<a class="layui-btn layui-btn-sm" data-load='{:url("sync")}?appid={$vo.authorizer_appid}'>同 步</a>
|
||
{/if}
|
||
|
||
{if auth("clearquota")}
|
||
<a class="layui-btn layui-btn-sm layui-btn-primary" data-confirm="每个公众号每个月有10次清零机会,请谨慎使用!" data-load='{:url("clearquota")}?appid={$vo.authorizer_appid}'>清 零</a>
|
||
{/if}
|
||
|
||
</td>
|
||
</tr>
|
||
{/foreach}
|
||
</tbody>
|
||
</table>
|
||
|
||
{empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
|
||
|
||
</div>
|
||
|
||
{/block} |