feat: 搜索功能优化

This commit is contained in:
fofolee
2021-12-31 21:02:42 +08:00
parent 5e2498ce2d
commit 00d3463181
3 changed files with 14 additions and 3 deletions

View File

@@ -287,8 +287,11 @@ let setYuQueToken = async () => {
// **************************************************
// *********************底部按钮**********************
// **************************************************
$("#options").on('change', '#searchFts', function () {
searchFeatures($("#searchFts").val())
$("#options").on('keydown', '#searchFts', function (e) {
if (e.keyCode == 13) {
searchFeatures($("#searchFts").val())
e.preventDefault()
}
})
$("#options").on('click', '.footBtn', async function () {
@@ -461,7 +464,10 @@ let locateToFeature = (tags, code) => {
redirectTag = "未分类"
}
showFeatureList(redirectTag);
location.href = '#' + code
location.href = '#' + code;
$(`#${code}`).fadeOut(function(){
$(this).fadeIn();
});
}
// 切换TAGS