YLZH 1 سال پیش
والد
کامیت
9d97b77f3d
2فایلهای تغییر یافته به همراه18 افزوده شده و 3 حذف شده
  1. 9 1
      src/pages/oils/list.vue
  2. 9 2
      src/pages/settlement/list.vue

+ 9 - 1
src/pages/oils/list.vue

@@ -99,7 +99,15 @@ function changeSearchType({ item, index }) {
   }
 }
 function searchFocus() {
-
+  const keyStop = () => {
+    var interval = setInterval(function () {
+      uni.hideKeyboard(); //隐藏软键盘
+    }, 20);
+    setTimeout(() => {
+      clearInterval(interval);
+    }, 3000);
+  };
+  keyStop();
   uni.hideKeyboard()
   showSheet.value = true;
 }

+ 9 - 2
src/pages/settlement/list.vue

@@ -112,8 +112,15 @@ function changeSearchType({ item, index }) {
   }
 }
 function searchFocus() {
-
-
+  const keyStop = () => {
+    var interval = setInterval(function () {
+      uni.hideKeyboard(); //隐藏软键盘
+    }, 20);
+    setTimeout(() => {
+      clearInterval(interval);
+    }, 3000);
+  };
+  keyStop();
   uni.hideKeyboard();
   showSheet.value = true;
 }