Jurisdiction.html 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title></title>
  6. <meta name="renderer" content="webkit">
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  8. <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  9. <link rel="stylesheet" href="../../static/css/font.css">
  10. <link rel="stylesheet" href="../../static/css/weadmin.css">
  11. <link rel="stylesheet" href="../../static/css/style.css">
  12. <!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
  13. <!--[if lt IE 9]>
  14. <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
  15. <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
  16. <![endif]-->
  17. <style>
  18. html{
  19. overflow-y: auto;
  20. }
  21. .layui-form-label{
  22. width: 100px;
  23. }
  24. .layui-input-block{
  25. margin-left: 138px;
  26. }
  27. .w-e-toolbar{
  28. padding: 0 !important;
  29. }
  30. .w-e-toolbar .w-e-menu{
  31. padding: 5px 4px !important;
  32. }
  33. .options{
  34. line-height: 38px;
  35. }
  36. .options span{
  37. margin: 0 10px;
  38. font-size: 16px;
  39. color: #333;
  40. cursor: pointer;
  41. }
  42. </style>
  43. </head>
  44. <body>
  45. <div class="weadmin-body">
  46. <form class="layui-form">
  47. <div class="layui-form-item">
  48. <label class="layui-form-label">
  49. 手机用户:
  50. </label>
  51. <div class="layui-input-block options">
  52. <span style="margin: 0">所有人可见</span>
  53. <span>用户组</span>
  54. <span>密码</span>
  55. </div>
  56. <div class="layui-input-block">
  57. <div class="option_content">
  58. <textarea name="desc" placeholder="点击选择用户组" class="layui-textarea hides textarea"></textarea>
  59. <input type="text" placeholder="请输入四位密码" class="layui-input hides passInput">
  60. </div>
  61. </div>
  62. </div>
  63. </form>
  64. <div class="layui-form-item" style="text-align: center;padding-top: 50px">
  65. <button class="layui-btn pureTextSubmit">提交</button>
  66. </div>
  67. <span class="text" style="display: none"></span>
  68. </div>
  69. <script src="../../lib/layui/layui.js" charset="utf-8"></script>
  70. <script>
  71. layui.use(['form','layer','jquery','laydate'], function(){
  72. var form = layui.form,
  73. $ = layui.jquery,
  74. laydate= layui.laydate,
  75. layer = layui.layer;
  76. form.render();
  77. $("body").on("click",'.options>span',function () {
  78. var index = $(this).index();
  79. if (index == 0) {
  80. $(".textarea").hide();
  81. $('.passInput').hide();
  82. return;
  83. } else if (index == 1) {
  84. $(".textarea").show();
  85. $('.passInput').hide();
  86. return;
  87. }else if (index == 2) {
  88. $(".textarea").hide();
  89. $('.passInput').show();
  90. return;
  91. }
  92. })
  93. });
  94. </script>
  95. </body>
  96. </html>