receive.php 4.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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 class="am-text-center">用户</th>
  15. <th>优惠券ID</th>
  16. <th>优惠券名称</th>
  17. <th>优惠券类型</th>
  18. <th>最低消费金额</th>
  19. <th>优惠方式</th>
  20. <th>有效期</th>
  21. <th>领取时间</th>
  22. </tr>
  23. </thead>
  24. <tbody>
  25. <?php if (!$list->isEmpty()): foreach ($list as $item): ?>
  26. <tr>
  27. <td class="am-text-center">
  28. <p class=""><?= $item['user']['nickName'] ?></p>
  29. <p class="am-link-muted">(用户id:<?= $item['user']['user_id'] ?>)</p>
  30. </td>
  31. <td class="am-text-middle"><?= $item['coupon_id'] ?></td>
  32. <td class="am-text-middle"><?= $item['name'] ?></td>
  33. <td class="am-text-middle"><?= $item['coupon_type']['text'] ?></td>
  34. <td class="am-text-middle"><?= $item['min_price'] ?></td>
  35. <td class="am-text-middle">
  36. <?php if ($item['coupon_type']['value'] == 10) : ?>
  37. <span>立减 <strong><?= $item['reduce_price'] ?></strong> 元</span>
  38. <?php elseif ($item['coupon_type']['value'] == 20) : ?>
  39. <span>打 <strong><?= $item['discount'] ?></strong> 折</span>
  40. <?php endif; ?>
  41. </td>
  42. <td class="am-text-middle">
  43. <?php if ($item['expire_type'] == 10) : ?>
  44. <span>领取 <strong><?= $item['expire_day'] ?></strong> 天内有效</span>
  45. <?php elseif ($item['expire_type'] == 20) : ?>
  46. <span><?= $item['start_time']['text'] ?>
  47. ~ <?= $item['end_time']['text'] ?></span>
  48. <?php endif; ?>
  49. </td>
  50. <td class="am-text-middle"><?= $item['create_time'] ?></td>
  51. </tr>
  52. <?php endforeach; else: ?>
  53. <tr>
  54. <td colspan="11" class="am-text-center">暂无记录</td>
  55. </tr>
  56. <?php endif; ?>
  57. </tbody>
  58. </table>
  59. </div>
  60. <div class="am-u-lg-12 am-cf">
  61. <div class="am-fr"><?= $list->render() ?> </div>
  62. <div class="am-fr pagination-total am-margin-right">
  63. <div class="am-vertical-align-middle">总记录:<?= $list->total() ?></div>
  64. </div>
  65. </div>
  66. </div>
  67. </div>
  68. </div>
  69. </div>
  70. </div>
  71. <script>
  72. $(function () {
  73. });
  74. </script>