Files
Neo-ZQYY/docs/h5_ui/js/customer-service-records.js

16 lines
738 B
JavaScript

/* 客户服务记录页 — 月份切换 */
(function () {
var currentMonth = 2;
window.switchMonth = function (direction) {
if (direction === 'prev' && currentMonth > 1) currentMonth--;
else if (direction === 'next' && currentMonth < 2) currentMonth++;
document.getElementById('monthLabel').textContent = '2026年' + currentMonth + '月';
document.getElementById('nextMonthBtn').disabled = currentMonth >= 2;
document.getElementById('nextMonthBtn').style.opacity = currentMonth >= 2 ? '0.3' : '1';
document.getElementById('prevMonthBtn').disabled = currentMonth <= 1;
document.getElementById('prevMonthBtn').style.opacity = currentMonth <= 1 ? '0.3' : '1';
};
})();