users.php 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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="am-scrollable-horizontal am-u-sm-12">
  10. <table width="100%" class="am-table am-table-compact am-table-striped
  11. tpl-table-black am-text-nowrap">
  12. <thead>
  13. <tr>
  14. <th>用户ID</th>
  15. <th>微信头像</th>
  16. <th>微信昵称</th>
  17. <th>拼团角色</th>
  18. <th>订单号</th>
  19. <th>订单金额</th>
  20. <th>收货人</th>
  21. <th>联系方式</th>
  22. <th>收货地址</th>
  23. <th>下单时间</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">
  38. <?php if ($item['is_creator']): ?>
  39. <span class="am-badge am-badge-warning">团长</span>
  40. <?php else: ?>
  41. <span class="am-badge am-badge-secondary">团员</span>
  42. <?php endif; ?>
  43. </td>
  44. <td class="am-text-middle"><?= $item['sharing_order']['order_no'] ?></td>
  45. <td class="am-text-middle">¥<?= $item['sharing_order']['total_price'] ?></td>
  46. <td class="am-text-middle"><?= $item['sharing_order']['address']['name'] ?></td>
  47. <td class="am-text-middle"><?= $item['sharing_order']['address']['phone'] ?></td>
  48. <td class="am-text-middle">
  49. <span><?= $item['sharing_order']['address']['region']['province'] ?></span>
  50. <span><?= $item['sharing_order']['address']['region']['city'] ?></span>
  51. <span><?= $item['sharing_order']['address']['region']['region'] ?></span>
  52. <span><?= $item['sharing_order']['address']['detail'] ?></span>
  53. </td>
  54. <td class="am-text-middle"><?= $item['create_time'] ?></td>
  55. <td class="am-text-middle">
  56. <div class="tpl-table-black-operation">
  57. <?php if (checkPrivilege('apps.sharing.order/detail')): ?>
  58. <a class="tpl-table-black-operation-default"
  59. href="<?= url('apps.sharing.order/detail', ['order_id' => $item['order_id']]) ?>">
  60. <i class="iconfont icon-order-o"></i> 订单详情
  61. </a>
  62. <?php endif; ?>
  63. </div>
  64. </td>
  65. </tr>
  66. <?php endforeach; else: ?>
  67. <tr>
  68. <td colspan="11" class="am-text-center">暂无记录</td>
  69. </tr>
  70. <?php endif; ?>
  71. </tbody>
  72. </table>
  73. </div>
  74. <div class="am-u-lg-12 am-cf">
  75. <div class="am-fr"><?= $list->render() ?> </div>
  76. <div class="am-fr pagination-total am-margin-right">
  77. <div class="am-vertical-align-middle">总记录:<?= $list->total() ?></div>
  78. </div>
  79. </div>
  80. </div>
  81. </div>
  82. </div>
  83. </div>
  84. </div>
  85. <script>
  86. $(function () {
  87. });
  88. </script>