企业业绩
近一年部分拆旧换新电梯签约项目
{
row.addEventListener('click', function() {
// 移除其他行的选中状态
tableRows.forEach(r => r.classList.remove('selected'));
// 添加当前行的选中状态
this.classList.add('selected');
// 获取项目信息
const number = this.cells[0].textContent;
const company = this.cells[1].textContent;
const project = this.cells[2].textContent;
// 可以在这里添加更多交互功能,比如显示详细信息
console.log(`选中项目:${number} - ${company} - ${project}`);
});
});
// 为统计卡片添加动画效果
const statItems = document.querySelectorAll('.stat-item');
statItems.forEach(item => {
item.addEventListener('mouseenter', function() {
this.style.transform = 'translateY(-5px)';
this.style.boxShadow = '0 8px 20px rgba(0, 0, 0, 0.12)';
});
item.addEventListener('mouseleave', function() {
this.style.transform = 'translateY(0)';
this.style.boxShadow = 'var(--shadow)';
});
});
});