index.php 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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-u-sm-12">
  10. <div class="am-scrollable-horizontal am-u-sm-12">
  11. <table width="100%" class="am-table am-table-compact am-table-striped
  12. tpl-table-black am-text-nowrap">
  13. <thead>
  14. <tr>
  15. <th>拼单ID</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['active_id'] ?></td>
  31. <td class="am-text-middle">
  32. <a href="<?= $item['goods']['image'][0]['file_path'] ?>"
  33. title="点击查看大图" target="_blank">
  34. <img src="<?= $item['goods']['image'][0]['file_path'] ?>"
  35. width="50" height="50" alt="商品图片">
  36. </a>
  37. </td>
  38. <td class="am-text-middle">
  39. <p class="item-title"><?= $item['goods']['goods_name'] ?></p>
  40. </td>
  41. <td class="am-text-middle"><?= $item['people'] ?>人</td>
  42. <td class="am-text-middle">
  43. <p><?= $item['actual_people'] ?>人</p>
  44. </td>
  45. <td class="am-text-middle">
  46. <p class=""><?= $item['user']['nickName'] ?></p>
  47. <p class="am-link-muted">(用户ID:<?= $item['user']['user_id'] ?>)</p>
  48. </td>
  49. <td class="am-text-middle"><?= $item['end_time']['text'] ?></td>
  50. <td class="am-text-middle">
  51. <?php if ($item['status']['value'] == 10): ?>
  52. <p>
  53. <span class="am-badge am-badge-secondary"><?= $item['status']['text'] ?></span>
  54. </p>
  55. <?php if ($item['actual_people'] < $item['people']): ?>
  56. <p>
  57. <span class="am-badge am-badge-warning">
  58. 还差 <?= $item['people'] - $item['actual_people'] ?>人
  59. </span>
  60. </p>
  61. <?php endif; ?>
  62. <?php elseif ($item['status']['value'] == 20): ?>
  63. <span class="am-badge am-badge-success"><?= $item['status']['text'] ?></span>
  64. <?php elseif ($item['status']['value'] == 30): ?>
  65. <span class="am-badge am-badge-danger"><?= $item['status']['text'] ?></span>
  66. <?php endif; ?>
  67. </td>
  68. <td class="am-text-middle"><?= $item['create_time'] ?></td>
  69. <td class="am-text-middle">
  70. <div class="tpl-table-black-operation">
  71. <?php if (checkPrivilege('apps.sharing.active/users')): ?>
  72. <a class="tpl-table-black-operation-default"
  73. href="<?= url('apps.sharing.active/users', ['active_id' => $item['active_id']]) ?>">
  74. <i class="iconfont icon-chengyuan"></i> 拼团成员
  75. </a>
  76. <?php endif; ?>
  77. <?php if (checkPrivilege('apps.sharing.order/index')): ?>
  78. <a class="tpl-table-black-operation-default"
  79. href="<?= url('apps.sharing.order/index', ['active_id' => $item['active_id']]) ?>">
  80. <i class="iconfont icon-order-o"></i> 拼团订单
  81. </a>
  82. <?php endif; ?>
  83. </div>
  84. </td>
  85. </tr>
  86. <?php endforeach; else: ?>
  87. <tr>
  88. <td colspan="10" class="am-text-center">暂无记录</td>
  89. </tr>
  90. <?php endif; ?>
  91. </tbody>
  92. </table>
  93. </div>
  94. </div>
  95. <div class="am-u-lg-12 am-cf">
  96. <div class="am-fr"><?= $list->render() ?> </div>
  97. <div class="am-fr pagination-total am-margin-right">
  98. <div class="am-vertical-align-middle">总记录:<?= $list->total() ?></div>
  99. </div>
  100. </div>
  101. </div>
  102. </div>
  103. </div>
  104. </div>
  105. </div>
  106. <script>
  107. $(function () {
  108. });
  109. </script>