userServer.html 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. <th>到期时间</th>
  39. </tr>
  40. </thead>
  41. <tbody>
  42. {if count($userproduct)}
  43. {volist name="userproduct" id="value"}
  44. <tr>
  45. <td>{$value.userProduct_identity}</td>
  46. <td>{$value.product_name}</td>
  47. <td>{$value.user_email}</td>
  48. <td>{$value.userProduct_dayNumber}</td>
  49. <td>{$value.userProduct_buyTime}</td>
  50. <td>{$value.userProduct_maturityTime}</td>
  51. </tr>
  52. {/volist}
  53. {else}
  54. <td colspan="99" style="text-align: center">无数据</td>
  55. {/if}
  56. </tbody>
  57. </table>
  58. {$show_page}
  59. </div>
  60. </div>
  61. <script>
  62. const myHost = "http://" + window.location.host;
  63. layui.use('laydate', function(){
  64. var laydate = layui.laydate;
  65. //执行一个laydate实例
  66. laydate.render({
  67. elem: '#creatTime' //指定元素
  68. });
  69. laydate.render({
  70. elem:'#timeRang',
  71. range:true,
  72. format: 'yyyy/MM/dd',
  73. done: function(value, date){
  74. /* 时间选择完成后的回调 */
  75. }
  76. })
  77. });
  78. </script>
  79. {/block}