正在显示
1 个修改的文件
包含
13 行增加
和
1 行删除
@@ -192,10 +192,21 @@ | @@ -192,10 +192,21 @@ | ||
192 | <script src="__TMPL__/public/assets/js/jquery.js"></script> | 192 | <script src="__TMPL__/public/assets/js/jquery.js"></script> |
193 | <script src="__TMPL__/public/assets/js/base.js"></script> | 193 | <script src="__TMPL__/public/assets/js/base.js"></script> |
194 | <script> | 194 | <script> |
195 | + function selectBlur() { | ||
196 | + | ||
197 | + setTimeout(function () { | ||
198 | + | ||
199 | + var scrollHeight = document.documentElement.scrollTop || document.body.scrollTop || 0; | ||
200 | + | ||
201 | + window.scrollTo(0, Math.max(scrollHeight - 1, 0)); | ||
202 | + | ||
203 | + }, 100); | ||
204 | + | ||
205 | + } | ||
195 | <!--验证弹窗--> | 206 | <!--验证弹窗--> |
196 | var state; | 207 | var state; |
197 | $.post("{:url('Personalcenter/id_first_withdrawal')}",{},function(data){ | 208 | $.post("{:url('Personalcenter/id_first_withdrawal')}",{},function(data){ |
198 | - state = data | 209 | + state = data; |
199 | }); | 210 | }); |
200 | $(".log_seven_btn_contant").click(function() { | 211 | $(".log_seven_btn_contant").click(function() { |
201 | console.log(state); | 212 | console.log(state); |
@@ -212,6 +223,7 @@ | @@ -212,6 +223,7 @@ | ||
212 | var yzm; | 223 | var yzm; |
213 | var phone; | 224 | var phone; |
214 | function Message_validation(){ | 225 | function Message_validation(){ |
226 | + selectBlur(); | ||
215 | yzm = $('#Ver_code').val(); | 227 | yzm = $('#Ver_code').val(); |
216 | phone = $('#phone').val(); | 228 | phone = $('#phone').val(); |
217 | if(phone == '' || !(/^1[34578]\d{9}$/.test(phone))){ | 229 | if(phone == '' || !(/^1[34578]\d{9}$/.test(phone))){ |
-
请 注册 或 登录 后发表评论