瀏覽代碼

修改ios兼容性bug

lex-xin 5 年之前
父節點
當前提交
fcd8e3e355
共有 6 個文件被更改,包括 5 次插入2 次删除
  1. 0 0
      dist/css/app.c0a4c5b5.css
  2. 0 0
      dist/index.html
  3. 0 0
      dist/js/app.7f77080c.js
  4. 0 0
      dist/js/app.7f77080c.js.map
  5. 0 0
      dist/js/app.d733475d.js.map
  6. 5 2
      src/views/login.vue

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