index.html 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. {extend name='admin@main'}
  2. {block name="content"}
  3. <div class="think-box-shadow">
  4. {include file='coupon_list/index_search'}
  5. <table class="layui-table margin-top-10" lay-skin="line">
  6. {notempty name='list'}
  7. <thead>
  8. <tr>
  9. <th class='list-table-check-td think-checkbox'>
  10. <input data-auto-none data-check-target='.list-check-box' type='checkbox'>
  11. </th>
  12. <th class='text-left nowrap'>用户昵称</th>
  13. <th class='text-left nowrap'>优惠券名称</th>
  14. <th class='text-left nowrap'>限制时间</th>
  15. <th class='text-left nowrap'>优惠金额</th>
  16. <th class="text-center">状态</th>
  17. </tr>
  18. </thead>
  19. {/notempty}
  20. <tbody>
  21. {foreach $list as $key=>$vo}
  22. <tr>
  23. <td class='list-table-check-td think-checkbox'>
  24. <input class="list-check-box" value='{$vo.id}' type='checkbox'>
  25. </td>
  26. <td class='text-left nowrap'>
  27. 用户昵称:{$vo.member.name|default='--'}<br>
  28. 用户手机:{$vo.member.phone|default=''}
  29. </td>
  30. <td class='text-left nowrap'>
  31. {$vo.title|default=''}
  32. </td>
  33. <td class='text-left nowrap'>
  34. {$vo.start} 至 {$vo.end}
  35. </td>
  36. <td class='text-left nowrap'>
  37. 满{$vo.low_amount}元立减{$vo.amount}元
  38. </td>
  39. <td class='text-center nowrap'>
  40. {if $vo['status']==0}<span class="layui-badge">未使用</span>{elseif $vo['status']==1}<span class="layui-badge layui-bg-green">已使用</span>{else}<span class="layui-badge layui-bg-green">已过期</span>{/if}<br>
  41. </td>
  42. </tr>
  43. {/foreach}
  44. </tbody>
  45. </table>
  46. {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
  47. </div>
  48. {/block}