style:验证码
Showing
3 changed files
with
80 additions
and
6 deletions
... | @@ -85,15 +85,19 @@ | ... | @@ -85,15 +85,19 @@ |
85 | .personInfo li span , .verificationCode span{ | 85 | .personInfo li span , .verificationCode span{ |
86 | color: #9B9B9B; | 86 | color: #9B9B9B; |
87 | font-size: 14px; | 87 | font-size: 14px; |
88 | width: 100px; | ||
89 | display: inline-block; | ||
90 | text-align: right; | ||
88 | } | 91 | } |
89 | .personInfo li p { | 92 | .personInfo li p { |
90 | display: inline-block; | 93 | display: inline-block; |
91 | color: #4A4A4A; | 94 | color: #4A4A4A; |
92 | } | 95 | } |
93 | .personInfo li em { | 96 | .personInfo li .verCode { |
94 | font-style: normal; | 97 | font-style: normal; |
95 | width: 70px; | 98 | width: 90px; |
96 | height: 16px; | 99 | height: 16px; |
100 | line-height: 16px; | ||
97 | border-radius: 2px; | 101 | border-radius: 2px; |
98 | border: 1px solid #0091FF; | 102 | border: 1px solid #0091FF; |
99 | font-size: 12px; | 103 | font-size: 12px; |
... | @@ -109,4 +113,46 @@ | ... | @@ -109,4 +113,46 @@ |
109 | .verificationCode input { | 113 | .verificationCode input { |
110 | width: 182px; | 114 | width: 182px; |
111 | display: inline-block; | 115 | display: inline-block; |
116 | } | ||
117 | .query_criteria { | ||
118 | margin: 20px 0; | ||
119 | } | ||
120 | .query_criteria .query_criteria_title{ | ||
121 | color: #9B9B9B; | ||
122 | font-size: 14px; | ||
123 | width: 100px; | ||
124 | padding-left: 0; | ||
125 | padding-right: 7px; | ||
126 | margin-left: -3px; | ||
127 | } | ||
128 | .layui-input-inline .layui-form-label { | ||
129 | display: inline-block; | ||
130 | width: 50px; | ||
131 | text-align: center; | ||
132 | background: #FAFAFA; | ||
133 | border: 1px solid #DEDEDE; | ||
134 | box-sizing: border-box; | ||
135 | height: 38px; | ||
136 | line-height: 20px; | ||
137 | } | ||
138 | .layui-input-inline input { | ||
139 | display: inline-block; | ||
140 | width: 230px; | ||
141 | } | ||
142 | .query_criteria .bdc_title { | ||
143 | display: inline-block; | ||
144 | margin: 0 15px; | ||
145 | } | ||
146 | .examples { | ||
147 | color: #FF3D3D; | ||
148 | position: relative; | ||
149 | top: -15px; | ||
150 | margin-left: 103px; | ||
151 | } | ||
152 | .submit_button { | ||
153 | text-align: center; | ||
154 | margin: 30px 0; | ||
155 | } | ||
156 | .disabled{ | ||
157 | cursor: auto; | ||
112 | } | 158 | } |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -25,6 +25,25 @@ function fetchDataReview() { | ... | @@ -25,6 +25,25 @@ function fetchDataReview() { |
25 | return false; | 25 | return false; |
26 | }); | 26 | }); |
27 | }); | 27 | }); |
28 | $('.verCode').click(function() { | ||
29 | var time = 10; | ||
30 | settime($(this)); | ||
31 | function settime(obj) { | ||
32 | if (time == 0) { | ||
33 | $(obj).attr('disabled', false); | ||
34 | $(obj).html("点击获取验证码"); | ||
35 | time = 60; | ||
36 | return; | ||
37 | } else { | ||
38 | $(obj).attr('disabled', true); | ||
39 | $(obj).html(time + "秒后重新发送"); | ||
40 | time--; | ||
41 | } | ||
42 | setTimeout(function () { | ||
43 | settime(obj) | ||
44 | }, 1000) | ||
45 | } | ||
46 | }) | ||
28 | } | 47 | } |
29 | // 初始化数据 | 48 | // 初始化数据 |
30 | function _initData() { | 49 | function _initData() { | ... | ... |
... | @@ -56,7 +56,7 @@ | ... | @@ -56,7 +56,7 @@ |
56 | <li> | 56 | <li> |
57 | <span>手机号:</span> | 57 | <span>手机号:</span> |
58 | <p>187789798798</p> | 58 | <p>187789798798</p> |
59 | <em>获取验证码</em> | 59 | <button type="button" name="button" class="verCode">点击获取验证码</button> |
60 | </li> | 60 | </li> |
61 | <li> | 61 | <li> |
62 | <span>身份证号:</span> | 62 | <span>身份证号:</span> |
... | @@ -67,14 +67,23 @@ | ... | @@ -67,14 +67,23 @@ |
67 | <span>验证码:</span> | 67 | <span>验证码:</span> |
68 | <input type="tel" placeholder="请输入验证码" class="layui-input"> | 68 | <input type="tel" placeholder="请输入验证码" class="layui-input"> |
69 | </div> | 69 | </div> |
70 | <div> | 70 | <div class="query_criteria"> |
71 | <label class="layui-form-label">短输入框</label> | 71 | <label class="layui-form-label query_criteria_title">不动产证书号:</label> |
72 | <div class="layui-input-inline"> | 72 | <div class="layui-input-inline"> |
73 | <label class="layui-form-label">陕</label> | ||
73 | <input type="text" name="username" lay-verify="required" placeholder="请输入" autocomplete="off" | 74 | <input type="text" name="username" lay-verify="required" placeholder="请输入" autocomplete="off" |
74 | class="layui-input"> | 75 | class="layui-input"> |
75 | </div> | 76 | </div> |
77 | <p class="bdc_title">西安市不动产</p> | ||
78 | <div class="layui-input-inline"> | ||
79 | <input type="text" name="username" lay-verify="required" class="layui-input"> | ||
80 | <span>号</span> | ||
81 | </div> | ||
82 | </div> | ||
83 | <div class="examples">如:陕 (2019). 西安不动产第10</div> | ||
84 | <div class="submit_button"> | ||
85 | <button type="button" class="layui-btn layui-btn-normal">查看电子证照</button> | ||
76 | </div> | 86 | </div> |
77 | <button type="button" class="layui-btn layui-btn-normal">查询</button> | ||
78 | </div> | 87 | </div> |
79 | </div> | 88 | </div> |
80 | </body> | 89 | </body> | ... | ... |
-
Please register or sign in to post a comment