order.php 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  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 am-fl">
  15. <?php $rechargeType = $request->get('recharge_type'); ?>
  16. <select name="recharge_type"
  17. data-am-selected="{btnSize: 'sm', placeholder: '充值方式'}">
  18. <option value=""></option>
  19. <option value="-1"
  20. <?= $rechargeType === '-1' ? 'selected' : '' ?>>全部
  21. </option>
  22. <?php foreach ($attributes['rechargeType'] as $attr): ?>
  23. <option value="<?= $attr['value'] ?>"
  24. <?= $rechargeType === (string)$attr['value'] ? 'selected' : '' ?>>
  25. <?= $attr['name'] ?>
  26. </option>
  27. <?php endforeach; ?>
  28. </select>
  29. </div>
  30. <div class="am-form-group am-fl">
  31. <?php $payStatus = $request->get('pay_status'); ?>
  32. <select name="pay_status"
  33. data-am-selected="{btnSize: 'sm', placeholder: '付款状态'}">
  34. <option value=""></option>
  35. <option value="-1"
  36. <?= $payStatus === '-1' ? 'selected' : '' ?>>全部
  37. </option>
  38. <?php foreach ($attributes['pay_status'] as $attr): ?>
  39. <option value="<?= $attr['value'] ?>"
  40. <?= $payStatus === (string)$attr['value'] ? 'selected' : '' ?>>
  41. <?= $attr['name'] ?>
  42. </option>
  43. <?php endforeach; ?>
  44. </select>
  45. </div>
  46. <div class="am-form-group tpl-form-border-form am-fl">
  47. <input type="text" name="start_time"
  48. class="am-form-field"
  49. value="<?= $request->get('start_time') ?>" placeholder="请选择起始日期"
  50. data-am-datepicker>
  51. </div>
  52. <div class="am-form-group tpl-form-border-form am-fl">
  53. <input type="text" name="end_time"
  54. class="am-form-field"
  55. value="<?= $request->get('end_time') ?>" placeholder="请选择截止日期"
  56. data-am-datepicker>
  57. </div>
  58. <div class="am-form-group am-fl">
  59. <div class="am-input-group am-input-group-sm tpl-form-border-form">
  60. <input type="text" class="am-form-field" name="search" placeholder="请输入用户昵称/订单号"
  61. value="<?= $request->get('search') ?>">
  62. <div class="am-input-group-btn">
  63. <button class="am-btn am-btn-default am-icon-search" type="submit"></button>
  64. </div>
  65. </div>
  66. </div>
  67. </div>
  68. </form>
  69. </div>
  70. <div class="am-scrollable-horizontal am-u-sm-12">
  71. <table width="100%" class="am-table am-table-compact am-table-striped
  72. tpl-table-black am-text-nowrap">
  73. <thead>
  74. <tr>
  75. <th>订单ID</th>
  76. <th>微信头像</th>
  77. <th>微信昵称</th>
  78. <th>订单号</th>
  79. <th>充值方式</th>
  80. <th>套餐名称</th>
  81. <th>支付金额</th>
  82. <th>赠送金额</th>
  83. <th>支付状态</th>
  84. <th>付款时间</th>
  85. <th>创建时间</th>
  86. </tr>
  87. </thead>
  88. <tbody>
  89. <?php if (!$list->isEmpty()): foreach ($list as $item): ?>
  90. <tr>
  91. <td class="am-text-middle"><?= $item['order_id'] ?></td>
  92. <td class="am-text-middle">
  93. <a href="<?= $item['user']['avatarUrl'] ?>" title="点击查看大图" target="_blank">
  94. <img src="<?= $item['user']['avatarUrl'] ?>" width="72" height="72" alt="">
  95. </a>
  96. </td>
  97. <td class="am-text-middle">
  98. <p class=""><?= $item['user']['nickName'] ?></p>
  99. <p class="am-link-muted">(用户ID:<?= $item['user']['user_id'] ?>)</p>
  100. </td>
  101. <td class="am-text-middle"><?= $item['order_no'] ?></td>
  102. <td class="am-text-middle">
  103. <span class="am-badge
  104. <?= $item['recharge_type']['value'] == 10 ? 'am-badge-secondary' : 'am-badge-success' ?>">
  105. <?= $item['recharge_type']['text'] ?></span>
  106. </td>
  107. <td class="am-text-middle"><?= $item['order_plan']['plan_name'] ?: '--' ?></td>
  108. <td class="am-text-middle"><?= $item['pay_price'] ?></td>
  109. <td class="am-text-middle"><?= $item['gift_money'] ?></td>
  110. <td class="am-text-middle">
  111. <span class="am-badge
  112. <?= $item['pay_status']['value'] == 20 ? 'am-badge-success' : '' ?>">
  113. <?= $item['pay_status']['text'] ?></span>
  114. </td>
  115. <td class="am-text-middle"><?= $item['pay_time']['text'] ?: '--' ?></td>
  116. <td class="am-text-middle"><?= $item['create_time'] ?></td>
  117. </tr>
  118. <?php endforeach; else: ?>
  119. <tr>
  120. <td colspan="11" class="am-text-center">暂无记录</td>
  121. </tr>
  122. <?php endif; ?>
  123. </tbody>
  124. </table>
  125. </div>
  126. <div class="am-u-lg-12 am-cf">
  127. <div class="am-fr"><?= $list->render() ?> </div>
  128. <div class="am-fr pagination-total am-margin-right">
  129. <div class="am-vertical-align-middle">总记录:<?= $list->total() ?></div>
  130. </div>
  131. </div>
  132. </div>
  133. </div>
  134. </div>
  135. </div>
  136. </div>
  137. <script>
  138. $(function () {
  139. // 删除元素
  140. var url = "<?= url('market.coupon/delete') ?>";
  141. $('.item-delete').delete('coupon_id', url);
  142. });
  143. </script>