搜索修改

master
Lee 2022-09-14 13:01:51 +08:00
parent 8fae6238f8
commit ac4a658ff3
3 changed files with 15 additions and 2 deletions

View File

@ -289,8 +289,12 @@
border: .02rem solid #868686;
}
.search-input {
.search-form{
width: calc(100% - .6rem);
}
.search-input {
width: 100%;
line-height: .8rem;
-webkit-appearance: none;
}

View File

@ -148,4 +148,13 @@ jQuery(function($){
  }
});
}
// 搜索
$('.search-form').on('submit',function(){
console.log('搜索关键词',$('.search-input').val())
// 查询结果
// getList();
// 取消提交表单
return false;
})
})

View File

@ -18,7 +18,7 @@
<body class="business-body">
<!-- 商户搜索 -->
<div class="search radius25 border-box flex">
<form action="">
<form action="" class="search-form">
<input class="search-input font24" type="search" placeholder="商户搜索" autocomplete="off">
</form>
<img src="../images/icon/icon-search.png" alt="搜索">