Browse Source

fix(SCRM-3490): 【DE】【C端】临时停车微服务。输入邮箱之后出现滑动bug

john 2 năm trước cách đây
mục cha
commit
21f38b3e96

+ 2 - 1
src/pages/parkingFee/components/base/parkingReceipt/parkingApplication.vue

@@ -2,7 +2,7 @@
   <div class="scroll-Y" scroll-y>
     <!--    <wx-points-commit ref='wxPointsCommit'></wx-points-commit>-->
 
-    <scroll-view class="push-box">
+    <scroll-view class="push-box" ref="scrollView">
       <div>
         <div style="height: 20px"></div>
         <div class="choose-invoice-header lines" @click="changeHeader">
@@ -133,6 +133,7 @@
               class="van-field__control"
               style="white-space: nowrap"
               type="text"
+              @blur="scrollReset"
               placeholder="请输入电子邮箱"
               v-model="condition.email"
             />

+ 5 - 0
src/pages/parkingFee/mixins/parkingReceipt/parkingApplication.js

@@ -312,6 +312,11 @@ export default {
       //   },
       // });
     },
+    scrollReset() {
+      this.$nextTick(() => {
+        this.$refs.scrollView.scroll.refresh(); //当滚动区域的dom结构有变化时,需要执行这个操作
+      })
+    },
     // 获取用户邮箱信息
     getInvoiceEmailInfo() {
       const self = this;