userServer.html 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. {extend name="layout:home" /}
  2. {block name="container"}
  3. <div class="layui-tab layui-tab-card">
  4. <div class="layui-tab-content page-tab-content">
  5. <!-- 搜索框开始 -->
  6. <div class="search-form">
  7. <form class="" method="post">
  8. <div class="layui-form-item">
  9. <div class="layui-inline">
  10. <input type="text" name="user_name" placeholder="输入用户名称" autocomplete="off" class="layui-input">
  11. </div>
  12. <div class="layui-inline">
  13. <input type="text" name="product_name" placeholder="输入服务名称" autocomplete="off" class="layui-input">
  14. </div>
  15. <div class="layui-inline">
  16. <input type="text" name="userProduct_identity" placeholder="输入订单号" autocomplete="off" class="layui-input">
  17. </div>
  18. <div class="layui-inline">
  19. <button type="submit" class="layui-btn search-subBtn">搜索</button>
  20. </div>
  21. </div>
  22. </form>
  23. </div>
  24. <!-- 搜索框结束 -->
  25. <table class="layui-table lay-even">
  26. <colgroup>
  27. <col width="150">
  28. <col width="200">
  29. <col>
  30. </colgroup>
  31. <thead>
  32. <tr>
  33. <th>服务名称</th>
  34. <th>用户名</th>
  35. <th>购买总时长</th>
  36. <th>购买时间</th>
  37. <th>到期时间</th>
  38. </tr>
  39. </thead>
  40. <tbody>
  41. {if count($userproduct)}
  42. {volist name="userproduct" id="value"}
  43. <tr>
  44. <td>{$value.product_name}</td>
  45. <td>{$value.user_email}</td>
  46. <td>{$value.userProduct_dayNumber}</td>
  47. <td>{$value.userProduct_buyTime}</td>
  48. <td>{$value.userProduct_maturityTime}</td>
  49. </tr>
  50. {/volist}
  51. {else}
  52. <td colspan="99" style="text-align: center">无数据</td>
  53. {/if}
  54. </tbody>
  55. </table>
  56. {$show_page}
  57. </div>
  58. </div>
  59. <script>
  60. const myHost = "http://" + window.location.host;
  61. layui.use('laydate', function(){
  62. var laydate = layui.laydate;
  63. //执行一个laydate实例
  64. laydate.render({
  65. elem: '#creatTime' //指定元素
  66. });
  67. laydate.render({
  68. elem:'#timeRang',
  69. range:true,
  70. format: 'yyyy/MM/dd',
  71. done: function(value, date){
  72. /* 时间选择完成后的回调 */
  73. }
  74. })
  75. });
  76. </script>
  77. {/block}