预期收益分析
当前月流量: $
优化后月流量: $
月收益预估: ¥${monthlyValue.toLocaleString()}
年收益预估: ¥${yearlyValue.toLocaleString()}
投资回报率: $%
`;
}
// 预约会议
function scheduleMeeting() {
alert('预约功能已启动,我们的专家将在24小时内与您联系!\n\n联系方式:\nQQ: 3155555535\n电话: \n邮箱: ');
}
// 添加数据流粒子
function addDataFlowParticles() {
setInterval(() => {
const particle = document.createElement('div');
particle.className = 'data-particle';
particle.style.top = Math.random() * 100 + '%';
document.body.appendChild(particle);
setTimeout(() => particle.remove(), 2000);
}, 500);
}
// 初始化
document.addEventListener('DOMContentLoaded', function() {
initQuantumField();
initParticleNav();
addDataFlowParticles();
// 添加键盘快捷键
document.addEventListener('keydown', function(e) {
if (e.key === 'Escape') {
closeWhiteboard();
}
});
});
// 性能优化:使用 Intersection Observer
const observerOptions = {
threshold: 0.1,
rootMargin: '0px'
};
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.style.opacity = '1';
entry.target.style.transform = 'translateY(0)';
}
});
}, observerOptions);
// 响应式处理
window.addEventListener('resize', function() {
if (window.innerWidth < 768) {
document.querySelectorAll('.planet-orbit').forEach(orbit => {
const width = parseInt(orbit.style.width) * 0.7;
orbit.style.width = width + 'px';
orbit.style.height = width + 'px';
});
}
});