@@ -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;
@@ -112,8 +112,15 @@ function changeSearchType({ item, index }) {
uni.hideKeyboard();