← 返回企业中心
绮帅科技
绮帅科技
绮帅科技
绮帅科技
绮帅科技
绮帅科技
绮帅科技
绮帅科技
绮帅科技
绮帅科技
绮帅科技
绮帅科技
绮帅科技
绮帅科技
绮帅科技
绮帅科技
绮帅科技
绮帅科技
绮帅科技
绮帅科技
绮帅科技
绮帅科技
绮帅科技
绮帅科技
绮帅科技
1 / 38
2 / 38
3 / 38
4 / 38
5 / 38
6 / 38
7 / 38
8 / 38
9 / 38
10 / 38
11 / 38
12 / 38
13 / 38
14 / 38
15 / 38
16 / 38
17 / 38
18 / 38
19 / 38
20 / 38
21 / 38
22 / 38
23 / 38
24 / 38
25 / 38
26 / 38
27 / 38
28 / 38
29 / 38
30 / 38
31 / 38
32 / 38
33 / 38
34 / 38
35 / 38
36 / 38
37 / 38
38 / 38
使用 ← → 或 空格键 翻页 | 点击右侧圆点跳转到指定页
// 产品中心下拉菜单初始化 function initProductsDropdown() { const productsDropdown = document.querySelector('.navbar .dropdown:has(#products-column-title)'); if (!productsDropdown) return; const dropdown = productsDropdown; const secondaryItems = dropdown.querySelectorAll('.dropdown-secondary-item'); const previewImg = document.getElementById('products-preview-img'); const previewTitle = document.getElementById('products-preview-title'); const previewDesc = document.getElementById('products-preview-desc'); const previewLink = document.getElementById('products-preview-link'); const columnTitle = document.getElementById('products-column-title'); const itemsPrefix = 'products-'; // 鼠标进入/离开事件 dropdown.addEventListener('mouseenter', function() { dropdown.classList.add('active'); }); dropdown.addEventListener('mouseleave', function() { setTimeout(() => { if (!dropdown.matches(':hover')) { dropdown.classList.remove('active'); } }, 100); }); // 二级菜单切换 secondaryItems.forEach(secondary => { secondary.addEventListener('mouseenter', function() { secondaryItems.forEach(s => s.classList.remove('active')); this.classList.add('active'); const category = this.dataset.category; const allItemGroups = dropdown.querySelectorAll('[id^="' + itemsPrefix + '"]'); allItemGroups.forEach(group => group.style.display = 'none'); const activeGroup = dropdown.querySelector('#' + itemsPrefix + category + '-items'); if (activeGroup) { activeGroup.style.display = 'block'; } if (columnTitle) { columnTitle.textContent = this.textContent; } const firstItem = activeGroup?.querySelector('.dropdown-item'); if (firstItem) { const imgSrc = firstItem.dataset.previewImg; const title = firstItem.dataset.previewTitle; const desc = firstItem.dataset.previewDesc; const link = firstItem.dataset.previewLink; if (imgSrc) previewImg.src = imgSrc; if (title) previewTitle.textContent = title; if (desc) previewDesc.textContent = desc; if (link) previewLink.href = link; } }); }); // 三级菜单预览 const allDropdownItems = dropdown.querySelectorAll('.dropdown-item'); allDropdownItems.forEach(item => { item.addEventListener('mouseenter', function() { allDropdownItems.forEach(i => i.classList.remove('active')); this.classList.add('active'); const imgSrc = this.dataset.previewImg; const title = this.dataset.previewTitle; const desc = this.dataset.previewDesc; const link = this.dataset.previewLink; if (imgSrc) previewImg.src = imgSrc; if (title) previewTitle.textContent = title; if (desc) previewDesc.textContent = desc; if (link) previewLink.href = link; }); }); } // DOM加载完成后初始化 document.addEventListener('DOMContentLoaded', function() { initProductsDropdown(); });