index.html 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. {extend name="admin@main"}
  2. {block name="button"}
  3. {if auth("service/index/syncall")}
  4. <button data-load="{:url('syncall')}" class='layui-btn layui-btn-sm layui-btn-primary'>同步所有授权</button>
  5. {/if}
  6. {/block}
  7. {block name="content"}
  8. <div class="think-box-shadow">
  9. {include file='index/index_search'}
  10. <table class="layui-table margin-top-10" lay-skin="line">
  11. {notempty name='list'}
  12. <thead>
  13. <tr>
  14. <th class='text-left nowrap' style="width:390px">接口信息</th>
  15. <th class='text-left nowrap' style="width:120px">服务号信息</th>
  16. <th class='text-left nowrap'></th>
  17. <th class='text-left nowrap'></th>
  18. </tr>
  19. </thead>
  20. {/notempty}
  21. <tbody>
  22. {foreach $list as $key=>$vo}
  23. <tr>
  24. <td class='text-left nowrap'>
  25. <div class="inline-block text-top margin-right-5">
  26. <img onerror="this.src='__ROOT__/static/theme/img/404_icon.png'" style="width:60px;height:60px" data-tips-text="微信头像" data-tips-image src="{$vo.head_img|default=''}">
  27. </div>
  28. <div class="inline-block">
  29. 公众号APPID:{$vo.authorizer_appid}&nbsp;&nbsp;&nbsp;&nbsp;调用次数:{$vo.total}<br>
  30. 接口授权密钥:{$vo.appkey|default='<span class="color-desc">未生成接口服务密码, 请稍候授权绑定</span>'|raw}<br>
  31. 消息推送接口:{$vo.appuri|default='<span class="color-desc">未配置消息推送接口</span>'|raw}
  32. </div>
  33. </td>
  34. <td class='text-left nowrap'>
  35. <div class="inline-block text-top margin-right-5">
  36. <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}">
  37. </div>
  38. <div class="inline-block">
  39. 昵称:{$vo.nick_name|default='<span class="color-desc">未获取到公众号昵称</span>'|raw}<br>
  40. 公司:{$vo.principal_name|default='<span class="color-desc">未获取到公司名字</span>'|raw}<br>
  41. 状态:{if $vo.service_type eq 2}服务号{elseif $vo.service_type eq 3}小程序{else}订阅号{/if} /
  42. {$vo.verify_type == -1 ? '<span class="color-red">未认证</span>' : '<span class="color-green">已认证</span>'} /
  43. {if $vo.status eq 0}<span class="color-red">已禁用</span>{elseif $vo.status eq 1}<span class="color-green">使用中</span>{/if}
  44. </div>
  45. </td>
  46. <td class="text-left nowrap">
  47. 账号:{$vo.user_name|default='--'}<br>
  48. 日期:{$vo.create_at|format_datetime|str_replace=' ','<br>时间:',###|raw}
  49. </td>
  50. <td class='text-left nowrap'>
  51. {if $vo.status eq 1 and auth("servce/index/forbid")}
  52. <a class="layui-btn layui-btn-sm layui-btn-warm" data-action="{:url('forbid')}" data-csrf="{:systoken('service/index/forbid')}" data-value="id#{$vo.id};status#0">禁 用</a>
  53. {elseif auth("servce/index/resume")}
  54. <a class="layui-btn layui-btn-sm layui-btn-warm" data-action="{:url('resume')}" data-csrf="{:systoken('service/index/resume')}" data-value="id#{$vo.id};status#1">启 用</a>
  55. {/if}
  56. {if auth("service/index/sync")}
  57. <a class="layui-btn layui-btn-sm" data-load='{:url("service/index/sync")}?appid={$vo.authorizer_appid}'>同 步</a>
  58. {/if}
  59. {if auth("service/index/remove")}
  60. <a class="layui-btn layui-btn-sm layui-btn-danger" data-confirm="确定要删除该公众号吗?" data-action="{:url('remove')}" data-csrf="{:systoken('service/index/remove')}" data-value="id#{$vo.id}">删 除</a>
  61. {/if}
  62. {if auth("service/index/clearquota")}
  63. <a class="layui-btn layui-btn-sm layui-btn-primary" data-confirm="每个公众号每个月有10次清零机会,请谨慎使用!" data-load='{:url("service/index/clearquota")}?appid={$vo.authorizer_appid}'>清 零</a>
  64. {/if}
  65. </td>
  66. </tr>
  67. {/foreach}
  68. </tbody>
  69. </table>
  70. {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
  71. </div>
  72. {/block}