截流自动化的商城平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

add_time.html 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. {layout name="layout2" /}
  2. <style>
  3. .layui-form-label {
  4. color: #6a6f6c;
  5. width: 100px;
  6. }
  7. .layui-input-block {
  8. margin-left: 130px;
  9. }
  10. .tips{
  11. color: red;
  12. }
  13. .layui-laydate-content>.layui-laydate-list {
  14. padding-bottom: 0px;
  15. overflow: hidden;
  16. }
  17. .layui-laydate-content>.layui-laydate-list>li{
  18. width:50%
  19. }
  20. .merge-box .scrollbox .merge-list {
  21. padding-bottom: 5px;
  22. }
  23. </style>
  24. <div class="layui-form" lay-filter="layuiadmin-form-user_level" id="layuiadmin-form-user_level" style="padding: 20px 30px 0 0;">
  25. <div class="layui-form-item">
  26. <label class="layui-form-label"><span class="tips">*</span>开始时间</label>
  27. <div class="layui-input-inline">
  28. <input type="text" name="start_time" lay-verify="required" lay-verType="tips" placeholder="请选择开始时间" autocomplete="off" class="layui-input time">
  29. </div>
  30. </div>
  31. <div class="layui-form-item">
  32. <label class="layui-form-label"><span class="tips">*</span>结束时间</label>
  33. <div class="layui-input-inline">
  34. <input type="text" name="end_time" lay-verify="required" lay-verType="tips" placeholder="请选择结束时间" autocomplete="off" class="layui-input time">
  35. </div>
  36. </div>
  37. <div class="layui-form-item layui-hide">
  38. <input type="button" lay-submit lay-filter="add-submit" id="add-submit" value="确认">
  39. </div>
  40. </div>
  41. <style>
  42. .layui-form-label {
  43. width: 100px;
  44. }
  45. .layui-input-block {
  46. margin-left: 130px;
  47. }
  48. </style>
  49. <script>
  50. layui.config({
  51. version:"{$front_version}",
  52. base: '/static/lib/' //静态资源所在路径
  53. }).use(['form','laydate'], function(){
  54. var $ = layui.$
  55. ,form = layui.form
  56. ,laydate = layui.laydate;
  57. lay('.time').each(function() {
  58. laydate.render({
  59. elem : this,
  60. trigger : 'click',
  61. type: 'time',
  62. format: 'HH:mm',
  63. });
  64. });
  65. })
  66. </script>