log.php 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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. <!-- 工具栏 -->
  10. <div class="page_toolbar am-margin-bottom-xl am-cf">
  11. <form id="form-search" class="toolbar-form" action="">
  12. <input type="hidden" name="s" value="/<?= $request->pathinfo() ?>">
  13. <div class="am fr">
  14. <div class="am-form-group tpl-form-border-form am-fl">
  15. <input type="text" name="start_time"
  16. class="am-form-field"
  17. value="<?= $request->get('start_time') ?>" placeholder="请选择起始日期"
  18. data-am-datepicker>
  19. </div>
  20. <div class="am-form-group tpl-form-border-form am-fl">
  21. <input type="text" name="end_time"
  22. class="am-form-field"
  23. value="<?= $request->get('end_time') ?>" placeholder="请选择截止日期"
  24. data-am-datepicker>
  25. </div>
  26. <div class="am-form-group am-fl">
  27. <div class="am-input-group am-input-group-sm tpl-form-border-form">
  28. <input type="text" class="am-form-field" name="search" placeholder="请输入用户昵称"
  29. value="<?= $request->get('search') ?>">
  30. <div class="am-input-group-btn">
  31. <button class="am-btn am-btn-default am-icon-search" type="submit"></button>
  32. </div>
  33. </div>
  34. </div>
  35. </div>
  36. </form>
  37. </div>
  38. <div class="am-scrollable-horizontal am-u-sm-12">
  39. <table width="100%" class="am-table am-table-compact am-table-striped
  40. tpl-table-black am-text-nowrap">
  41. <thead>
  42. <tr>
  43. <th>ID</th>
  44. <th>微信头像</th>
  45. <th>微信昵称</th>
  46. <th>变动数量</th>
  47. <th>描述/说明</th>
  48. <th>管理员备注</th>
  49. <th>创建时间</th>
  50. </tr>
  51. </thead>
  52. <tbody>
  53. <?php if (!$list->isEmpty()): foreach ($list as $item): ?>
  54. <tr>
  55. <td class="am-text-middle"><?= $item['log_id'] ?></td>
  56. <td class="am-text-middle">
  57. <a href="<?= $item['user']['avatarUrl'] ?>" title="点击查看大图" target="_blank">
  58. <img src="<?= $item['user']['avatarUrl'] ?>" width="72" height="72" alt="">
  59. </a>
  60. </td>
  61. <td class="am-text-middle">
  62. <p class=""><?= $item['user']['nickName'] ?></p>
  63. <p class="am-link-muted">(用户ID:<?= $item['user']['user_id'] ?>)</p>
  64. </td>
  65. <td class="am-text-middle">
  66. <?= $item['value'] > 0 ? '+' : '' ?><?= $item['value'] ?>
  67. </td>
  68. <td class="am-text-middle"><?= $item['describe'] ?: '--' ?></td>
  69. <td class="am-text-middle"><?= $item['remark'] ?: '--' ?></td>
  70. <td class="am-text-middle"><?= $item['create_time'] ?></td>
  71. </tr>
  72. <?php endforeach; else: ?>
  73. <tr>
  74. <td colspan="10" class="am-text-center">暂无记录</td>
  75. </tr>
  76. <?php endif; ?>
  77. </tbody>
  78. </table>
  79. </div>
  80. <div class="am-u-lg-12 am-cf">
  81. <div class="am-fr"><?= $list->render() ?> </div>
  82. <div class="am-fr pagination-total am-margin-right">
  83. <div class="am-vertical-align-middle">总记录:<?= $list->total() ?></div>
  84. </div>
  85. </div>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. </div>
  91. <script>
  92. $(function () {
  93. });
  94. </script>