user.php 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <div class="row-content am-cf">
  2. <div class="row">
  3. <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
  4. <div class="widget am-cf">
  5. <div class="widget-head am-cf">
  6. <div class="widget-title am-cf">活跃用户列表</div>
  7. </div>
  8. <div class="widget-body am-fr">
  9. <div class="tips am-margin-bottom am-u-sm-12">
  10. <div class="pre">
  11. <p> 注:仅展示7天内在小程序中活跃(浏览点击)的用户。</p>
  12. <p> 注:formId有效期是7天,可用于向用户发送模板消息。</p>
  13. </div>
  14. </div>
  15. <div class="am-scrollable-horizontal am-u-sm-12">
  16. <table width="100%" class="am-table am-table-compact am-table-striped
  17. tpl-table-black am-text-nowrap">
  18. <thead>
  19. <tr>
  20. <th>用户ID</th>
  21. <th>用户头像</th>
  22. <th>用户昵称</th>
  23. <th>formid数量</th>
  24. <th>注册时间</th>
  25. </tr>
  26. </thead>
  27. <tbody>
  28. <?php if (!$list->isEmpty()): foreach ($list as $item): ?>
  29. <tr>
  30. <td class="am-text-middle"><?= $item['user_id'] ?></td>
  31. <td class="am-text-middle">
  32. <a href="<?= $item['user']['avatarUrl'] ?>" title="点击查看大图" target="_blank">
  33. <img src="<?= $item['user']['avatarUrl'] ?>" width="72" height="72" alt="">
  34. </a>
  35. </td>
  36. <td class="am-text-middle"><?= $item['user']['nickName'] ?></td>
  37. <td class="am-text-middle"><?= $item['total_formid'] ?></td>
  38. <td class="am-text-middle"><?= $item['user']['create_time'] ?></td>
  39. </tr>
  40. <?php endforeach; else: ?>
  41. <tr>
  42. <td colspan="5" class="am-text-center">暂无活跃用户</td>
  43. </tr>
  44. <?php endif; ?>
  45. </tbody>
  46. </table>
  47. </div>
  48. <div class="am-u-lg-12 am-cf">
  49. <div class="am-fr"><?= $list->render() ?> </div>
  50. <div class="am-fr pagination-total am-margin-right">
  51. <div class="am-vertical-align-middle">总记录:<?= $list->total() ?></div>
  52. </div>
  53. </div>
  54. </div>
  55. </div>
  56. </div>
  57. </div>
  58. </div>
  59. <script>
  60. $(function () {
  61. });
  62. </script>