Browse Source

修改ios兼容性bug

lex-xin 5 years ago
parent
commit
fcd8e3e355

File diff suppressed because it is too large
+ 0 - 0
dist/css/app.c0a4c5b5.css


File diff suppressed because it is too large
+ 0 - 0
dist/index.html


File diff suppressed because it is too large
+ 0 - 0
dist/js/app.7f77080c.js


File diff suppressed because it is too large
+ 0 - 0
dist/js/app.7f77080c.js.map


File diff suppressed because it is too large
+ 0 - 0
dist/js/app.d733475d.js.map


+ 5 - 2
src/views/login.vue

@@ -9,7 +9,7 @@
             </div>
             <div class="phoneSection">
                 <i class="man_icon"></i>
-                <input type="number" v-model="dataList.phoneNumber" class="phone" pattern="[0-9]" placeholder="请输入手机号报名或查询进度">
+                <input type="number" @blur="codeBlur" v-model="dataList.phoneNumber" class="phone" pattern="[0-9]" placeholder="请输入手机号报名或查询进度">
             </div>
         </div>
 
@@ -95,7 +95,10 @@ export default {
     },
     methods: {
         codeBlur() {
-            window.scrollTo(0,0)
+            setTimeout(() => {
+                const scrollHeight = document.documentElement.scrollTop || document.body.scrollTop || 0;
+                window.scrollTo(0, Math.max(scrollHeight - 1, 0));
+            }, 100);
         },
         onSubmit() {
             let dataStatus = this.dataList.status

Some files were not shown because too many files changed in this diff