diff --git a/app/index/view/pc/public/header.html b/app/index/view/pc/public/header.html
index ec8229af..51c1640b 100644
--- a/app/index/view/pc/public/header.html
+++ b/app/index/view/pc/public/header.html
@@ -234,6 +234,10 @@
});
});
+
+
+
+
let searchHistory = JSON.parse(localStorage.getItem('searchHistory') || '[]');
function renderHistory ()
@@ -330,14 +334,14 @@
});
}
// 鼠标移入导航项时,关闭购买下拉框
- const navItems = document.querySelectorAll('.nav-item');
+ const navItems = document.querySelectorAll('.header-nav-item');
navItems.forEach(item =>
{
+
item.addEventListener('mouseenter', () =>
{
- if (buyDropdown) {
- buyDropdown.classList.remove('show');
- }
+ console.log('122132')
+ buyDropdown.classList.remove('show');
});
});